title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
Post from xamarin to restful API
<p>I am trying to make an API call from xamarin, this is my first Full mobile app calling restful API (.NetCore3.1) with a Angular WebApp. All other API calls from the xamarin app are working, The issue is I need to send a File with an object, file can be .doc .png etc.</p> <p>GrantApplication.cs API Endpoint</p> <pre>...
2
2,779
Uncaught SyntaxError: Unexpected identifier in empty line?
<p>I am getting a syntax error in line 40... I have no clue why, this script only works with all of the other files aswell (too many, cant upload). It is not the best or prettiest but please give it a try.</p> <p>ERROR: </p> <blockquote> <p>Uncaught SyntaxError: Unexpected identifier</p> </blockquote> <pre><code>&...
2
1,415
How to use foreach in foreachRDD to spark streaming?
<p>I want to read each element to foreachRDD and use each tuple do something.</p> <p>Set spark work memory = 756m.</p> <pre><code> def main(args: Array[String]) { val sc = new StreamingContext(".....")) val dataSet = sc.textFileStreame($&lt;HDFS_FILE_PATH&gt;) dataSet.foreachRDD(rdd =&gt; { rdd...
2
1,581
RelativeLayout to support multiple screen sizes
<p>I have <code>RelativeLayout</code> that should support multiple screens. The question is: is this approach bad? Because basically I specified width and size of boxes, so I'll have to change those numbers for multiple screen sizes (<code>small</code>, <code>large</code>, <code>xlarge</code>) and they'll still not fit...
2
2,988
heroku & django: server doesn't load staticfiles
<p>Last night I decided to put my django school project on production. For this I used Heroku. Everything is going fine but "the last touch" is driving me crazy. It seems that it doesn't see my staticfiles like bootstrap css'es on the website and I don't know why because for example the ball.jpg is loaded and the admin...
2
4,372
Problems with controller in Spring MVC
<p>I am trying to create a jsp form for inputting the user information. I am using a controller to display the input page. I have added an User bean object with the modelmap.The controller returns the ModelandView object. The problem lies here.No model value gets returned to the jsp page. Anybody know why this happens?...
2
1,528
How to get user id from XAMPP database for Android Studio
<p>I'm creating an Android app that has login and register pages. After someone has logged in, they can do different tests provided by the app. How do I get their results to be stored with their user ID in the XAMPP database? I have provided the login.php, LoginActivity.java, User.java and EditProfile.java code. I have...
2
2,136
using Django with Apache, mod-wsgi and mod-wsgi_httpd
<p>(Sorry, my English may be not fluent.)<br> I'm studying about Django, a module of Python, with Windows10, and have something to ask.<br> I've learned tutorial of official website of Django. Now I want to try using it with apache and mod-wsgi, but a command <code>pip install mod-wsgi_httpd</code> wasn't accepted. Her...
2
2,527
Concurrently zipping and download file performance issues
<p>I have a servlet that compresses file while its downloading. My problem slow process is really slow. I'm zipping files coz files will be more than 1GB. But downloading process is so slow. What kind of betterment would you suggest me?</p> <pre><code>package mainpackage; import java.io.BufferedInputStream; import ja...
2
1,138
How can I get an old Django project back and running like it was before?
<p>I have an old Django project that I haven't kept up, and now I'd like to make necessary changes to work with current versions of Django and related software. I'm not sure what to make of the current error; it appears to me that it doesn't have something under the django.core umbrella, but my Django 1.9.2 installatio...
2
1,725
Container of Different Functors
<p>I am trying to figure out a way to have a container of functors so that I can pass a value into the functors and have it be modified however I am having trouble allowing the functors to not be restricted in what types they can be passed and the amount of arguments they can take.</p> <p>My actual use for this is tha...
2
2,239
How to fix "ValueError: view limit minimum -36881.6 is less than 1 and is an invalid Matplotlib date value."?
<p>I have a data frame <code>daily_data_f_no_nr</code> containing following values:</p> <pre><code> Day Total TODO/TODOE count First Derivative 0 2020-05-16 35 0.0 1 2020-05-17 35 0.0 2 2020-05-18 35 0...
2
1,993
Unpredictable pandas slice assignment behavior with no SettingWithCopyWarning
<p>It's <a href="https://stackoverflow.com/questions/20625582/how-to-deal-with-settingwithcopywarning-in-pandas">well known</a> (and <a href="http://pandas-docs.github.io/pandas-docs-travis/indexing.html#indexing-view-versus-copy" rel="nofollow noreferrer">understandable</a>) that pandas behavior is essentially unpredi...
2
1,058
CMake: relink when linked package is rebuilt
<p>I apologize if this has been asked already but I can't find online the right way to get this thing to work.</p> <p>I have a cmake project Foo which depends on another cmake project Bar. Goal: whenever Bar is reinstalled (changing only the libraries, not the headers), then Foo should re-link (without rebuilding, of ...
2
1,034
How to align labels of multiple input fields vertically?
<p>I have two input fields for the user to fill namely <code>username</code> and <code>password</code>. This is how it looks like</p> <p><a href="https://i.stack.imgur.com/iOQDz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iOQDz.png" alt="enter image description here"></a></p> <p>Here is the cod...
2
1,139
errors while installing python-ldap
<p>I am getting the following errors while installing python-ldap. Note that I have open-ldap, berkely db set up already on my system. The steps I followed are:</p> <pre><code>tar xvf python-ldap-2.4.10.tar.gz\ cd python-ldap-2.4.10\ #edit setup.cfg\ #library_dirs = /nlu/users/prefix /usr/lib\ #include_dirs = /nlu/u...
2
1,321
How can I see all Wifi Passwords using netsh with 1 command?
<p>I want to make an automated ducky script which will use the</p> <pre><code>netsh wlan show profile * key=clear &gt; G:Profiles.txt </code></pre> <p>command or something similar to see all Wlan Credentials and write them to a file.</p> <p>When I use the netsh wlan show profile * key=clear command I can just see the p...
2
1,816
Designing Reward System that deals with Reward Expirations (similar to air mileage rewards)
<p>I'm trying to design a referral award system that rewards users for referring their colleagues and friends based on the amount of business the referral provides. </p> <p>For example. John refers Sally. Sally does 100 worth of business, John is awarded 5% to apply to his future use of the service.</p> <p>I've got t...
2
1,151
JPA how to update existing object data without exception?
<p>I try to update existing data rows in database but i get that exception:</p> <pre><code>[EL Warning]: 2012-10-24 20:02:27.798--UnitOfWork(22664464)--Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: com.mysq...
2
2,919
Axios error request failed with 401 React Native
<p>I have a useEffect function that calls an api by axios with some bearer authentication in it. Here is my code</p> <pre><code>const user = useContext(UserContext ) const taskGetFunc = async () =&gt; { try { const { data } = await axios({ method: 'GET', url: 'http://demo.shikkhaapp.com/api/homewor...
2
1,632
'Cannot use import statement outside a module' followed by 'Uncaught TypeError: Failed to resolve module specifier'
<p>I am using a node server with express to use <a href="https://docs.portis.io/" rel="nofollow noreferrer">Portis SDK</a>. The project structure looks like this :</p> <pre><code>├── app.js (entry) ├── node_modules ├── package.json ├── package-lock.json ├── public (static files) │   └── portis.js └── views (templates a...
2
1,269
connect to FileMaker Server with pyodbc
<p>I have a FileMaker db running on FileMaker Server 14 on a Mac Mini and I'm trying to get at it with pyodbc. It's not going well.</p> <p>First, what works:</p> <pre><code>telnet 192.169.19.3 2399 ssh Name@192.169.19.3 tsql -H FM-Server -p 2399 -U Name -P pwd </code></pre> <p>One weird thing about that last one is ...
2
1,077
Kivy garden mapview deploying error with Buildozer
<p>I am using kivy.garden.mapview for my application. Everything works properly, but problems arise when I try to deploy the application to Android with Buildozer. I set "garden_requirements = mapview" in the .spec file, and I always get the same error message: "Command failed: garden install --app mapview". The comman...
2
3,945
Which section store the global const variable in C++ executable file?
<p>As i understand, in C/C++ program, the global const variable will be stored in .text (or .data - i'm not sure) section of executable file. But when i try to verify that, i get trouble.</p> <p>I have a program, it has a global const variable like that:</p> <pre><code>const unsigned char data[2030320] = { 0x00, ...
2
1,453
error while defining SparkContext in jupyter notebooke(Python 3 (ipykernel))
<p><a href="https://i.stack.imgur.com/ouNha.png" rel="nofollow noreferrer">sc = SparkContext(conf=conf) error</a></p> <p>using anaconda`s Jupyter notebook, this is my first time using pyspark. what I am trying to do is defining the spark environment to read a csv file on the local disk.</p> <p>Edit: added the text as u...
2
3,543
jQuery tabs open and scroll
<p>I am using jqueryResponsiveTabs on my site below to create tabs that become an accordion at a certain viewpoint.</p> <p>On the link below there is a tabbed area that on mobile becomes accordian. The personalise button at the top should open the 'personalise' tab in the 'what you need to know' section and also scrol...
2
8,949
Quadtree detects collision inaccurately
<p>I am trying to implement a quadtree of rectangles (instead of points) to be used for collision detection.</p> <p>For some reason, overlap/intersection/collision is not always detected. I suspect this has something to do with the way an inserted collider looks for nearby colliders (see the "COLLISION A" and "COLLISI...
2
7,962
React - Login Variables cached in the browser
<p>I'm quite new to React and trying to learn it but have a strong background in backends (java/nodejs/php/...)</p> <p>So first I wanted to create a login portal, basically 3 pages: - The homepage which redirects you to login if you are not authenticated - Login page - Register page</p> <p>The features are working (r...
2
1,036
How to speed up execute_async insertion to Cassandra using the Python Driver
<p>I'm attempting to load data into Cassandra using the python driver. The fastest I've been able to get is around 6k writes/second. My csv that I'm reading from has around 1.15 million rows leading to an overall insertion time of around 3 minutes and 10 seconds. I really need to get this time down to 2 minutes or less...
2
1,390
asmx web service method name is not valid
<p>Could really use some help here...</p> <p>I am trying to use an object as a parameter in one of my web methods, but I get the following error message:</p> <pre><code>System.InvalidOperationException: TestParameter Web Service method name is not valid. at System.Web.Services.Protocols.HttpServerProtocol.Initiali...
2
1,061
Python String Comparisons Using A Word List
<p>Eventually I will be able to post simple questions like this in a chat room, but for now I must post it. I am still struggling with comparison issues in Python. I have a list containing strings that I obtained from a file. I have a function which takes in the word list (previously created from a file) and some 'c...
2
1,539
How to add dynamic list to each row of a HTML table in Jquery?
<p>I have a dynamic table in a form, where depending on the user Input rows will be added to the table. Table column have Id, Name, Types of games(Dynamic list fetched from DB Table). </p> <p>Now when user enters any number in <strong>No. of Students field</strong> and click on <strong>Load Games button</strong>, I ...
2
2,637
FontAwesome; Not working
<p>This should be simple. I just want to display the font-awesome remove font, and the font awesome fa-camera-retro font. What on earth am I doing wrong. I made sure I am using the right class; I examined the website and just simply downloaded the CDN. </p> <p>Copy this file to your hard drive and call it Index.html; ...
2
1,339
NullPointerException in Hibernate for fetch = EAGER
<p>I've been trying to solve a problem with a NullPointerException in a Hibernate class when I set the fetch attribute of a @OneToMany field to FetchType.EAGER. I assume I'm doing something wrong but I can't see what, can anyone help?</p> <p>This is the error:</p> <pre><code>Caused by: java.lang.NullPointerException ...
2
5,125
NestedScrollView not scrolling when adding TextViews programmatically
<p>I'm including a chess board and pieces on one of the screens in my app, and I want to add a scrollable view underneath it to show the move notation when the user makes a move. I can add the text to the view, but no matter what I try, the view will not scroll.</p> <p>I've researched the trouble other users have had ...
2
1,750
Monitor the CPU usage of an OpenFOAM simulation running on a slurm job
<p>I'm running an OpenFOAM simulation on a cluster. I have used <a href="https://cfd.direct/openfoam/user-guide/running-applications-parallel/" rel="nofollow noreferrer">the Scotch decomposition method</a> and my <code>decomposeParDict</code> looks like this:</p> <pre><code>FoamFile { version 2.0; format ...
2
1,101
ipad uisplitview: passing data from masterviewcontroller to a uiviewcontroller (redirected via segue)
<p>I'm new to iOS programming so I want to make this thing from scratch to be able understand how the whole thing works. So instead of using the master detail template I did this from the ground up.</p> <p>I'm having a huge roadblock in terms of passing data between the master view and the detail view. At the moment, ...
2
1,443
AOS animated scrolling plugin doesn't appears
<p>I'm using <a href="https://css-tricks.com/aos-css-driven-scroll-animation-library/" rel="nofollow noreferrer">AOS</a> plugin, and once I run the plugin on localhost it fails to appear, but if I run it on <a href="https://codepen.io/michalsnik/pen/WxNdvq" rel="nofollow noreferrer">codepen</a> it runs perfectly.</p> <...
2
1,264
IBM MQ :: Remote Configuration - Can't Start Sender Channel
<p>I am working with IBM MQ. I managed to get a basic Handshake / Put Message(s) / Get Message(s) / Disconnect .net solution going on, a couple of days ago, but it only works on a local level, and I now need to update the solution so it works remotely as well. </p> <p>After reading and experimenting for a while, I dec...
2
1,650
JavaCV cvInRangeS Error
<p>I'm trying to filter out the contours in an image. My code has no syntax errors but I just get a lot of red text when I run my program. I have located the point of failure to be cvInRangeS.</p> <pre><code>cvInRangeS(imghsv,minc,maxc,imgbin); </code></pre> <p>You can see this with the println statments only making ...
2
1,524
How do I display active record in codeigniter with multiple controllers?
<p>I am building my comment module and trying to get the active records to display on view. Seems simple however I have a lot going on and using a separate model and controller then what the view is being generated from. </p> <p>So I have a profile page ( where I'm trying to get the results to display )</p> <p>Contro...
2
1,725
Loss of CNN in Keras becomes nan at some point of training
<p>I am training the last layer of VGG16 in Keras. My models looks like:</p> <pre><code>map_characters1 = {0: 'No Pneumonia', 1: 'Yes Pneumonia'} class_weight1 = class_weight.compute_class_weight('balanced', np.unique(y_train), y_train) weight_path1 = './imagenet_models/vgg16_weights_tf_dim_ordering_tf_kernels_notop.h...
2
1,975
Config file transformation doesn't work on build server after migration to package reference format
<p>I am using Microsoft.VisualStudio.SLowCheetah (v3.0.61) package to transform several configuration files to the release version during the build.</p> <p>Recently i have migrated all projects in the solution from packages.config to package reference format. After that transformations performed by SlowCheetah have br...
2
1,375
@layout/layoutID Error on XML
<p>im trying to run a sample code but i get this error when i run the application i get the error on xmp preview and run time </p> <pre><code>10-23 22:04:02.518: E/AndroidRuntime(1543): FATAL EXCEPTION: main 10-23 22:04:02.518: E/AndroidRuntime(1543): Process: net.micode.compass, PID: 1543 10-23 22:04:02.518: E/Androi...
2
3,183
How to make changes to msr 0x199 from EFI stick?
<p>I have a macbookpro11,3 without a battery. When battery is removed the firmware throttles the CPU to half speed. In Windows I can override this using Throttlestop to turn off BD PROCHOT and set multiplier to 25. I want to do this from EFI so that boot and updates run at a normal speed.</p> <p>Based on source for...
2
1,142
open requested div in fancybox from other page
<p>i have a table with links to a other html doc like this </p> <pre><code>&lt;div id="gallery_box"&gt; &lt;ul&gt; &lt;li&gt; &lt;a href="http://www.geestkracht.com" target="_blank"&gt;&lt;img src="images/gallery/Geestkracht.jpg" alt="Geestkracht" /&gt;&lt;/a&gt; &l...
2
2,136
How to programmatically reMeasure view?
<p>I have <code>CustomView</code> with 2 <code>RelativeLayouts</code>. There are <code>RecyclerViews</code> in each <code>RelativeLayout</code>. When I add new element to <code>RecyclerView</code> it doesn`t change height. </p> <p>If I change screen orientation then android measures it well. So my question is how to p...
2
7,433
Typecasting a pointer to change its size (in bytes)
<p>I'm trying to use pointers to move through a region of memory filled with hexadecimal values. I'm using a uint8_t pointer to ensure that it only points to 1 byte at a time. I want to go to a specific location (Offset number of bytes from the starting location) and store a group of bytes that is 1, 2, 4, or 8 bytes i...
2
1,225
Out of Memory error after VBA Macro has run successfully 3 times
<p>I have a macro which is working as it's supposed to; reads in large amount of data from .txt files (upwards of 2mil data points), does some filtering and calculations and then outputs to a spreadsheet. However after running the macro 3 times VBA produces a Run-time error '7': Out of Memory.</p> <p>My temporary solu...
2
1,053
Read Exchange Server 2003 account emails
<p>Working on application that reads emails. Is there a way besides webdav to get all emails from exchange server 2003 to my local machine. The problem with webdav is that it does not get's the body of Undelivered emails.</p> <pre><code>CredentialCache creds = new CredentialCache(); creds.Add(new Uri(a), ...
2
2,781
ClaimsPrincipal.Current.FindFirst(ClaimTypes.NameIdentifier).Value not returning any value
<p>I am creating a mvc web application to read user mails, send mail to a user and to receive the notifications using Microsoft Graph Api. My app is registered in <a href="https://apps.dev.microsoft.com" rel="nofollow noreferrer">https://apps.dev.microsoft.com</a>. I'm able to get the return value for "ClaimsPrincipal....
2
3,289
Structurally enforced Free Alternative, without left distributivity
<p>There is a nice <a href="http://hackage.haskell.org/package/free-4.12.4/docs/Control-Alternative-Free.html" rel="noreferrer">Free Alternative</a> in the great <em>free</em> package, which lifts a Functor to a left-distributive Alternative.</p> <p>That is, the claim is that:</p> <pre><code>runAlt :: Alternative g =...
2
1,740
capybara with :js => true very slow
<p>when I toggle :js => true on my examples, takes too long very long to come up and run the first test, then becomes acceptable peformance</p> <p>this sample running in 0.36722 seconds without :js, and 58.15 seconds with :js => true</p> <pre><code>require 'spec_helper' include UserAbilitiesHelper describe "Custom...
2
1,348
How to create Profile user page using asp.net mvc 4 with sql server 2008?
<p>I want to ask about create profile user page using asp.net mvc 4 and sql server 2008. Before i ask about it. I have create source code in controller like this:</p> <pre><code>namespace SIDLubricants.Controllers { public class ProfileController : Controller { private Tugas_AkhirEntities db = new Tugas_AkhirEnti...
2
3,442
Issue with limits with elasticsearch
<p>I have installed elasticsearch on my server having this ip address W.X.Y.Z</p> <p>I am able to run</p> <pre><code>./elasticsearch-6.3.2/bin/elasticsearch </code></pre> <p>The elasticsearch service is accessible on localhost (remote server) but I can't access it from my locale machine with the browser at this addr...
2
3,399
Overlap Collapse/expand content in frameset
<p>How can i overlap the collapsed/expanded content display in the frameset ( i dont want top frame details to be shorten) ? I use a 3 framed frameset(top frame,left frame and right frame), and can't make this thing work (script made for overlap the expanded content in top frameset something like z-index logic). Is it ...
2
1,454
how to automatically move next page when data fetched from database is stored in text field
<p>I have php page where i have text field where I enter a number . The data are stored in database. I need to fetch the number entered in the text field to be automatically displayed in the next page and it as to disble where the user cannot modify it. please suggest how can i do this using php, jquery. Pls tel me how...
2
1,534
How to show search results with their url's in Umbraco 7
<p>I have implemented search in Umbraco 7 using examine and user control. Search is working fine. Now I need to show the URL of the search results displayed on the lists. Is there any index property like "BodyText" which can show the URL or do I have to do some stuff in user control?</p> <p>User Control code:</p> <pr...
2
2,944
Trigger Scroll toTop after window.location.replace JQuery
<p>I hope someone could help me resolve this programming problem I am having. </p> <p>I have a footer.php file that links to a series of bs-tab groups on another page - let's say about.php (for argument's sake). The task flow I am looking to complete using JQuery is as follows: </p> <p>(Let's say we are on index.php)...
2
1,081
form tag disappear in foreach loop razor MVC 3
<p>I have a problem with form tags in a foreach loop in razor when it render the output html is wrong because in the first iteration the form tags disappear here is the razor code</p> <pre><code>@foreach (var item in Model) { &lt;tr&gt; &lt;td&gt;@if (item.IsMandatory) ...
2
1,166
Flask+Celery as a Daemon
<p>I try to lean Python Flask and want to use celery. The distributed task works fine, but now I would like to config it as Daemon as explained in the celery docs. But I get the <code>celery_worker_1 exited with code 0</code> error.</p> <p>Project-Structure:</p> <pre><code>celery |-- flask-app | `-- app.py |-- work...
2
2,122
I keep getting a "undefined method `each' for nil:NilClass" on my amistad views. Can anyone tell me why?
<p>So I am trying to setup a view for my friendship model from Amistad, but I keep getting this error: "undefined method `each' for nil:NilClass"</p> <p>This is my friendship.rb model</p> <pre><code>class Friendship &lt; ActiveRecord::Base include Amistad::FriendshipModel attr_accessible :user_id, :friend_id e...
2
2,208
How to set OnCheckedChangeListener to a checkbox of a cell in a listview
<p>Hi guys I am trying to set an <code>OnCheckedChangeListener</code> on a <code>CheckBox</code> declared in the <code>xml</code> file that represent the single row of the <code>ListView</code> (<strong>item_todo.xml</strong>), here the code of the checkbox:</p> <pre><code>&lt;CheckBox android:id="@+id/checkBox1" ...
2
1,215
Scrambled array in c
<p>I’m doing a scrambled array where I have to compare two arrays to see if their contents match. I have looked at other scrambled array solutions but for my assignment I cannot change the arrays in any way (no sorting). </p> <pre><code>#include &lt;stdio.h&gt; int scrambled(unsigned int a[], unsigned int b[], unsigne...
2
1,537
How to set origin and destination with mapbox-gl-directions?
<p>I'm using Mapbox to integrate in a javascript/php project. So far so good. Works great. Looking around their api I was wondering whether it was possible to have a mix between mapbox-gl-directions and <a href="https://docs.mapbox.com/help/tutorials/getting-started-directions-api/#add-your-origin-and-destination" rel=...
2
1,062
Adding file to GitHub using java client - org.eclipse.egit.github.core
<p>I am trying to add a file to a repository using the below code but I am getting below error. I just want to add a file for now.</p> <blockquote> <p>org.eclipse.egit.github.core.client.RequestException: Invalid request.</p> <p>For 'properties/email', nil is not a string. For 'properties/name', nil is not a ...
2
1,865
Inventory ClickEvent not working
<p>When I click the Item in the Inventory, it simply does nothing and I can drag it anywhere I want. Then I re-open the inventory and the Item is back. I want the item a click (The Notify item in this case) to toggle the notify boolean and close the Inventory. Please help. It may be a stupid solution but sometimes the ...
2
2,326
How to return html text variable in react and print as html?
<blockquote> <p>Function 1 Which returns JSON array.</p> </blockquote> <pre><code>function allPlans() { var all_plans = { 'Stock Card Views' : { 'free':{status:true,plantext:"5 Per Month"}, 'premium':{status:true,plantext:"Unlimited"}, 'vip':{status:tru...
2
1,985
How to Import XML data into Hive using attributes as columns
<p>I am pretty new with HiveQL and I am kinda stuck :S</p> <p>I have a data stored in xml format and I want to extract fields from this xml file in a Hive table of columns (string Titles_2 , sting Artists_2, string Albums_2) .</p> <p>A Sample of the xml data:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&g...
2
1,271
Why does Internet Explorer fail to see my Flash ExternalInterface method in ASPX?
<p>I'm using Javascript to call a method on a Flash movie embedded in an ASPX page using SWFObject. It works fine in Firefox, but Internet Explorer 7 and 8 (so far) claim the object returned by <code>swfobject.getObjectById()</code> "doesn't support this property or method". I've found similar posts on this site and ot...
2
1,120
(XCODE) ERROR: ld: 5 duplicate symbols for architecture arm64
<p>I know this is a very common error, but I believe I have tried every single solution I have seen already posted. I use Unity for my app and do not know much about xcode syntax. I also believe it might be coming from UnityAds but I do not know how to address it. Thank you very much for any and all help. <a href="http...
2
1,239
Loading static project without webpack or CDNs
<p>I would like to statically serve a project, that uses webcomponents (using lit-html), <em>without any packaging tools like webpack etc</em>. </p> <p>The example project is composed of this structure:</p> <pre><code>index.html app.js package.json </code></pre> <p><code>package.json</code>:</p> <pre><code>{ "nam...
2
1,473
PHP: 554 Message not allowed - Headers are not RFC compliant[291]
<p>This can be duplicated post but please read before you flag it.</p> <p>I using one mail function what I made and work a while until I not start receiving error messages from Yahoo.com and SkyNet.be.</p> <p>Now I know that this error is realated to <code>Message-ID</code> or <code>Date</code> header inside email bu...
2
1,076
Navigating between Multiple pages in Xamarin.forms?
<p>I have a content view and left navigation drawer which are commons on 4 pages and Content view contains 4 icons which navigates between 4 different pages. I want to keep my content view and left navigation drawer on all 4 pages. I create a Master details page and set Master page to Left navigation Drawer and i am ch...
2
1,495
how to retrieve image from oracle and display in java frame
<p>how to retrieve image from oracle and display in java frame. Please send me a sample program I'm using oracle 10G express edition.</p> <pre><code>import javax.swing.*; import java.awt.event.*; import java.awt.*; import java.sql.*; @SuppressWarnings("serial") public class Search extends JFrame implements ActionLis...
2
2,060
Hierarchical Datatemplate Binding To DataType Not DataContext
<p>I have a usercontrol with a Tree inside it with, the command property binds to the DataType and not the DataContext. </p> <p>How can I redirect the binding to go to the DataContext and Not the DataType ? Also Out of curiosity how would I bind to the UserControl's DataContext instead of the Tree's DataContext ? </p...
2
2,453
Python telnet library issue, can't read the output without trap level set
<p>Don't know if the issue is with the python, the telnet library or the router but I just can't seem to get the script running like it should.</p> <p>It's a simple script that will display the output of the routing table from the router, but somehow if you don't set the command for trap/debug it won't display/print a...
2
1,943
Getting an Oauth 2.0 API signed request to work in Python/Django
<p>I'm trying to get a signed Oauth 2.0 to work in python to feed a Django app. Here is the closest that I got, using this code:</p> <pre><code>from oauth_hook import OAuthHook import requests import json OAuthHook.consumer_key = "key" OAuthHook.consumer_secret = "secret" oauth_hook = OAuthHook("access_token", "", he...
2
6,315
Dynamically creating graphs with jQuery
<p>I have a page that lists about 30 portfolios, each with 3 stocks. I am trying to create a pie chart to go with each portfolio, where the pie chart would be composed of values from the three stocks in that portfolio.</p> <p>The values of the stocks are printed to the screen, so I can grab them quite easily with jQue...
2
1,303
Kendo grid with numerictextbox tab out issues
<p>I have a Kendo grid that I am using in a time entry application. The time entry covers a 2 week pay period, so I have 14 columns where the user can enter the number of hours worked each day for the given task. I also have columns for the task, an overtime indicator, totals for each week and a total for the pay per...
2
16,903
pip install / pytz versioning conflict?
<p>I ran <code>pip install protobuf==2.6.1</code> as part of a project's <code>install</code> script on an Ubuntu 12.04 VM. This yields the following error: </p> <pre> Collecting protobuf==2.6.1 /usr/local/lib/python2.7/dist-packages/pip-7.1.2-py2.7.egg/pip/_vendor/requests/packages/urllib3/util/ssl_.py:90: InsecurePl...
2
1,635
A-Star Algorithm is running like Dijkstra and delivers a wrong result
<p>I'm trying to implement A-Star in Java based on OSM Data. My problem is that my implementation is not working correctly. First of all the path is not the shortest. Second the closedlist contains more 1/3 more nodes in the end as Dijkstra. Thats actuall not that what I expected. </p> <p>Here is my A-Star code which ...
2
2,892
How to have images in a JavaScript quiz?
<p>I'm working on a basic JavaScript quiz for my younger anime-loving siblings. I want to be able to have a different picture available for each question. How and Where could insert images for the questions? Notes about the quiz only one question are shown at a time. For the sake of publishing, I took out all the quest...
2
1,057
Creating a color loop effect in Unity?
<p>I'm currently developing a game in Unity and I ran into a small problem. I'm trying to generate a rainbow color effect that is similar to what happens when someone catches a star in mario kart or supermario on a specific gameobject. Essentially all the instances of the prefab attached to the script InteractControl t...
2
1,532
Is SoapUI converting my REST API's XML to JSON?
<p>I've been assigned the task of building a REST API with basic authentication that outputs an XML file.</p> <p>I struggled for awhile getting XML to come out instead of JSON, but I think I got it. I've annotated @XmlRootElement s and @XmlElements and, sure enough, when I access the API with a browser, XML comes back...
2
1,267
How to avoid duplication of components using React-Navigation?
<p>I had <strong>5 screens</strong> with the same styles and layout, but some text and button logic difference. <br /><br /> I tried to keep everything in <strong>one component</strong>, passing there the name of the component I need to mimic, but it grew up in <strong>nested if/else</strong> all around, what made the ...
2
1,998
How to shuffle and play an audio file from an array
<p>I have some problems with my code, I want to shuffle a file array that contains .mp3 audio files and play one file from it when a button is clicked!! I absolutely have no Idea on how to do this, I need some help, real help!! Here is my code!..... It runs but it plays all files at once.... I want it to randomize, an...
2
1,742
No Results from ACF Repeater Field
<p>I have a WordPress site with the ACF repeater field installed. I have followed the video tutorials down to a t and have tried every version of the template code examples on the site but I can't get anything to display at all, nothing.</p> <p>My repeater field name 'carousel_images' and it has 3 sub fields, 'image',...
2
1,398
how to set spinner text in center and set divider also
<p>I want to set a spinner text center and set a divider also. There is a problem in set text at the center and set divider. Also the spinner items and spinner values are coming from a server json.</p> <p>This is my code:</p> <p><strong>XML:</strong></p> <pre><code>&lt;Spinner android:id="@+id/txtSpinner" a...
2
1,168
The app crashes trying to create a videocall
<p>I cloned the project from Agora IO repository on github (<a href="https://github.com/AgoraIO/Flutter-SDK" rel="nofollow noreferrer">https://github.com/AgoraIO/Flutter-SDK</a>) and then I migrated it to androidX. The migration was okay, but when I try to create a channel the device show this error:</p> <blockquote> ...
2
1,491
Uploading image with parameters using multipart/form data in swift
<p>I am trying to upload an image at <strong>specific</strong> path of my server. That path will be determined by parameters sent from <code>multipart/form-data</code> request. </p> <p><strong>Problem</strong>: The image is not uploaded to the specified path, instead, uploaded to root of my server. </p> <p>I am calli...
2
1,619
Native IE8 - Why do these 'inline-block' elements not 'wrap words' if their parent is the first floated item?
<p>Sorry in advance, this is long and weird. I found this bug in native IE8 when working with Bootstrap and have stripped it all the way back to find the cause. But I want to know <strong>why</strong> it happens.</p> <p><strong>The setup:</strong> I have a <code>.container</code>, inside the container I have a <code>...
2
1,615
Excel VBA | Union method on another Worksheet
<p>I am trying to get a specific Worksheet exported to PDF. The script is called from another Worksheet. As there can be a case where I don't want to print/convert all sites into the PDF, I have some IF-methodes included. "If the site x is unwanted, do not include it on the UNION-method and therefore do not convert it ...
2
1,044
"invalid cross-thread access" when calculating a route - Windows phone 8
<p>i'm trying to show a route on a map, but i get this exception. i can't figure out why. here is my codebehind:</p> <pre><code>public partial class map_new : PhoneApplicationPage { public GeoCoordinate destination; public GeoCoordinate myPosition; public Geolocator myGeolocator; List&lt;GeoCoordinate...
2
1,095
Eigen Sparse LU solver
<p>I am using the Eigen library in C++ for solving sparse linear equations: Ax=b where, A is a square sparse matrix and b is a rectangular sparse matrix. I have multiple instances of the A matrices and each one has multiple right hand sides b. Hence, I want to factorize all the A matrices once and store them followed b...
2
4,988
Error inflating class com.google.ads.Adview Android
<p>I'm rather new to coding (I have a few apps on the market, but no games yet) I therefore decided to create a game. I made the whole game and it worked, but when I attempted to integrate Google AdMob, it all went wrong.</p> <p>Here is my main.xml (the place I want the ads)</p> <pre><code>&lt;?xml version="1.0" enco...
2
3,179
sp_send_dbmail Incorrect syntax near '<'
<p>I'm having a problem sending a HTML formatted email from SQL server.</p> <p>With the following section of code I get a <code>"Line 1, incorrect syntax near '&lt;'"</code> error.</p> <pre><code>SET @tableHTML = '&lt;H1&gt;Progress Report&lt;/H1&gt;' + '&lt;table border="1"&gt;' + '&lt;tr&gt;' + ...
2
1,504
Can't make multiple inners draggable object from angular 5 & dragula
<p>I'm trying since few days and can't make it works...</p> <p>Little explanation : </p> <p>I've in this example, an array of object like this : </p> <pre><code>public containers: Array&lt;object&gt; = [ { "name": "container 1", "items": ["1", "2", "3"] }, { "name": "container 2", "items": ["4"...
2
1,120
Can't install pm2 globally inside a docker container (Vultr host)
<p>I'm trying to use <code>docker-compose</code> in a Vultr server with Ubuntu 18.04. I created the following <code>Dockerfile</code>:</p> <pre><code>FROM node:latest # Create app directory WORKDIR /usr/src/app # Install app dependencies # A wildcard is used to ensure both package.json AND package-lock.json are copi...
2
2,211
Can't call method "fetchrow_array" without a package or object reference
<p>I want to select data form database and display them, but I am having the following problem: <code>Can't call method "fetchrow_array" without a package or object reference</code></p> <p>test.pl<br> my $q = new CGI();</p> <pre><code>my $handle = Db::connection(); sub select{ my $rData = { table =&...
2
1,310