All Questions

5
answers

Digits in a java string

How do I find out how many digits a String has in Java? For example, user entered with "example123", the string has 3 digits. I am using this function but it is not working: private static int digitos(String text) { char[] digitos = ne...
asked on 24.05.2017 / 00:49
5
answers

Format Float value as currency using Jquery

I have a function that does the sum of values of a line, I would like to know if it is possible to put the value as currency like this: R$ 16,00 You're leaving this way R$ 16.00 But I would not want to use third-party library. My co...
asked on 06.12.2015 / 18:43
4
answers

Online Programming in C? [closed]

I want to know if there is a site that allows you to program online, I tried to use the Cloud9 IDE, but I can not program in C, does anyone know of a site to program in C without having to install any program?     
asked on 20.03.2014 / 10:50
3
answers

Information on Mouseover in Photo

Does anyone know how to put a description in the photo, with a transparent black background? As with many blogs, an example is the Rihanna website . Something like a timeline or a blog with thumbnails in photos. Does anyone know how to make...
asked on 17.05.2015 / 04:01
4
answers

What SQL statement to show the maximum number of active connections to the MySQL database?

What SQL command returns the number of active connections to the database?     
asked on 04.09.2015 / 19:48
3
answers

Regex for this format xxxxxxxxxxxx_v2

How can I make a regex that accepts in this format: 1q2e5g6s4t5s2u1i5dy1s9u14i2s5u9o_v2 1q2e5g6s4t5s2u1i5dy1s9u14i2s5u9o has 32 characters and then has _v2 - the last 3 are always _v2 . Examples: xxxxxxxxx_v2...
asked on 27.10.2018 / 22:38
5
answers

Use if inside foreach

I am trying to change the order in which the results appear within a loop using foreach. What I need is for numbers greater than five to appear first, followed by the rest of the numbers. So I tried something like this: $numeros = array(1, 2,...
asked on 09.05.2014 / 19:47
4
answers

Flatten list of lists. Is a more concise solution possible?

I solved the following Python exercise:    Implement a function that receives a list of length lists   and return a list of one dimension. The solution I was able to do was as follows: #!/usr/bin/env python #-*- coding: utf-8 -*- def l...
asked on 10.03.2018 / 13:44
4
answers

How to delete the database from the database if the user does not activate it by email within "X" hours?

Well, when registering on the site the user has their ACTIVE set to 0, so with the code I posted in the question answer below I can update the ACTIVE to 1: How do I activate a user's registration by email? But if the user does not activate...
asked on 21.08.2014 / 17:06
3
answers

Difference between dates

Whenever I move the date difference in the same month, it works, but when it is between different months, comes a negative value. How do I make a difference between dates? Look at my code. The error is in total Code if (($("#txtDat...
asked on 15.04.2014 / 19:35