All Questions

1
answer

Name a backup but that does not match the previous C #

My code makes a backup of a folder, if the backup folder exists it creates another by adding "_1" and if it does not exist it creates a new one. I do not know how to do it so that when there is more than one backup folder it automatically genera...
asked on 06.10.2017 / 07:42
1
answer

create migrations automatically from an existing database in laravel 5.4

How can you create migrations from an existing database automatically in laravel 5.4? I found this link link but they are asking me not to be like that. That does not create other files for foreign keys and another for tables. Does anyon...
asked on 24.06.2017 / 14:18
1
answer

The database does not want to connect to the host

I'm trying to connect to my MySQL database, I do not want to recognize the localhost, it bounces in error: from sqlalchemy import create_engine from sqlalchemy.orm import sessionmaker eng = create_engine("mysql+mysqldb:///host='localhost...
asked on 13.08.2017 / 20:13
1
answer

Edit field from a date in SQL Developer (DB2)

I need to update the value of one field for another from a certain date ( 5/04/2017 ). It is a DB2 type database. I am using this sentence: UPDATE tabla SET campo='valor_nuevo' FROM tabla WHERE (campo='valor_viejo' AND fecha>=DATE(...
asked on 27.06.2017 / 07:39
1
answer

String containing '@' with wildcard

I wanted to find something with the function range.Find.Execute() , since I need to find all the words that start with an at @ and the wildcards that probe were: (@)* (^064)* But none of them helped me. With which one can I f...
asked on 10.08.2017 / 19:07
1
answer

Is there any way to optimize this if-else conditional example?

I'm looking for a conditional that looks like this or validates but without using so many lines of code if (is_file(PATH_CONTROLLERS.$controller."/".$controller."Controller.php") || is_file(PATH_CONTROLLERS.$controller."Controller.php") )...
asked on 25.06.2017 / 18:51
1
answer

Pass Array to Int - PHP

I need to obtain the id of the student with his rout (identification number) which I achieve in the query that I do in PDO the problem in which an array returns and not an int. Then I was in doubt transform the value obtained in an integer or...
asked on 07.08.2017 / 17:09
1
answer

JsonObject Android

I am making a listview through a json that I bring from a server. The detail is that I can not pass my data to listview in this function I try to save them from there to move them to listview public ArrayList<String>...
asked on 11.08.2017 / 06:54
1
answer

Moving an array in Java

I have an array with integers int[] intColorArray = new int[3]; I would like to obtain a different value sequentially of the array but if you reach the end that you get back from the beginning, that is 0,1,2,0,1,2,0,1,2... I ha...
asked on 12.08.2017 / 19:16
1
answer

How to save an image of any format in Python?

I have been investigating the way to save an image in python but so far I have not found anything that can be useful, what I need is to know that import have and how to save the image in python, this image will keep it in a database in mo...
asked on 07.08.2017 / 17:17