All Questions

2
answers

Check that there is a word on a div and then change its class

Suppose I have a div with a string of characters and I want to see if there is a specific word and do something: $('.container-text:contains("text")').addClass('container-text-right'); But how do I check if I want him to check more than one...
asked on 03.10.2016 / 17:42
1
answer

Calculate distance between two points

in Sql server 2008 it was very simple for me to get the distance between two latitude and longitude points, but now I am occupying Sql server 2005 and the data type geography apparently does not exist ... I do this: DECLARE @source geog...
asked on 27.10.2016 / 17:43
2
answers

Doubt with cstring and string

I am not clear about the difference between the cstring library and the string library. As I understand it, the string header is, as the name implies, for string types, while cstring is for using its functions with char type.     
asked on 29.11.2016 / 03:24
2
answers

Error in android java.util.ConcurrentModificationException

I'm doing an app for Android , and part of my code is like the following: public void loop(){ for(Car car:carList) car.run(); } The bad thing is that I get the error java.util.ConcurrentModificationException . I was re...
asked on 27.10.2016 / 04:39
2
answers

Calculate and show persistence of a whole [closed]

It's something of a project and I need to add this: Calculate and show the persistence of a given whole number. The persistence of a Number is the number of times you have to multiply the digits of a number until it becomes a single-digit num...
asked on 07.11.2016 / 00:53
3
answers

Problem with while loop together with if conditions

I have a problem that I think any intermediate programmer can solve. The case is that I have a while loop in which if I put in the input (for example) "add" and add the numbers the subtraction is done but then the while is executed again and it...
asked on 02.12.2016 / 21:28
1
answer

Can not find a part of the path

Good morning everyone, again I need your support, since when trying to create a text file by means of C # and save it on a server, which I access by means of a network unit it generates this exception    Unable to find a part of the path...
asked on 25.11.2016 / 18:54
2
answers

Build a table with start and end dates of period

Hello! I have a table with the following structure: id | fecha_inicio ---+-------------------- 10 | 2016-12-01 10:15:00 10 | 2016-12-03 16:02:00 11 | 2016-12-02 11:23:00 I want to build a query that has the beginning and end of the perio...
asked on 02.01.2017 / 18:07
3
answers

Detect text between open and closed keys in javascript [closed]

How can I detect when a key { opens and when } is closed? What I want to achieve is to detect the opening and closing of the keys, but I would also like to be able to detect content within them. Example: {#f66} o {red} E...
asked on 28.11.2016 / 02:02
3
answers

Problem with the methods and constructor?

I have a small code in which the purpose is to verify the user's name and see if it exists in an array and the age verify if it is of legal age. If it is, you are authorized to enter the system. The code is not finished yet but my doubt is th...
asked on 08.01.2017 / 21:32