All Questions

1
answer

What is the best way to do Python expositoning? Double asterisk or math.pow?

What is the best way to do Python expositoning? Should I use the ** or math.pow ? Example math.pow : > math.pow(3, 4); #Imprime: 81.0 Example with double asterisks ? > 3 ** 4 #Imprime : 81 What should I...
asked on 18.08.2015 / 17:30
1
answer

Doubt onkeyup javascript

When I type in input some word, the text entered goes to uppercase. In Mozilla Firefox and Internet Explorer I can return the blinking indicator to type a letter and I can edit it anywhere. In Google Chrome, every time I return to t...
asked on 28.08.2015 / 01:48
1
answer

Regular Expression, taking numbers between two pre-defined texts

I need to remove números from a string . The string follows a pattern: http://www.meudominio.com/1789519-texto The number will always be between / and - I have been able to arrive at the following formul...
asked on 03.09.2015 / 19:08
2
answers

How to access Action on another Controller via Ajax?

I have an AspNet MVC project structured as follows: Projeto L Areas L Area1 L Controllers L MeuControllerArea1Controller.cs...
asked on 28.08.2015 / 15:56
1
answer

Free memory in C ++

Am I required to free up memory for every variable I am no longer using? If yes, how?     
asked on 02.09.2015 / 15:05
1
answer

Segmentation fault when accessing pointer contents

I need to declare a vector of pointers, which will point to types float , and do a simple reading of values. The program compiles but after entering 4 values I get a Segmentation fault (core dumped) . Why does this occur because I'v...
asked on 22.12.2015 / 12:55
1
answer

Configure for Eclipse to display parameters name in autocomplete

Sometimes eclipse, it shows in auto-completing the variable names in an easier way to understand. For example, if in this line press ctrl + Space: BufferedImage img = new BufferedImage(); It shows among others BufferedImage (int width, int...
asked on 31.12.2015 / 14:01
1
answer

How do I make an application available only on my wireless network?

I'm developing an application, and I want it to be available only for devices connected to my Wi-Fi network. I can even let it run on my personal computer and access via ip, something like 192.168.1.20:8080 . But I wanted to go a little...
asked on 20.01.2016 / 18:18
1
answer

Modal occupy entire screen

I have the following Modal and I want it to occupy the entire screen / or most of the screen: <div class="modal fade" id="treinamentos" tabindex="-1" role="dialog" aria-labelledby="alterarLabel" style="z-index: 1100;" data-backdrop="static"...
asked on 19.01.2016 / 20:15
1
answer

How to extract only different values from an array?

I am extracting from a array city name. I want to extract cities with different names. In the current case, my script returns several names of equal cities. I want to recover only once each city name. The result is this: Array (...
asked on 03.01.2016 / 02:15