All Questions

3
answers

Add a comma to each word

Ex: $str = "texto de teste"; // RESULTADO ESPERADO $keywords = "texto, de, teste";     
asked on 08.12.2015 / 02:28
2
answers

Pass SQL value to a VB.Net variable?

I have this code that executes a SQL: strsql = "select Nome, Senha from users where Nome=@field1 and Senha=@field2" objcmd = New Data.MySqlClient.MySqlCommand(strsql, objconn) With objcmd .Parameters.AddWithValue("@field1", "valor1") ....
asked on 13.10.2017 / 01:37
2
answers

C # - Random prime numbers?

I have a college exercise that is to generate a random primal number, if that number is not prime it must be generating another random one until one is, but it always falls into numbers that are not prime and are in infinite loop, the What am I...
asked on 22.10.2017 / 21:29
1
answer

Temporary text in JLabel

I would like to change the text of a JLabel and leave it for just a few seconds, then return the previous text. I have to run a method that takes a few seconds to get ready and would like to notify the user that it is running and this way...
asked on 07.12.2015 / 23:49
1
answer

Sitemap - What to list?

I'm creating the sitemap for my project and listing the link link I remembered that each article has a unique page , thus being a dynamic page. The question that came to mind was this: Should I list the single article page? Or that of each art...
asked on 09.12.2015 / 01:46
2
answers

C # how to do database search using parameters

I have the following code public DataTable PesquisarPorNome(string NomePesquisado) { try { DataTable tabela = new DataTable(); SqlDataAdapter adaptador = new SqlDataAdapter("SELECT * FROM tbEspecialidades WHERE NomeEspe...
asked on 27.11.2015 / 18:04
2
answers

Border-bottom with linear gradient

I would like to stylize a border for h1, but in linear gradient, going from color x to color y (or transparency). I used pseudoclass (after), but with the gradient border I can not get it to work. Would anyone help me? h1:after {...
asked on 10.12.2015 / 16:20
2
answers

What is the 'let' statement in a LINQ query?

I have the following LINQ query: var source = from em in query select new { Id = em.UniqueID, Data = em.Data == DateTime.MinValue ? "" : em.Data.Value.ToString("dd/MM/yy HH:mm")...
asked on 14.12.2015 / 17:15
2
answers

Get information stored in an "attribute"

In the ORM I use, classes are mapped using Attributes . I need to retrieve the value stored in them. Ex.: [Table("CADASTRO_CLIENTE")] public class Cliente { [Property("Id")] public int Id { get; set; } } Example usage (fiction...
asked on 11.12.2015 / 12:04
3
answers

How to transform a String made up of numbers into a list of integers?

I have a list with a string: a = ["1, 2, 3, 4"] I want to get every number within that list, turn them into integers, and return the largest and smallest value in that list. I've already tried doing this with FOR IN like this: def...
asked on 12.12.2015 / 18:59