I have a BQ Aquaris E5 and a computer with no operating system Windows 10
. When I try to test the applications that I develop with android-studio on the phone, the device does not appear. However, the computer does recognize the phone and I have already allowed applications from unknown sources on the mobile. How can I solve that?
I'm trying to work with Git
and I'm running into some problems. The scheme is as follows:
I have two PCs in my house, one I want as a server, to host my projects and the other I want to clone those projects. The problem arises when cloning. The two PCs have Linux and created the users git
and their emails.
The PC that acts as a server has a repository created in the following path:
var/www/html/carpeta_del_proyecto/repositorio.git
And from the client PC I want to clone it. I have read that there are several accessor methods like git
, ssh
and http
.
I have generated the keys ssh
from the client and the server, and the ssh
public key of my client I have already added to /.ssh/authorized_keys
my server file.
What am I doing wrong that I can't clone it?
I have tried the following commands:
git clone git@ip_local_servidor/usuario_servidor/ruta_del_repo/repositorio.git
git clone git@ip_pública_servidor/usuario_servidor/ruta_del_repo/repositorio.git
git clone ssh://usuario_servidor@ip_pública_servidor/ruta_del_repo/repositorio.git
git clone http://ip_pública_servidor/usuario_servidor/ruta_del_repo/repositorio.git
git clone+ssh://usuario_servidor/ruta_del_repo/repositorio.git
The last one (number 5) I'm not sure, I just copied it from the internet and edited the user and the path, but clone+ssh
I don't know if the header is left like that or refers to something else.
I would appreciate if you can help me and answer, I've been trying this for weeks and I can't get it. From already thank you very much.
PS: I have tried different ones IPs
, the local one that is given by my router, and the public one when I connect to the internet. Example 1 and 2 are the same, they just have different IPs
.
Hello, I would like some suggestion, I try to open the browser from a page that is loaded from a WebView
/ UIWebView
, in an application iOS
or Android
for example:
window.open(
'http://www.stackoverflow',
'_blank'.
);
For security in the new OS this can be a security problem, but I would like a suggestion from the experts, any possible solution?
Some way to open a url from the Webview
, no matter if I require the use of any Framework
, the use of a Intent
or interface is ruled out.
I'm new to delphi/free pascal and I think I have a misconception, since I'm used to java and maybe things can't be approached in the same way. I hope you can help me.
I am using Lazarus v1.6RC1.
I have a class TControl
in a unit uControl
and a class TRed
in a unit TRed
. The unit uControl
has the unit uRed
in uses. The case TControl
has an attribute called FRed
, whose type is TRed
(is an instance of TRed
). The thing is that at a given moment, I need to call a procedure from . My intention is to have access to the instance of from , to be able to access its methods, that's something I did in java, but here it doesn't seem to work. What I am doing is the following:TControl
TRed
TControl
TRed
class TControl
:
TControl = class(TObject)
procedure procesaEntradaRed(pComando : TComando)
public
FRed : TRed;
class TRed
:
TRed = class(TObject)
constructor Create(pControl : TControl)
public
FControl : TControl;
When I install TRed
it TControl
I do it like this:
FRed := TRed.Create(Self);
And the constructor of TRed
is like this:
constructor TRed.Create(pControl : TControl)
begin
FControl := pControl;
end;
The call in which I have the error is this:
FControl.procesaEntradaRed(lComando);
The error message is the following:
uRed.pas(662,12) Error: identifier idents no member "procesaEntradaRed"
I have tried to see which methods were visible TControl
from TRed
, and none of the ones I created in TControl
are visible, although the own methods of TObject
.
I have put only the parts of the code that are involved in the problem to be concise.
Thanks in advance and sorry for the inexperience.
EDIT:
The line where I make the call is found in uRed
, at the end of a procedure whose declaration is:
procedure TRed.UDPRead(AThread: TIdUDPListenerThread; const AData: TidBytes; ABinding: TIdSocketHandle);
However, commenting out that line throws an error when instantiating TRed, passing Self as a parameter:
FRed := TRed.Create(Self);
The error is the following:
uControl.pas(146,69) Error: Incompatible type for arg no. 3: Got > >"UCONTROL.TControl", expected "CONTROLS.TControl"
It says that parameter 3 fails, it is because I also pass 2 strings, I do not show them so as not to confuse.
The fault seems to be in the Self, but I don't know how to fix it.
I am developing a REST API using Django
. I collect the information in a JSON
. With the attributes string
there is no problem.
My question is with the images. Right now I grab the images using a UEL, but there is only one image. On the other hand, if we add images to an Android project, we have the possibility/need to upload images in different densities.
What solution do you propose in this regard? How do you manage this point?