All Questions

1
answer

How can I display a number separated by a point for every 3 houses?

How can I format values like this: 1.000 or 150.000 or 42.000 ? My code is this: var f02 = 42000; console.log(parseInt(f02)); I need the formatting of the f02 variable to be: 42.000 , and when the number...
asked on 10.10.2016 / 19:44
2
answers

Add content at cursor position with CKEditor 4.5

I have a textarea where text will be typed. This text may contain some specific fields (type variables, which will be replaced later). I need to know how to insert these "variables" in the specific location where I need them, for example where t...
asked on 25.10.2016 / 19:55
1
answer

Line wrap with br tag causes spacing in generated PDF

When converting html to pdf using flying saucer in java, the following error occurs in the pdf file; A spacing between the last sentences before the paragraph line breaks. This gives the impression that the pdf to be generated is using the fully...
asked on 29.09.2016 / 05:54
1
answer

How to print directly without opening the browser dialog?

I am developing a web system where I need to print a label and a non-tax receipt after submitting a certain form. To perform this action, I have two printers: Non-Fiscal Matrix Printer MP-20 MI - For non-tax coupon; Zebra Thermal Printer T...
asked on 19.09.2016 / 22:49
2
answers

Generate random number for an array

I have a foreach that fetches the data from one table and makes a insert in another table. I need to count the number of foreach registers, and then generate a random sequence, and feed a insert field. See the code...
asked on 18.10.2016 / 14:24
2
answers

How to create XML tags from the column names of a mysql database?

How do I create XML tags with the column names of a table from a myslq query? In the code I made I just get the values from each cell in the table, but what I wanted was to automatically create the tags according to each column. My Curren...
asked on 13.10.2016 / 17:01
2
answers

What happens when we assign a float value to a double variable? [duplicate]

class Test { public static void main (String[] args){ double pi = 3.1415f; System.out.println(pi); } } When compiling and executing the above code, I get the return: 3.1414999961853027 This is not a question for solv...
asked on 29.08.2016 / 17:07
1
answer

Save latitude and longitude in swift

I have this code in my ViewController to capture the users current location: @IBOutlet weak var userMapView: MKMapView! var locationManager = CLLocationManager() override func viewDidLoad() { super.viewDidLoad() locationManager = CLL...
asked on 12.09.2016 / 19:30
2
answers

How to insert current date in postgresql?

I need to set in a column in postgresql the current date of the insertion as default value for the field. How can I do this?     
asked on 27.09.2016 / 21:13
1
answer

Obfuscate CSS and JavaScript for free

Good afternoon, I'm developing a page and I want to obfuscate CSS and Javascript (AngularJS), I did a quick search on the internet and I saw some paid tools, and some Free tools made the obfuscation very basic being possible to manually go back...
asked on 22.09.2016 / 16:57