All Questions

3
answers

How to call external command with Python?

How can I call an external command in Python, as if it were executed in the Unix shell or at the Windows prompt?     
asked on 21.08.2014 / 17:50
1
answer

Cake PHP Relationship - 3 Tables

I have the following 3 tables: Status Table: id nomeEstado City Table: id idEstado //(que busca da tabela estado) nomeCidade Participant Table: id Nome idCidade Now I want to put in page Nome , Cidade and...
asked on 31.08.2014 / 20:07
3
answers

convert integer to decimal in jquery

I need to convert for example the value "025" for "0.25" or "005" for "0.05" : I'm trying to do it like this: var valor1 = $("#ValorDesconto").val().replace(/[^\d]+/g,''); parseFloat(valor1).toFixed(2) How do I? the way I did abov...
asked on 29.09.2016 / 21:40
2
answers

How to set a fixed value attribute in ASP.Net MVC?

I have a user class that has the attribute permissão , which should always be 1. Where and how would I do to set this value? In the folder models , controller or in the view of cadastre?     
asked on 04.09.2014 / 21:05
2
answers

Scroll down the page when restarting with JS

I was hoping that when the page was loaded, it would automatically go to the end of it. I do not want to use jquery because the project is relatively simple. It is not necessary. I used the following code: <body onload="toBottom();"> &l...
asked on 02.12.2016 / 18:47
1
answer

8-digit hexadecimal color problem - Android

I'm working on an application where I'm trying to follow the Google Material design guide. On this page, it is recommended to use black color (% color) with 87% opacity as the color of the main texts. Using a hexadecimal to decimal converter,...
asked on 20.08.2014 / 08:30
1
answer

Doubt in string comparison and list value for all rows

I have a table of 5 rows and 5 columns. For each column I have a name, for example: Name, Age, Sex, Weight, Height. And all 5 * 5 cells are filled. I need the following formatting: Idade João - 15 José - 16 Maria - 21 Sexo João - M José -...
asked on 27.08.2014 / 16:24
1
answer

Change lines of code inside files with Apache Ant

I am studying Apache Ant to try to change some lines of code inside files, but so far I have not found anything about it in the official documentation, so the maximum I can do is rename files like this example <move todir="my/src/dir" inclu...
asked on 01.08.2014 / 14:58
1
answer

DataReader in using blocks executes the "Close ()" of the DataReader?

I have a little doubt regarding DataReader's within using blocks. If the my DataReader object is inside a using block, will it be closed at the end of that block? Or do I have to insert the Close () method? Here is a sample DataReader with th...
asked on 04.08.2014 / 21:02
2
answers

Edit categories and tags in the WordPress front end

I'm trying to set up a page for editing categories, tags, and custom taxonomies via the front end . However, I can not now find the correct function to submit the field update. The code so far: <?php /*Template Name: Page Template Edita...
asked on 11.08.2014 / 05:20