All Questions

1
answer

Why is the application entry point a static method?

A method declared static means that it belongs to the type rather than the instance of an object. In a C # console application, the entry point is static: static void Main(string[] args) { ... } This is not just C #, in Java it's the sa...
asked on 19.10.2017 / 12:12
1
answer

Difference between Integer.valueOf (String) and Integer.parseInt (String)

I need to convert a String to int , and I came across these two options, which have an equal result. Is there any difference between them? Is there a rule / convention that says which to use or is indifferent?
asked on 09.12.2014 / 12:09
1
answer

What does '2' and '&' mean in Bash?

I'm starting to study Bash and while analyzing some code in Github, I came across the following excerpts to create a theme: which rbenv &> /dev/null || return $(node -v 2> /dev/null)     
asked on 02.03.2015 / 15:33
2
answers

Is there a REST specification for uploading files?

I have a question almost a month on the subject. At certain point in my application, the user can upload to a library of files. This upload needs to be logged in a table named midias , where, in addition to the file path, I also need ex...
asked on 22.10.2018 / 16:15
1
answer

What are and how do signs work?

Do they exist only on * Unix or also on Windows? If so, what would be the equivalent on the Windows system? What is the relationship with signal handling ? A practical example of a signal handling can be any language just to demonstrate...
asked on 21.12.2018 / 14:54
3
answers

What is cloud computing?

I never understood right where the border is that determines whether an application is in the "cloud" or not. Examples: One of the first applications that came out completely online is the emails, like today we have Gmail, Outlook, etc.,...
asked on 26.08.2014 / 13:21
1
answer

Demonstrating a slowloris attack on apache server using Python

I have the network dump (file in PCAP format captured with tcpdump) from a "conversation" between the attacked server (Apache web server: 192.168.1.2) and the malicious clients: Theattackwasalaboratorysimulationofdenialofservicewithslowloris.Ik...
asked on 08.05.2017 / 13:55
2
answers

How to select an option in one select and load related data in another?

I would like to select an option of a <select> and fill the other <select> with related content. I will only be able to do this with the information stored in database database or how to do with array? How can I do t...
asked on 03.05.2014 / 02:21
1
answer

How to sort array of strings disregarding accents?

If I have an array like this: exemplo = ["Árvore", "Casa", "Computador", "É", "Poste", "Pássaro", "Índia", "Ar", "Ásia"] The exemplo.sort() considers the accentuation of the words to sort, putting the accented ones last: exemplo.so...
asked on 20.05.2014 / 23:45
1
answer

SQL LIMIT parametrized in PHP with PDO

A few days ago, I stopped using the mysql_* functions (because they are already obsolete), and switched to PDO . I have a function that does query the database, but I'm having some problems using LIMIT with prepared statem...
asked on 23.02.2015 / 16:00