All Questions

2
answers

How do I repeat a string in Python?

The question is simple: How do I repeat a string in Python? I'm used to PHP. When I want to repeat a string in PHP, I do so: var $str = 'StackOverflow'; str_repeat($str, 5); // Imprime: StackOverflowStackOverflowStackOverflowStac...
asked on 13.08.2015 / 13:56
2
answers

Access to specific memory points

How do I access an exact memory address in Windows? unsigned char * mem = {??};     
asked on 22.07.2015 / 01:16
5
answers

Run script js when trying to close the window

I have a form that is a popup (overlapping div) <div class="bloco-newsletter" style="background-image: url(http://bhpump.izap.ws/plus/imggen/imageChangeColor/005873/bg-newsletter.png)"> <div class="newsletter-title">NEWSLETTER...
asked on 07.01.2016 / 21:47
4
answers

How to search within this object vector?

How would I search for a record within my object? The program is a contact book, and I wanted it to do the search by the name that I type in a JPane and return the contact's contact information. Here is the commented code. package ExemploDe...
asked on 09.03.2016 / 08:25
2
answers

Bogosort - what is this?

What exactly does the bogosort sorting algorithm do? Why do many people say that it is inefficient?     
asked on 26.06.2016 / 16:05
3
answers

How to shuffle characters from a String in Java at random?

I am developing a password generator program. Here you can set the percentage of numbers, letters and special characters you want to have in your password, as well as the size of your password. Later I concatenate the numbers, letters and symbol...
asked on 12.11.2015 / 20:43
4
answers

BETWEEN requires arguments in ascending order? Because?

I have the following dummy table. I created the following query: SELECT * FROM ALUNOS WHERE IDADE BETWEEN 10 AND 15 Returns students A, C, and D. Now, because when I reverse the order in BETWEEN SELECT * FROM ALUNOS WHERE IDAD...
asked on 10.12.2015 / 16:13
1
answer

CSS animation does not work in Mozilla

Well, I have a problem with a CSS animation. I made it work normally in Chrome and even in IE, but in Firefox it bugged. I've tried to put the prefix -moz- on some properties, but nothing works. I do not know if the way I did this a...
asked on 07.07.2016 / 20:06
2
answers

How to use "BigInteger" type to solve this problem?

I am solving a solution based on the story involving the chessboard. Here's a piece of history:    "Then Sessa asked for her payment in wheat grain as follows:   A grain of wheat for the first house on the board, two for the second,   four by...
asked on 18.09.2015 / 15:18
2
answers

PHP on linux or windows

Explanation: I know it's a controversial question, but I'm not an old man of the programming and I'm knowledgeable about linux, but I've never chosen it because I use C # from time to time and in my college they are pro-microsoft. So the wo...
asked on 01.05.2015 / 06:03