All Questions

1
answer

How to extract the numerical part of a monetary value?

I have a string with the characters "$ 1,000.00" and would like to extract only the characters "1,000.60". I tried to use regular expression, but I could not reach my goal. I arrived at this: string valor = ""; string texto = "R$ 1....
asked on 16.10.2014 / 20:32
1
answer

How / When to Close Hibernate Session?

I have an error after closing Hibernate Session public String listarTodosClientes() { session.getTransaction().begin(); List<Cliente> lista = session.createCriteria(Cliente.class).list(); session.close(); return lista.toS...
asked on 13.11.2014 / 13:36
1
answer

How do I block menu buttons, when a form has not yet been saved, is it possible?

I'm new here. I'm starting in C # and I came across the following doubt: I have a form, where I have not yet given a post yet, and I did not want to let the user leave this screen without saving. What is the best practice for doing...
asked on 30.09.2015 / 20:03
2
answers

Make changes to lists local to Python?

In Python how do I do to the function below change the list locally, that is, only in the scope of the function f without changing x set outside of f ? x = [1, 2] def f(x): x[1] = "novo valor" return x f(x) ''' f alterou...
asked on 25.09.2014 / 05:13
1
answer

How to read a json file using delphi

Good not being a pro in delphi I want to read a file json and extract fields. link     
asked on 28.09.2015 / 15:19
1
answer

Excel How to find the address of the current cell

I have a column in my table where I place the date of arrival of a product. I would like to create a conditional formatting (put the cell in red) when it is 15 days or less before the product arrives. The formula I used was =$B$7-HOJE()<...
asked on 10.10.2014 / 14:52
1
answer

How do I get the position of a circle element that is inside an SVG via Javascript?

I have an SVG which contains, among other things, a <circle> element. I can manipulate it via Javascript, changing CSS properties as visibility , but I can not get its position on the screen. My idea is that when the mouse...
asked on 12.09.2014 / 20:28
1
answer

Dynamic menu using AngularJS

I have an application that has a menu at the top and another on the left side. The menu items should be filled with DB data according to the access profile. However, the menu is not being rendered when there is a change of route. Shell.js:...
asked on 29.10.2014 / 18:34
1
answer

Use registered addresses in the database in JavaScript / Google Maps

I have in a database the following columns: client name, active or inactive, address and lat and lng coordinates. I need to develop an application in PHP that will display in the Google Maps green bookmarks the active clients, and red the ina...
asked on 19.11.2014 / 13:54
2
answers

Object type for data of type Time (Ex: 1 min and 56 seconds) in Android / Java?

I need to work with times, such as a timer (not my case), which at the end of its execution would have to save its value. So I thought of some possibilities like: java.utils.Date : only the data in the case is not a Data; In l...
asked on 13.11.2014 / 13:57