title
stringlengths
13
150
body
stringlengths
749
64.2k
label
int64
0
3
token_count
int64
1.02k
28.5k
requestPermission not showing in support Fragment
<p>I know this question has been asked number of times but none of the methods are working for me. I have a v4.nested fragment and I am calling requestPermission but I don't even get the dialog to show and hence onRequestPermissionsResult is not getting called. I have tried call the onRequestPermissionsResult in both m...
2
2,007
JSON not working with CodeIgniter and AJAX
<p>Good day to all.</p> <p>Im sorry if I asked this question which stopped me now on my development. I am just a newbie in jquery and json which dont know yet how to manipulate the data. Sorry for this.</p> <p>As a background, here is my VIEW as I am using a CodeIgniter Framework. This Search button (in yellow) is no...
2
2,879
Event_Bus vue variable access to single file component Vue.js - Laravel Mix
<p>I just want to ask on how to access a variable to the single file component of vue? When i try to access my app on the browser the vue js will result an error.</p> <blockquote> <p>Error in mounted hook: "ReferenceError: EventBus is not defined"</p> </blockquote> <p>My code below.</p> <p>I implement this on the...
2
1,315
KnpLabs/snappy bundle (wkhtmltopdf) not render Chart.js charts
<p>I trying to generate <code>PDF</code> with charts generated by <code>Chart.js</code> library but javascript does not render at all.</p> <p>Do you see something I had missed?</p> <pre><code> # config/packages/knp_snappy.yaml knp_snappy: pdf: enabled: true binary: '%env(...
2
2,796
Timeout trying to lock table when trying to merge
<p>I am trying to write a test for a dropbox crawler.</p> <p>I have setup a Fixture which loads data into the database on load. </p> <pre><code>Fixtures.deleteDatabase(); Fixtures.loadModels("testusers.yaml"); </code></pre> <p>The problem occurs when the code </p> <pre><code>da = da.merge(); //exceptions gets throw...
2
2,940
sqlalchemy - how to convert query with subquery into relationship
<p>In the code below I want to replace <code>all_holdings</code> in Account with a property called <code>holdings</code> that returns the <code>desired_holdings</code> (which are the holdings representing the latest known quantity which can change over time). I'm having trouble figuring out how to construct the call to...
2
1,750
Underflow Exception error in java
<p>I am creating a AvlTree program. I am trying to implement a UnderflowException class within my code but it seems not to work. Shouldn't be possible? or I'm doing something wrong. </p> <p>My code:</p> <pre><code>public class AvlTree&lt;AnyType extends Comparable&lt;? super AnyType&gt;&gt; { /** * Construct...
2
5,299
deadlock when using WCF Duplex Polling with Silverlight
<p>I have followed Tomek Janczuk's demonstration on silverlight tv to create a chat program that uses WCF Duplex Polling web service. The client subscribes to the server, and then the server initiates notifications to all connected clients to publish events. </p> <p>The Idea is simple, on the client, there is a button...
2
2,312
Mock Database with ID column
<p>I'm (fairly) new to TDD, so be gentle!</p> <p>I am using CodeFirst to create my application in C# using EF6 in VBS2015 Community.</p> <p>I have an Interface created for my data access and am able to create a Mock Database in memory for Unit testing.</p> <p>Each of my Models has a unique identifier column which is...
2
1,563
Prometheus OR when using rate()
<p><strong>Summary</strong></p> <p>I'm trying to figure out how to properly use the OR <code>|</code> operator in a Prometheus query because my imported Grafana dashboard is not working.</p> <p><strong>Long version</strong></p> <p>I'm trying to debug a Grafana dashboard based on some data scraped from my Kubernetes ...
2
1,846
how to analyze the binary data of these h.264 packets and organize a h.264 stream to decode them use ffmpeg?
<p>Much appreciation to some help with the following issue: the h.264 packets attached below are received from a decoder,but I am not sure about the details, e.g. the transfer protocol .I've searched some topics similar to this and read the articles of analysis on this topic from the author Cipi and others.Thanks a...
2
5,570
Clicking on an item in a list opens a Google Maps marker’s info window using Knockout.js and vanilla JavaScript
<p>Starting from a simple list of favorite venues stored in an array as objects, I need to have these venues show up on google maps with their own markers. When the markers are clicked, their info windows should open and display their information. That’s pretty straight forward and I’ve already done that. </p> <p>In a...
2
1,988
Class does not implement interface member
<p>this is my first question here so please do excuse if it's not really up to par with some of the more advanced questions. I'm mainly a Java developer however I recently started moving over the C# and I decided to pick up the Photon Networking Library in order to start implementing it with my Game that I'm creating u...
2
1,516
Android PermissionsDispatcher with API < 23
<p>I use hotchemi PermissionsDispatcher to check permissions. It works perfectly for API >= 23. But I'm getting a FATAL EXCEPTION java.lang.StackOverflowError when I try to use the same code on a device with API 16. The error raise when I call <code>showCameraWithCheck()</code> in the generated class <code>MainActivit...
2
2,857
NSArray of UIImages to video error has distortion in the output
<p>I am relatively new to programming and although i am ok with normal functions, i am however completely new to video editing</p> <p>So i have managed to find some code online to do the jobs shown below:</p> <pre><code>- (void)writeImagesAsMovie:(NSArray *)array { NSArray *paths = NSSearchPathForDirectoriesInDomains...
2
2,812
Nested AJAX calls to be called in a particular order
<p>I've tried going through <a href="https://stackoverflow.com/questions/38468428/jquery-deferred-in-each-loop-with-ajax-callback">this question</a> and also <a href="https://stackoverflow.com/questions/13951456/using-deferred-with-nested-ajax-calls-in-a-loop/13951699#13951699">this</a>, but I can't seem to figure out ...
2
1,189
XMLHttpRequest.onReadyStateChange not working in Chrome, Firefox, Internet Explorer
<p>I am using Aptana Studio 3 text editor and working on Windows 7 Enterprise OS. I have the following AJAX code which is not working on the local system to fetch JSON files kept on an https website. This example is taken from the Youtube video:</p> <p><a href="https://youtu.be/rJesac0_Ftw" rel="nofollow noreferrer">J...
2
1,839
garbage text with c++ strings on send recv calls
<pre><code>// In server.cpp after connection has established std::string input; input.reserve(5); std::cout &lt;&lt; "Enter message to send: "; std::cin.ignore(); // =====(1)===== std::getline(std::cin, input); std::cout &lt;&lt; "Sending..." &lt;&lt; std::endl; auto len = input.length(); auto bytes_sent = ...
2
5,318
Importing a package with an interface and a class
<p>I am trying to create a Java package to interface with Excel, so I am using the org.apache.poi libraries. I've found the documentation on the <a href="http://poi.apache.org/spreadsheet/quick-guide.html#ReadWriteWorkbook" rel="nofollow noreferrer">POI site</a> that shows the following:</p> <p><strong>Reading and Rew...
2
1,147
Can I use a C++ template library from a C program?
<p>My knowledge of C++ is limited. I understand that C++ libraries can be called from C provided a C interface is available. Is it possible to call a C++ template library defined in a <code>.hpp</code> file from a C library? For example, this wonderful <a href="https://fastmathparser.codeplex.com/">expression evaluatio...
2
1,432
flot x axis tick labels not aligned to stack bar chart on Change Data
<p>I am working on stacked bar chart that is redrawn on click of a button.</p> <p>I use the categories plugin to display textual values on the x axis</p> <p>However when the bar chart is redrawn the labels are not sorted in order.</p> <p><a href="http://jsfiddle.net/mxvhp9uo/5/" rel="nofollow">http://jsfiddle.net/mx...
2
4,709
Multiple Images upload in android asynchronously using phonegap
<p>I have an issue with multiple images upload to php server. The code given below works fine for android 2.x versions, but the same code doesn't work for android 4.x and above. I have googled and found out that the data posting has to be done asynchronously by AsyncTask. But I have no clue about how it has to be done ...
2
4,433
openlayer change feature attributes with a strategy
<p>I change an attribute vale of a feature into a custom strategy but when the features are drawn the features don't take the new attribute value.</p> <p>This is the test I'm doing:</p> <pre><code>OpenLayers.Strategy.LabelChange = OpenLayers.Class(OpenLayers.Strategy, { activate: function() { var activa...
2
1,097
Fragment can not be cast to android.support.v4.app.Fragment
<p>I am getting this error while implementing Fragment tabhost.</p> <p>I am basically trying to call an activity in tab view which extends Fragment.</p> <p>I also tried with extending FragmentActivity, but it gives an error on "onCreateView" method. Upon removing @override annotation from "onCreateView" method, and r...
2
1,057
Cannot spy on mocked functions of a class using a manual mock
<blockquote> <p>Note: I have created a full paired down Github repo that you can download and checkout for yourself <a href="https://github.com/sethreidnz/manual-mock-issue-repro" rel="nofollow noreferrer">here</a></p> </blockquote> <p>I am trying to mock out a non-default exported class in a module using a manual m...
2
1,701
Makefile only working with relative paths on MSYS2 (WIndows)
<p>I have a set of programs that compile fine on Ubuntu and I'm working on a setup to compile on Windows as well. I'm using MSYS2.</p> <p>There is a main Makefile which looks like this:</p> <pre><code>#### Project main directory DIR_MAIN=$(shell pwd) #### Compile all all: @$(MAKE) -C src/Misc DIR_MAIN=$(DIR_MA...
2
1,271
How to get the path of an internal folder?
<p>I have a project in WinForms C# that I created an internal folder <code>reports</code> to add my RDLC reports, its works fine when I'm developing, the problem is when I create the <code>Setup</code> to install application using <code>InstallShield Limited Edition</code> because after install the application I try ex...
2
3,767
Magento 1.7.0.0 FishPig - Excluding Category
<p><strong>EDIT 01-28-13: Revised to clarify my question.</strong></p> <p>I'm using Magento 1.7.0.0 and FishPig WP full integration. We have successfully listed products from specific category and from all categories but was wondering if we can exclude in some cases from specified category. I found solutions to do thi...
2
1,165
POST not possible because instantiation of standard serializer (Jackson) fails
<p>I'm trying to post data from my client to a rest-webserver. My client uses Spring's Resttemplate for Android.</p> <p>Requesting objects works, but POSTing them runs in the following error:</p> <pre><code>java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.erdi.mobilefinalneu/com.example....
2
1,286
Namespace issue when calling function in one .js file from another .js file
<p>In an attempt to make a swipe-able slideshow for many images, I am attempting to stitch together two plugins, <a href="http://swipejs.com/" rel="nofollow noreferrer">Swipe.js</a> and <a href="http://www.appelsiini.net/projects/lazyload" rel="nofollow noreferrer">lazyloader.js</a>. I want to have the slideshow timer ...
2
1,107
.net Core Console application in Docker Container throws System.ObjectDisposedException
<p>i found many entries to this issue but no solution worked for me.</p> <p>In short i have a .net Core 3.1 console application which i want to run in Docker. If i start the Application in Visual Studio or via the commandline all works fine (Debug and Release build).</p> <p>If i put it in a Docker container, i get th...
2
1,790
Action Button and Isolate seem to not work as expected in Shiny
<p>I've got a Shiny app that makes a plot according to user selection. As I only want a new plot after action button is selected, I've put plotting code inside "isolate". The result is that a new plot appears as soon as the action button is pressed, but sometime it also appears also without pressing on the button. In p...
2
1,834
How to click the li in the dropdown programmatically
<p>I am a having a custom dropdown in which on the click of the item in the dropdown, top selection text I am changing. But when the user goes forward to the next step and goes back to the current step, I am trying to store in a local storage, And using that id in the local storage .. I want to click the li programmati...
2
2,271
circular collection view layout
<p>im trying to make a collection view that is circular in shape.</p> <p><img src="https://i.stack.imgur.com/uBv4B.png" alt="this is what im trying to do"></p> <p>Somehow I managed to get the view circular, but stuck with scrolling. my collection view cells and layout are circular but I'm not able to make the cells s...
2
1,860
not generate Release build while proguard enable
<p>I am trying to generate Release apk while proguard enable.</p> <p>I am trying lots of thing i tried by add below line to proguard-rule.pro file</p> <pre><code>-dontwarn com.squareup.picasso.** -dontwarn okio.** -dontwarn retrofit2.Platform$Java8 -dontwarn com.mixpanel.** -dontwarn org.acra.** </code></pre> <p>in ...
2
7,421
IOS application works on the simulator but not on the device
<p>I made a simple sign up application with parse backend. Everything works fine. I have no warnings or error code and I can also see the user in the parse dashboard when i create it. But the application only works at the simulator. When I put it on the device, it starts the application but shows a black screen. I trie...
2
3,303
Create two equal height columns of random portrait and landscape images in PHP
<p><strong>Given a random number of portrait and landscape images, I am trying to write PHP code to output two columns of equal height:</strong></p> <ul> <li>By assigning the value "1" to landscape images and "2" to portraits, my idea is to divide the total images ($totalphotos) by two and then check to see that the i...
2
1,049
Serialize empty object instead of null in Newtonsoft.JSON
<p>this is bothering me for some time. I've got model:</p> <pre><code>public class Main { public Header header { get; set; } public Response response { get; set; } } public class Response { public string projectId { get; set; } public string designBriefId { get; set; } public MDT mdt { get; set; } ...
2
1,101
YouTube API nextPageToken
<p>I'm fairly new to javascript and I'm kinda stuck in using the youTube API. I'm able to get results with the data I need, loop through each of them and display them, but the problem is with the nextPageToken. I can't seem to figure out why after the second search function with the nextPage token, I'm unable to discar...
2
2,513
How to iterate or deal with grid or coordinate in python
<p>I have created a forest with random number in a grid of N x N. For creating the forest, I have taken each grid and a random number to plant a tree. And store the planted coordinate in a list <code>li[]</code> for x-axis and <code>lj[]</code> for y-axis. And also put the coordinate in a .dat file</p> <p>In python, h...
2
1,095
Android Bluetooth IOException: Connection refused
<p>Note: also posted on <a href="https://groups.google.com/forum/?fromgroups=#!topic/android-scripting/UsPy3x4jvG0" rel="nofollow">https://groups.google.com/forum/?fromgroups=#!topic/android-scripting/UsPy3x4jvG0</a></p> <p>I am trying to connect to a Bluetooth RFCOMM device. I use sl4a and connect from a Python scrip...
2
4,678
How to get updated redux-toolkit state when component is not re-render
<p>I'm trying to delete item in redux toolkit, but don't know how, the remove function only work on screen, i have to press twice to delete the previous one</p> <p>Here is the reducer</p> <pre class="lang-js prettyprint-override"><code>const noteReducer = createSlice({ name: &quot;note&quot;, initialState: NoteList...
2
2,081
Visual Studio 2005 Professional Edition Corrupt CAB Files
<p>Solved. A person has the cab files available for download @ <a href="http://www.cvilchez.com/MP3FILES/VisualStudio%202005/" rel="nofollow">http://www.cvilchez.com/MP3FILES/VisualStudio%202005/</a></p> <p>(Found him on google by searching for one of the cab files I need)</p> <p>Hey, everyone. I downloaded the below...
2
1,448
Sending dynamic data in response using agent.add()
<p>My requirement is to send dynamic data with response using Dialogflow’s Nodejs fulfillment library beta.</p> <p>My query is to know the possibility of sending dynamic data with response which we got that from external api ? There are cases where we need to send real time data to dialogflow agent ( in turn to clien...
2
1,685
Using INotifyPropertyChanged to refresh a databound datagrid?
<p>I have created a databound datagrid in WPF: 'ActionResults', when I run the application it shows the contents of the database table.</p> <p>The I.T dept. are going to manually update the 'ActionResult' table in SQL server management studio. If any changes are made to the table, they will display in the datagrid onl...
2
1,665
org.hibernate.MappingException: <mapping> element in configuration specifies no known attributes
<p>When i run the code it gives me an exception: </p> <blockquote> <p>org.hibernate.MappingException: element in configuration specifies no known attributes </p> </blockquote> <p>I am not sure where error occurs, can anyone help me to solve this..</p> <p><strong>hibernate.cfg.xml</strong></p> <pre><code> &lt...
2
1,481
AngularJS Getting an extra space when converting comma separated value
<p>I trying to convert a JSON content into the comma separated value in a table format.</p> <p>I achieved this by using <code>table</code> with <code>ng-repeat</code>, but I am getting an extra space in end of the each value.</p> <p><strong>HTML code:</strong></p> <pre><code>&lt;div ng-controller="JsonConvertControl...
2
1,776
How to test for Django Create and Update View
<p>To simplify, I cannot get the test to create or update the model that I have. I have written an <code>UpdateView</code> and a <code>CreateView</code>but I cannot get the test to work. Here are the views:</p> <pre><code>class InventoryCreateView(CreateView): model = BaseInventory context_object_name = 'item...
2
1,128
decision code other than if then else
<p>I was wondering if someone could help me understand some code. Its a tic tac toe program..</p> <p>There is a section of the code I don't get, but seems to allow the system to distinguish between two choices. im used to saying something like this.</p> <pre><code>cout&lt;&lt;"enter choice.1 or 2"; cin&gt;&gt;choice;...
2
1,068
Nest.js Jest cannot mock testing app but can mock testing controller
<p>I have a Jest Nest.js controller test where I can stub the calls to the live database. It works fine.</p> <p>I would like to have 'stubbed e2e' tests using nests HTTP Server (I am using supertest). However, when I import the <code>AppModule</code> I cannot seem to get jest to override anything.</p> <p>Here is my wor...
2
2,695
How to wrap content a button on this code? (Window manager) (Android)
<p>How can I make this button, a button created by code wrap its contents? This is a service using window manager to display the view. The Button is called mainButton. The problem is that that button filled the parent.</p> <pre><code>package com.toksis.pvscreen; import android.app.Service; import android.content.Cont...
2
2,839
Elasticsearch geo_bbox with Google Places API viewport locations
<p>Hopefully I can explain my issue.</p> <p>I am using Google's Autocomplete to get a person destination. Once I have the destination I can use google's place api to look up the geometry viewport. But the viewport is from theNorth/East to South/West. My problem is with Elasticsearch the geo_bbox takes it from top/left...
2
1,618
How to push an image to a docker registry using the docker Registry API v2
<p>I'm a writing a docker registry API wrapper to pull images from one private registry and push them to another. </p> <p>Based on the <a href="https://docs.docker.com/registry/spec/api/" rel="nofollow noreferrer">documentation</a> first I need to pull the manifest and the layers for an <code>image:tag</code>. Followi...
2
1,136
Timeout on recvfrom ( winsock2 & udp )
<p>I'm trying to implement a <code>timeout</code> on the <code>recvfrom()</code> function.</p> <p>To do so, I use the <code>select()</code> function. I take the code from the great Internet, but don't know why, my program crash when I use it. I launch this server in athread if that coudl help. Here's what I try to do ...
2
2,107
Error at TemplateDoesNotExist at /
<p>I am using django 1.10.2 version and I got an error which says TemplateDoesNotExist at /</p> <p>I don't know why it's happening, I tried fixing it with: </p> <blockquote> <p>'DIRS': ['C:\Users\rahul\django-tuts\cms\blog\templates\blog\post'],</p> </blockquote> <p>or </p> <blockquote> <p>'DIRS': [os.path.jo...
2
2,041
Using selenium, I need to iterate over all iframes and their child iframes on the fly
<p><strong>I need to iterate over all iframes and their child iframes on the fly as I want to perform some action on all the <code>&lt;img&gt;</code> tags. I am using selenium.</strong></p> <pre><code>public class logic { static WebDriver driver; static List&lt;WebElement&gt; TotaliinnerFrames=null; logic() { d...
2
1,725
Error: Cannot find symbol class CouponBindingImpl
<p>I am trying to make an android application that displays a list of coupons to the user to choose from using <code>RecyclerView</code>. I am trying to use <code>DataBinding</code> to bind the details of the coupons to a coupon XML template, and then those coupons to the <code>RecyclerView</code>. </p> <p>when I try ...
2
3,979
Google Cloud Endpoints : Not able to open http://localhost:8080/_ah/api/explorer behind a proxy network
<p>When i am opening <code>http://localhost:8080/_ah/api/explorer</code> Eclipse is showing an error- ></p> <pre><code>com.google.apphosting.utils.jetty.JettyLogger warn [INFO] WARNING: /_ah/api/static/proxy.html: java.io.IOException: Could not fetch URL: https://webapis-discovery.appspot.com/_ah/api/static/proxy.html...
2
2,320
Why does await not wait? And why does Sequelize neither respond nor error?
<p>As you can see in the .gif below, the first time I call my database it returns data successfully. But the next two times it neither returns nor errors, the asynchronous code simply disappears. And even worse, my await statement doesn't wait for the response, it just continues. </p> <p>Can anyone tell me why the su...
2
1,573
Undefined reference to `vtable for...with RTTI support
<p>I created an application that uses RTTI support for dynamic_cast. I added "APP_CPPFLAGS += -frtti" in Application.mk file but i get the error: "undefined reference to `vtable for...". If i don't use RTTI, i get the error: "error: 'dynamic_cast' not permitted with - fno-rtti"</p> <p>There is the output i get:</p> <...
2
1,058
Calling java methods in C++ using JNI
<p>I need to call java methods from a c++ application. I've followed the instructions in these tutorials: <a href="http://hildstrom.com/projects/jni/index.html" rel="nofollow">http://hildstrom.com/projects/jni/index.html</a> <a href="http://www.codeproject.com/Articles/22881/How-to-Call-Java-Functions-from-C-Using-JNI"...
2
1,282
Invalid testPattern --config=jest.config.js with react-scripts with Mono Repo
<p>I am trying to set a custom jest.config to react-scripts via:</p> <p><code>&quot;test&quot;: &quot;react-scripts test -- --config=jest.config.js&quot;,</code></p> <p>I feel it is important to mention that I have a mono repo.</p> <p>However this has created the following error:</p> <pre><code>Invalid testPattern --co...
2
1,223
Sending Messages through Microsoft Graph API with SchemaExtension Data
<p>I'm looking for some help formatting schema extension data in Microsoft's Graph API. I've been able to successfully send Office 365 messages in code and through the Graph Explorer using this body:</p> <pre><code>{ "message": { "subject": "Test Subject", "body": { "contentType": "Text", "conten...
2
1,478
Unable to locate ILoadBalancer for service while using Ribbon with Eureka
<p>I'm using spring cloud verion 1.0.0.RC1. Getting an error 'Unable to locate ILoadBalancer for service'.</p> <p>Any thoughts..is something missed. Isn't there a default load balancer used by ribbon.</p> <p><strong>##########application.yml#############</strong></p> <pre><code>spring: cloud: client: ser...
2
1,421
Authenticating via curl with Tasty Pie, using Session Authentication
<p>So, it seems that I can perform this action just fine from the browser, but I can't seem to replicate it via CURL. Any pointers on how this is supposed to work are greatly, greatly appreciated.</p> <p>I perform this request to log in a user:</p> <pre><code>curl -X POST -H "Content-Type: application/json" \ -d '{"...
2
2,782
The ViewData item that has the key 'Key' is of type 'System.Int32' but must be of type 'IEnumerable<SelectListItem>' in iis7.5
<p><strong>Solved - Check comments</strong></p> <p>I have a problem when I deploy my code to IIS 7.5, The code works fine in localhost but crashes when I deploy it.</p> <p>I have two methods that are almost exactly the same where one of them works both in localhost and IIS and one only works in localhost</p> <p><str...
2
2,101
Can't join JDBC transaction with JTA transaction with Hibernate 4/Hibernate 5 on Glassfish 4 when flush() is manually called
<p>I'm trying to move our application forward. Now it runs under Glassfish 3, JAVA EE 6 and uses Hibernate 3 as the JPA implementation. I wrote an example that shows a problem I've with transactions. In some circumnstances the application needs to manually call the entity manager flush() method. But even in a JTA envir...
2
2,985
400 - Bad Request when performing bulk import of contacts
<p>I'm attempting to perform a bulk import using a Multipart content type, although, regardless what I try, I continually get error 400 - Bad Request. Unfortunately, this doesn't tell me much, and the documentation for <a href="http://developer.constantcontact.com/docs/bulk_activities_api/bulk-activities-addcontact-mu...
2
1,320
Facebook Conceal crypto for android is always unavailable
<p>I'm not able to use <a href="https://facebook.github.io/conceal/documentation/" rel="nofollow">Facebook Conceal</a> Libraries in my android application. The <code>crypto</code> always seems to return true on <code>crypto.isAvailable()</code>. Also, I'm using Android 1.0.2 that does not explicitly lists the libraries...
2
2,199
Select Tag Helper in ASP.NET Core MVC comes empty after post when need to go back to view
<p>Well as said the description, when I pass data from the get of my method to the view everything its fine, but, when i hit save button and it goes to the server to validate if model is valid, if certanly its valid everyting its ok, but, if the model is not valid he go back to the same view (as is suppouses to do), bu...
2
1,539
Firefox - CSS Table TR/TD background issue
<p>I've got a problem with table TR/TD background in Firefox. I've got table with dynamic content loaded via ajax. When I load content, I mark with green background some of the table rows. I attach a background to each TD in the row but when I check how it works in Firefox I get background only <strong>under</strong> t...
2
1,436
PHP not getting $_POST inputs from form
<p>I am working with PHP <code>mail()</code> and have a contact form which <code>posts</code> the input fields <code>submit</code>. <strong>All</strong> inputs on the html form have a <code>name</code> attr attached to them so PHP can retrieve their values.</p> <pre><code>&lt;form id="main-contact-form" class="contact...
2
1,846
C# - Display Countdown Timer in Console for User Input Through ReadLine()
<p>Currently I am trying to create a console game. The basic concept is that the user gets a number of randomized letters and has a limited amount of time to make as many words with these letters as possible. An example could be, that the user gets [a,a,c,t,t,e,g,s,o,i] where valid words would be "get", "got", "test", ...
2
1,150
configure: error: Python interpreter is too old
<p>I am trying to Build and Install the Apache Thrift compiler and libraries</p> <p>As shown in instructions run <code>./configure &amp;&amp; make</code> </p> <p>And I get this error <strong>configure: error: Python interpreter is too old</strong></p> <p>I have python 2.7.12 </p> <pre><code>checking for a BSD-compa...
2
2,060
Why -frameForAlignmentRect: and -alignmentRectForFrame: not calling on IOS
<p>I want to use <code>-frameForAlignmentRect:</code> and <code>-alignmentRectForFrame:</code> to specify alignment rects in my iOS apps. But this methods not calling.</p> <p>I have almost identical code for iOS and Mac. It is works perfectly on OS X but not on iOS.</p> <h3>Mac version</h3> <pre><code>@implementatio...
2
2,581
ASP.NET Owin OAuth (Google / Facebook) is redirecting to default login.aspx insead of remote log in page
<p>I'm setting up OAuth using the Owin libraries including Google and Facebook.</p> <p>The Owin startup class is registering fine by the looks of it. What I'm finding is that rather than being redirected to the appropriate sign in page at Facebook or Google, I'm being redirected to a default 'login.aspx' page. There i...
2
1,537
ActionBar + Tab Navigation(MapView + ListView) fragments
<p>I'm wondering how can I work with a listfragment, and at the same time, using an static linearlayout with 4 filter buttons at the top of the list. Here is the problem:</p> <p>First of all, I use an Action Bar + Tab Navigation from <a href="http://actionbarsherlock.com/" rel="nofollow">ActionBarSherlock</a> :</p> <...
2
1,093
Create limit date for login in PHP Script
<p>This simple script doesn't need database, the usernames and passwords will define in the script.<br> How can I build the script to define a date for each username and password so that after the date expires the ability to log in using those credentials to also expire?</p> <p><strong>Like this:</strong> </p> <pre...
2
1,853
CSS Diamond shape centric website issues
<p>I've got an audacious project and would like some advice. I want to have a site that uses CSS Diamonds, I've attached an image to give a better idea of what I am looking at doing. Here are the issues I have run into so far:</p> <ul> <li>The triangles are perfectly aligned until a submenu is added, then the right th...
2
6,745
Convert code of a User Control from VB.NET to C#
<p>I have this code for a custom User Control in VB.NET:</p> <p><a href="http://www.sourcehints.com/articles/creating-a-real-transparent-label-in-vb-net.html#comment-21274" rel="nofollow">Link To Code</a></p> <p>And i use this site for converting it to C#:</p> <p><a href="http://www.carlosag.net/tools/codetranslator...
2
2,266
monit does not find the unicorn worker in production server
<p>I'm using this gem for deploy <a href="https://github.com/ivalkeen/kapify" rel="nofollow">kapify</a>.</p> <p>This is my unicorn config:</p> <p><a href="https://github.com/ivalkeen/kapify/blob/master/lib/kapify/unicorn/configuration.rb" rel="nofollow">unicorn config</a></p> <p><a href="https://github.com/ivalkeen/...
2
1,356
Get the nth day of a year
<p>For a homework assignment, I want to calculate the nth number of the day a date is in a year in a Jave program. </p> <p>So, a user gives a date, and then it tells what number of day this is in a year. So 1st of January 2019, is day 1. I already have a function that gives the number of days in a month. This function...
2
1,374
Changing last part of URL to be uppercase using htaccess?
<p>Not sure if this is a smart way to deal with the problem, which is...</p> <p>I have a bunch of user dirs that make up a part of their url, eg</p> <pre><code>www.mysite.com/users/USERDIR </code></pre> <p>When I created the site (and since then), user dirs are created using capitals. I wish I hadn't, but it's done....
2
1,119
java.io.FileNotFoundException: (No such file or directory) - Working with servlets
<p>I'm working with hibernate and tomcat. What I did is create a form which has a file input. In the servlet I want to cast that file to a byte[]. But when I want to create de File, there's no directory: it only saves the image's name, not the path. Here is the error:</p> <blockquote> <p>java.io.FileNotFoundExceptio...
2
1,804
PHP + AJAX + jQuery comment/reply system stops working after first reply is pulled
<p>Basically, I have a comment system that I'm trying to add AJAX/jQuery support to so that users can view "in reply to" comments, similar to how Youtube handles comments and replies.</p> <p>Every comment associated with the article is displayed (comment_view.php), and if it is a reply to another comment, a button is ...
2
1,462
PDF 'advanced' information extraction
<p>I'm trying to write what more or less accounts for a PDF soft proof.</p> <p>There are a few infos that I would like to extract, but have no clue how to.</p> <p>What I need to extract:</p> <pre><code>Bleed: I got this somewhat working with pyPdf, given that the document...
2
1,178
How to convert Java Gradle project to Dynamic Web Project?
<p>I am following this article </p> <p><a href="https://www.linkedin.com/pulse/building-jax-rs-project-eclipse-gradle-neeraj-malhotra" rel="nofollow noreferrer">https://www.linkedin.com/pulse/building-jax-rs-project-eclipse-gradle-neeraj-malhotra</a></p> <p>On how to build a JAX-RS project in Eclipse with Gradle</p> ...
2
2,633
SPIR-V module not valid: Codesize must be a multiple of 4 but is 191
<p>I've been getting this error trying to compile my glsl shaders to spirv at runtime. At this point I'm completely stumped, I have no clue what's causing the error and can't find anything online.</p> <p>The error only happens with my vertex shader, my fragment shader compiles with no issues (though they both 'compile...
2
1,038
Why is this callback handler being called twice?
<p>So I have the following JavaScript code. When the user clicks a button on the page, it reads the "name" and "stepId" from data attributes, and then opens a Twitter bootstrap modal dialog. When the "Clear" button is clicked on the dialog, it fires the supplied callback.</p> <p>This works great the first time it is i...
2
1,496
Saving google map markers into SharedPreferences in android studios
<p>I am developing an app in which <code>onLongClick</code> puts a marker onto a google map. My problem is saving these markers when the app closes. </p> <p>I have used a Shared Preference to save the values for the lat and lng, and these load when the app restarts. However, when I pass these values into a method to m...
2
2,735
Silverlight ListboxItem Visibility binding
<p>I am making a prototype of a Silverlight application in Expression Blend 4 and I'm trying to show/hide ListBox/ComboBox items based on boolean values in the data they are bound to. I found an example online which suggested this would work but it doesn't:</p> <pre><code>&lt;UserControl xmlns="http://schemas.micr...
2
2,730
Styles are not loading from styles.css after upgrading Angular 5 app to Angular 7
<p>I have upgraded angular 5 app to angular 7 and styling got messed up. When I inspect the elements in the console, these elements' styles are not loading from styles.bundles.css. Now these styles are loading from reboot.scss, site.scss. However in Angular 5 app these styles were loading from styles.bundles.css. </p> ...
2
1,544
Getting ViewModel Values from MVC Kendo Grid using Javascript / jquery
<p>I am initializing a kendo grid like this:</p> <pre><code> @(Html.Kendo().Grid&lt;EPSModels.Models.SuretyViewModel&gt;() .Name("Grid") .Columns(columns =&gt; { columns.Bound(c =&gt; c.SuretyName); columns.Bound(c =&gt; c.Address); columns.Bound(c =&gt; c.City); columns.Bou...
2
1,300
Concurrent writing to a file with c#
<p>I have an application that is writing to a file concurrently</p> <p>When it runs to the end, it should be about 100k lines. Right now it I will get the message after 10k records written.</p> <p><strong>Below is the Error:</strong></p> <blockquote> <p>System.IO.__Error.Void WinIOError(Int32, System.String) - The...
2
1,586
pre-commit giving error with mirrors-mypy, how do I fix it?
<p>I am getting the below error when running &quot;pre-commit run --all-files&quot; and when trying to make a commit, it is some python error, python version in use is &quot;Python 2.7.16&quot;.</p> <pre><code>[INFO] Installing environment for https://github.com/pre-commit/mirrors-mypy. [INFO] Once installed this envir...
2
3,186
C# double into MySql db double not working
<p>I'm converting an webshop system to an another system with C#. This is from DB to DB with some convertion between.</p> <p>I have this code in C#:</p> <pre><code>Double proPriceTmp = Double.Parse(productPrice); Double realPrice = ((proPriceTmp / 121) * 100); string insertProduct = "INSERT INTO `" + ocPrefix + "pro...
2
1,565
Error when running Jekyll: cannot load such file -- google/api_client (LoadError)
<p>I had to reinstall OS X Yosemite 10.10.5 and now I get the following error when running my Jekyll site (previously it was working fine):</p> <pre><code>MacBook-Pro-Svetlana:iloveip svetlana$ jekyll serve WARN: Unresolved specs during Gem::Specification.reset: pygments.rb (~&gt; 0.6.0) redcarpet (~&gt; 3...
2
2,322
JME 3 + Swing, multiple canvases
<p>I am playing with JME3 and currently facing the following problem:</p> <p>When LWJGL canvases are included in multiple tabs of application, none of them or only 1 runs.</p> <p>Here is an example:<br></p> <p><strong>SwingCanvas.java:</strong></p> <pre><code>package jme3test.helloworld; import java.awt.Dimension;...
2
2,124
Android: Rendering with SurfaceTexture to FrameBuffer
<p>I am working on an effect that requires dual-pass rendering (i.e. two separate shaders are applied in succession). I am using a GLSurfaceView with a custom renderer.</p> <p>In order to achieve this effect, I am trying to render to a FrameBuffer first, and then to a GL_TEXTURE_2D for display in the GLSurfaceView. </...
2
1,179
Heroku GeoDjango issues with missing GDAL (and possibly GEOS)
<p>I'm working on a GeoDjango application and am using Heroku (with a Heroku-16 stack) as my platform. </p> <p>I am following the instructions found <a href="https://devcenter.heroku.com/articles/python-c-deps#geodjango-application-libraries" rel="noreferrer">here</a>, which specify the following:</p> <blockquote> ...
2
1,085