Conversion from float to char[] in Java (Android)

Java
I have an application where in onDraw() method of View I need to draw a couple of float numbers on the screen. In order to avoiding garbage collectio...
5 months ago

Jersey POST Method is receiving null values as parameters

Java
I am developing RESTful services with Jersey and it works great with GET methods. However I can't make it work with POST methods and JSON or text para...
5 months ago

Exchange Web Service Search for Custom folder name

Java
I need to find the folder name "Archived" which will be at the Parent level, NOT A SUBFOLDER, if folder "Archived" is a subfolder, I don't want that t...
5 months ago

Spring boot MVC: can't find JSP

Java
Problem: I can't reach my view under WEB-INF/jsp on my Spring Boot web MVC app. What I've done: this is my JSP: <%@ page language="java" content...
5 months ago

Regex: Comma separated values

Javascript
I have been trying to make a regex that will: match only if all condition are met, will not match 1 to 10 or something like it and will ignore commas....
5 months ago

Set URL parameters without causing page refresh

Javascript
How can you set URL parameters using History.pushState() to avoid browser refreshes? If there is a not a simple JS solution, is there already a popula...
5 months ago

Function invocation for a random category pickup

Javascript
I need a help for educational task. I just have started JS learning and my knowledge is not sufficient for such task.. The problem: what may I pass in...
5 months ago

JQuery Datepicker hide dates from one calendar on a page

Javascript
I have several datepickers on the same page and need one to only display the month and year, while others should show complete calendar with days. I k...
5 months ago

How to provide a Preview For Multiple images selected in fileuplaod Using Jquery?

jQuery
Hi all i have an fileuplaod where user can select multiple images nad i want to show the preview for those selected images before upload...at present ...
5 months ago

show hide jquery datepicker calendar

jQuery
For displaying jquery calendar with Month only I have used css as <style> .ui-datepicker-calendar { display:none ...
5 months ago

Hide button if the tree traversal can't find the element

jQuery
What I'm trying to achieve is to make an if statement that checks if it can find the element and if it can't it hides a button with the class .toggle ...
5 months ago

After AJAX post and rebinding jQuery events, jQuery no longer works

jQuery
I am attempting to build a pagination system for ASP.NET MVC; with partial views for a search form, the table that displays the data, and the paginati...
5 months ago

Rails how to display hash from JSON request

JSON
I'm trying to display the inner levels of the hash from my JSON request. This is the return from JSON request: { "results": [ { "utc_o...
5 months ago

Json Serializing to Null

JSON
I haven't had much need for Json, so it's still at that head-banging degree of frustration for me. I apologize if this is a dupe, but everything I fou...
5 months ago

get mimetype of file as a string (imap_fetchbody)

Linux
You can do this if the file is a file in the filesystem: shell_exec("file -bi $file") But how can you do it if the file is a string (not yet saved ...
5 months ago

Parsing text file with Perl

Perl
I am trying to parse a file like the one below in perl. I want what's to the left of the : to be the name of the variable and what's to the right of t...
5 months ago

Routes not working on server using Laravel 5.2

PHP
I'm deploying a webapp to a digitalOcean droplet and it displays the home route just fine. I have dependencies installed, Apache conf pointing to lara...
5 months ago

Laravel: saving a serialized copy of my model for history

PHP
I need to manage record history for a specific model(s). So following the example here (https://laravel.com/docs/5.2/eloquent#events) I did something ...
5 months ago

Drawbacks of static methods in PHP

PHP
In a theoretical database access class, I found that there are quite a few helper functions that I use in the class, which have nothing to do the clas...
5 months ago

accessing static method within class variable

PHP
I have been looking around attempting to find out how to access a stripe static method within my own class. Essentially extending the stripe library. ...
5 months ago