All Questions

1
answer

Left join with lambda GroupJoin and with condition

How can I make a left join with some conditions using LINQ lambda expressions? In SQL Server I have this query: select usr.Id, usr.FirstName, usr.LastName, ex.Id from User usr left join Exam ex on ex.Id = usr.IdExam and (ex.Id is...
asked on 11.02.2015 / 20:02
2
answers

Connection with the Bank falls after a certain time

I have a server where I have several web applications connected to the database ( Mysql ). The problem is that if some system is idle it loses the connection with the bank and I have to give a refresh in the application so that everything...
asked on 18.12.2015 / 14:30
3
answers

How to insert a line break inside echo in shell script?

I wanted to know if there is any way to insert a line break within the echo of the shell script. For example, in the command: echo "Bom dia fulano" I would like the output to be: Bom dia fulano I know you can do it like this:...
asked on 09.07.2015 / 13:25
4
answers

Entity Framework foreign key

My domain: public class SBE_ST_CorpoDocente { public int Id { get; set; } public string Nome { get; set; } public virtual ICollection<SBE_ST_Curso> Cursos { get; set; } } public class SBE_ST_Curso { public int Id { get;...
asked on 11.08.2014 / 20:00
2
answers

Script to modify Bible texts (accessibility) [closed]

I'm not a programmer. I look for accessibility features because of my low vision. I am trying to develop a workflow that locates in the document biblical texts in the pattern "John 3:16" and transform it into "John, chapter 3, verse 16". The...
asked on 11.12.2015 / 17:14
5
answers

Save in the database the binary content of an image

How do I get the bytecode of an image at upload time to be able to store it in the mysql blob field without the need to save the image to ftp?     
asked on 04.12.2014 / 15:50
1
answer

VBA Macro fetch information on site

I need to search for information on a real estate site and bring it to excel. I made the macro below: Sub zap() Set ie = CreateObject("InternetExplorer.Application") With ie .Navigate "http://www.zap.com.br/imoveis/fipe-zap/" .Visible = True...
asked on 06.03.2014 / 18:29
1
answer

Synchronized in static methods, and non-static methods

If I have a class, where I have two methods one static and one not. Is the lock the same or not? How to do for the two methods share, the same synchronization mechanism, ie the same lock? class Foo{ public synchronized static void test(...
asked on 28.06.2015 / 23:11
2
answers

".read" firebase security rules

I've created the following security framework in Realtime Database: { "rules": { "receita": { "$chave": { ".write": "auth.uid === newData.child('usuario').val()", ".read": "auth.uid === data.child('usuario').val()...
asked on 31.03.2018 / 20:16
2
answers

How to create an ALV based on a dynamic structure?

I'm trying to streamline processes since we need to generate reports in ALVs. The idea is to get the metadata of a structure (Field Name, Domain, Descriptive) and thus to generate the 'fieldcat' in the ALV creation function and in the sequenc...
asked on 18.12.2013 / 18:02