All Questions

2
answers

Why do not browsers implement HTTP PUT and DELETE protocols?

For some reason Internet browsers (Chrome, Firefox, IE, ...) have just decided to implement the HTTP protocol's GET and POST methods. Other methods such as PUT and DELETE are left out. Why? My question arose because #    The Rails fr...
asked on 23.05.2014 / 14:48
1
answer

How do I know if at least one element in a list is contained in another list?

I have two lists: var lista01 = new List<int> { 1, 2, 3, 4, 5 }; var lista02 = new List<int> { 7, 7, 7, 7, 7 }; I need to check if at least one element of list 1 exists in list 2, so the result for the above example should be fa...
asked on 24.12.2013 / 23:54
2
answers

Writing conventions for controls in ASP.NET

When you drag a control from the Toolbox to a Web Form, Visual Studio automatically adds an ID to this control that consists of its type with the first letter of capital and a number. This is the same pattern used in projects in VB.NET with W...
asked on 15.12.2013 / 02:20
3
answers

How to access a server via SSH without using a password?

I have to connect a Linux server via SSH, using Putty as a client, many times a day and every time I need to put user and password. I have seen a person making connection without using username and password, how is this possible?     
asked on 30.01.2014 / 14:13
3
answers

How to work with multi tenancy architecture?

I was asked to develop an application with multi tenancy architecture in the PHP language using MySQL as a database. After reading various materials and posts online, I had a question. How to model the application itself? I have two option...
asked on 09.05.2014 / 21:24
1
answer

Is there any specific type for non-String passwords in .Net?

I see very commonly the use of string s to store passwords in the program memory, not only in .Net, but in all programming languages I have ever used. At first, I do not see a problem in this. But as I know the .Net ecosystem is HUGE,...
asked on 26.02.2014 / 16:08
2
answers

Rescuing the last insert in the database with PDO lastInsertId

I'm trying to redeem the last id on the bank with lastInsertId() of the PDO, but nothing appears. OBS: I'm using Postgre. <?php try { $dbh = new PDO('pgsql:host=localhost;port=5432;dbname=bancocjweb1', 'postgres', '1...
asked on 02.09.2014 / 07:01
1
answer

How to have two versions of php on the same Apache server?

I have an Apache / 2.4.10 (Ubuntu) server running a website in php 5.5. But I'm creating a new site and it needs php 5.6. Is it possible to have two versions of php installed on my server and use each one in different folders?     
asked on 05.10.2018 / 17:27
1
answer

Size of the panels with facet_wrap

I'm doing some panel graphics in ggplot2 . See the example below: library(ggplot2) ggplot(mpg, aes(x=displ, y=hwy)) + geom_point() + geom_smooth(method="lm", se=FALSE, colour="black") + facet_wrap(~ trans) Ihavemygraphicalwindo...
asked on 13.09.2018 / 18:15
3
answers

How to change the value between two variables without using an auxiliary variable?

I learned to program in C, but recently I have studied RUBY. Ruby allows you to change the value between two variables easily and without using an auxiliary variable, like this: a, b = b, a Without using an auxiliary variable, ho...
asked on 20.05.2014 / 05:15