All Questions

2
answers

Validate if the data is null

How can I validate if a URL in my database is NULL and if so, show an alert but if it has a URL, open it func Facebook(sender: AnyObject) { if let url = NSURL(string: face){ let alert = UIAlertView(title: "Aviso!!!", message: "Mmmm...
asked on 17.08.2016 / 18:51
3
answers

Modal of Bootstrap does not open

Good, I have looked for possible solutions but with them I can not solve the problem. I try to open a modal window with Bootstrap but that does not open when I press the button. <form class="form-inline"> <button ty...
asked on 16.08.2016 / 18:48
1
answer

Select data-attribute within SVG

I have the following SVG inline on my website: <svg xmlns="http://www.w3.org/2000/svg" data-action="counter" class="button" width="320" height="90" viewBox="0 0 320 90"> <rect x="0" y="0" width="320" height="82" rx="10" ry="1...
asked on 23.08.2016 / 11:23
1
answer

Sort array of objects by 2 attributes in JavaScript

I would like to sort an array of objects by two attributes. The array is as follows: var unidades = [{"id": 1, "numero": 3, "bloque": "F"}, {"id": 2, "numero": 101, "bloque": "A"}, {"id": 1, "numero": 1, "blo...
asked on 17.08.2016 / 16:19
2
answers

Transaction Management in the Entity Framework

I'm working with Entity Framework 6 approach code-first, is it necessary to use transaction when registering header and detail, when using EF6? public void InsertOrUpdate(Compra entity) { using (var context = new PosContext())...
asked on 23.08.2016 / 23:21
1
answer

How to select multiple rows in the Data Table jQuery and obtain a data for each selected row?

How can you select multiple rows of a Data Table jQuery, and get the data of the first column of each row selected ????     
asked on 17.08.2016 / 15:40
1
answer

Conversion error NSData in NSString

I have the following code to convert the body of a post request into a string let body: NSData = self.createBodyWithParameters(paramString, filePathKey: "image_name", imageDataKey: imageData!, boundary: boundary, nameParam: "dparam_string_post...
asked on 22.08.2016 / 06:58
3
answers

PL / SQL SMTP: 501 Error: attribute value too long

I am presented with an error when creating an automatic email through the database, I am creating the body and I get this error message:    ORA-29279: Permanent SMTP error: 501 Error: attribute value too long       ORA-06512: in "SYS.UTL_SMT...
asked on 11.02.2016 / 19:45
1
answer

How to traverse array values after inserting a value in a busy place

In a console application, where I have a string type arrangement, one of the operations allows inserting values in places that are occupied, for example: I have an array in the following way: {cero, uno, 0, 0 ,0} . The zeros are null va...
asked on 22.02.2016 / 20:13
3
answers

How to solve the blockade of port 80?

Hello everyone I am new to web programming and like many people before uploading a web page you do tests in local, I use Xampp and until yesterday it worked perfect until today I tried to open it and it came out:    Apache: Problem detected!...
asked on 14.02.2016 / 03:47