All Questions

2
answers

How to remove styles with jQuery when clicking on an HTML element

My Question in the image $('#campoBusq').on('click','.xClones',function() { $(this).parent().remove(); $("#categoria").find(".cont-optionElement").removeClass("estilSelectCateg");...
asked on 18.03.2017 / 01:15
1
answer

Function to search in a chain the commas and replace them by point

I want to make a function that when you pass it for example this amount 20000,01 it returns me 20000.01 function cambiarDecimales(monto) { var montoEnv; montoEnv = new Intl.NumberFormat(["en-US"],{maximumFractionDigits:2}).format(m...
asked on 28.12.2018 / 19:16
1
answer

Avoid duplicate records and account for them

I have a query in which I get a list of companies SELECT S.FileB64 AS ImgB64, E.* FROM dbempresas E LEFT JOIN systorage S ON S.id = E.Logo_100 ORDER BY E.Nombre; RESULTADO: id | RFC | Nombre ---+--------------+----...
asked on 14.03.2017 / 16:11
1
answer

Problem with menu in python

[EDITED QUESTION] Hi, how are you? I hope they look good. I have a problem with the menu and sub-menu in Python. I'll explain to what I want to get, I want to make a main menu which will have its sub-menu and that sub-menu will have another sub-...
asked on 28.12.2018 / 01:54
1
answer

Error when using __construct in a child of a MySQL class (it is solved by not using __construct but I need it if or if)

I have two classes: The first is called "MySQL" and contains all the functions for the queries (in addition to the ones that the API "MySQLi" brings.) Use __construct to create the MySQLi object. The second (Users), which is the daughter of the...
asked on 04.01.2019 / 02:24
1
answer

php vulnerabilities

Is it good to query the database within the php code? For example: <? $restIds=$_SESSION['restaurants']; $restIds=substr($restIds,0,strlen($restIds)-1); $query="SELECT cli.restaurant_id as id, CONCAT(cli.nombre,' ',cli.sucursal) as nom...
asked on 28.12.2018 / 18:26
1
answer

Sort with NSSortDescriptor

I am trying to show in UITableViewController my items stored in Core Data in a specific order given by one of its attributes. There is an attribute that can be 1 or 0 and my intention is to show first those whose value is 1. NSFetchRequ...
asked on 16.12.2015 / 09:47
1
answer

Extract url from a header using bash script

I have been trying for quite some time to extract part of a text (a header) in bash script but I have not succeeded, this is what I have: link: <https://api.some.com/v1/monitor/zzsomeLongIdzz?access_token=xxSomeLongTokenxx==>; rel...
asked on 04.02.2016 / 18:32
1
answer

Test if a list is unique in C #

I have a list List<byte> unaLista = new List<byte> { 1,4,3,6,1 }; How can I test whether this unqiue or not?     
asked on 01.12.2015 / 17:05
1
answer

Modify database after publishing post wordpress

I am working with Custom Post Type, creating classes and courses. When the course is scheduled as a draft it does not let me select it as the parent of the classes. How can I do an UPDATE to specify the father at the ID level? That is, by...
asked on 26.12.2018 / 15:01