All Questions

1
answer

How can I create a method that builds different objects based on a variable?

I have several models: class ModeloA { public function __construct(){} } class ModeloB { public function __construct($param1, $param2){} } And a controller to which I inject the models: $controller = new Controller($modelInstan...
asked on 15.04.2018 / 12:48
1
answer

Show image while processing form

Two values are sent from a form: <form action="accion.php" method="post"> <p>Su nombre: <input type="text" name="nombre" /></p> <p>Su edad: <input type="text" name="edad" /></p> <p><input t...
asked on 28.11.2018 / 04:32
3
answers

If, else if conditions in java

I'm new to this Java topic and I run into a problem, I have a form where gender reports PDF in which I have several options to generate them, full report of the table, detailed report by date, report with just a search using SQL LIKE statements...
asked on 26.11.2018 / 13:02
1
answer

Create Task in C #

I have a doubt that I'm doing a console that creates a task scheduled in windows, when I put the windows credentials I create the task without problems, the problem is that I need to create that scheduled task without credentials, some idea of h...
asked on 22.11.2018 / 15:02
1
answer

How to create a folder with the user's name when uploading a file (IMAGE)? PHP

Good on this occasion I want to make the user of my website login with the option of creating a photo album, and I can get the photo that the user uploads through the form with these codes: HTML CODE: <form action="album.php" enc...
asked on 26.11.2018 / 20:02
1
answer

Change long NavBar Bootstrap 4

Hello very good I am doing a website and I need to change the length of a navbar. By default the navbar occupies 100% of the screen in length but I want it to have a length of 900px I was trying to modify the bootstrap css for the navbars but no...
asked on 23.11.2018 / 20:59
2
answers

group tuples of a list [closed]

I am interested in grouping tuples of two elements of a list of tuples that share an element. How could I do this in python? For example, if I have the list [(1,2),(2,5),(3,4),(4,1),(8,2)] the answer should be [[(1,2),(2,5),(8,2)],[...
asked on 28.11.2018 / 15:26
1
answer

Error when deserializing JSON string in Object Class?

On my server I do this: [HttpGet] public string GetSeleccionarTodasFilasTabla(string NombreTabla, string Version) { string resultado = string.Empty; Engine.EngineDb FuncionDb = new Engine.EngineDb();...
asked on 22.11.2018 / 13:03
1
answer

"SSL connect error" connecting to Proxies using libcurl and C ++, a little help?

I wanted to buy a huge list of proxies that I have because I'm only interested in those who use the https (SSL) protocol and those that are not in China. Looking for a quick way to do it I found this function. string proxyWorks(string ip, int...
asked on 20.04.2018 / 18:30
2
answers

Python 3 handling error TypeError: catching classes that do not inherit from BaseException is not allowed

When I run this code: i=0 while i<5: i=i+1; try: SellSta=client.get_order(symbol=Symb,orderId=SellOrderNum,recvWindow=Delay) except client.get_order as e: print ("This is an error message!{}".format(i)) #End whil...
asked on 24.11.2018 / 03:35