All Questions

1
answer

What language is used in Apache's ".htaccess" file?

For example the following lines represent which language: RewriteEngine On RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php?uri_path=$1     
asked on 17.11.2016 / 20:47
1
answer

Is the APK made in Xamarin Forms normal, even empty, have 60mb?

I've tried connecting the linker, and be the recommended procedures. I wanted to know if it is normal an apk made using Xamarin.Forms start from 60mb. And if it is not, what to do to reduce the size.     
asked on 22.11.2016 / 19:36
1
answer

"AttributeError: __exit__" problem in Python

In a group, I asked them to give me tips on a program to test my knowledge. He told me to create a program that reads a file named "arquive.txt" and manages files CHAR and STAGE , with the file like this: [CHAR] Exemplo = C...
asked on 04.12.2016 / 01:58
2
answers

How do I get the primary key identity of an inserted record?

I need to create a stored procedure to insert a game into my database. A game relates to a league through the campeonatoJogo table. The tables are basically: create table jogo( codJogo int identity primary key, nomeTime1 v...
asked on 21.11.2016 / 02:33
2
answers

Find 2 date attributes in a single element

How can I find a particular attribute that contains another specific attribute attribute? for example: <a class="fc-draggable" data-belongs="3" data-target="2"></a> I can select all elements that contain a given attribute using:...
asked on 23.09.2016 / 20:47
1
answer

How to synchronize two scroll bars based on percentage?

I have a <DIV> with overflow and a <TEXTAREA> , the problem is that the element that will be synchronized ends up rolling over than expected, instead of following a percentage basis . What I've done so far: f...
asked on 13.08.2016 / 22:18
1
answer

Allow only numbers in an input

I have two input fields, latitude and longitude. In it I should only allow the entry of numbers, sign - and. how can I make a function for it?     
asked on 07.10.2016 / 14:03
1
answer

Generate all combinations given a list in python

I have searched extensively and found nowhere exactly what I want. What I want is, given a list of characters, to generate all possible combinations of size x up to size y. Example: given 0,1,2 and ask combinations of size from 1 to 2 generate:...
asked on 15.08.2016 / 07:24
2
answers

Sending / Uploading images with php [closed]

Form <label>Imagem do produto:</label> <input type="file" name="imagem-produto"> Script $foto = $_POST["imagem-produto"]; $tamanhoMax = 1024 * 1024; # 1MB if (isset($_FILES['imagem-produto']['name']) && $_FILES[...
asked on 13.12.2016 / 10:24
1
answer

In Ruby on Rails is the business rule in the model?

In Java the business rule stays in the controller , but I heard a speaker saying that in Ruby on Rails the business rule stays in model . Does anyone confirm this?     
asked on 17.11.2016 / 09:05