All Questions

1
answer

Regex in Find () function in python

I need to use a regex in the Find() function in Python for example, if I use within a loop : arq = open("arquivo.txt","rb") var = arq.readline() a = var.find("abc.*def") It will be looking at the line "abc something (. *) de...
asked on 19.12.2016 / 19:19
1
answer

Send email by calling Outlook 2013

To send emails I use the SendEmail function: function SendEMail(Handle: THandle; Mail: TStrings): Cardinal; type TAttachAccessArray = array [0..0] of TMapiFileDesc; PAttachAccessArray = ^TAttachAccessArray; var MapiMessage: TMapiMessag...
asked on 08.12.2016 / 19:14
1
answer

Automatic code formatting tool for Notepad ++

In my day to day use the TextFX Plugin to indent my code and the result is good. When I pass the code to other programmers, I use the "Chrome Inspector", which has a more complete and organized result. I would like to simplify this by doing i...
asked on 25.11.2016 / 08:55
1
answer

How to change a menu item after it has already been created? [closed]

This is what I create a menu through the onCreateOptionsMenu method, and then I want to leave an item invisible but I can not. @Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.filter_menu,...
asked on 29.12.2016 / 22:14
2
answers

Alert to programmer when opening Form (Designer)

When a programmer opens a specific form, I would like to send a notification ( ShowMessage() ) to it, for example, to the comments that are in the header of the% . I've seen this in a project from another company, but I do not know how to...
asked on 08.12.2016 / 18:43
3
answers

Where in an array

I have the following Query: SELECT u.user_nome FROM tb_Usuario u WHERE u.user_ativo = 1 I need one more clause where where it compares a id of the user. However, I get this id through array , how do I make that...
asked on 08.11.2016 / 18:31
1
answer

Does the keyword "async" really make the method asynchronous?

I was watching a video (at 31:11 minutes) and it says that async does not actually do this asynchronous, is more a "tip". Since I was in English and I am not fully advanced, the understanding was half empty. To be able to enter the a...
asked on 27.11.2016 / 23:55
2
answers

Misaligned images

I'm using the following .xml as the main screen: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="match_parent" android:layout_height="match_p...
asked on 14.12.2016 / 18:53
1
answer

Open text file in Python package

I'm creating a Python package where one of my programs needs to open a text file to read some information. This file is in the same directory as my source. When I run the program in the interpreter I simply do with open("AtomProva.atp") as f:...
asked on 09.12.2016 / 14:35
1
answer

How to transform a vector list into R?

How to transform a vector list into R? The list is a set of words and numbers and I need to add the numbers in the list. mylist <- list ("2 tomates", "5 tomates", "9 tomates") If I want total tomatoes, how do I do it?     
asked on 26.05.2014 / 01:08