Check if exists phone number in String

Hey I would like to check if UITextView (maybe this could be relevant or not) contains phone number in text. I am using Swift 2.3, but if you got it in Swift 3 I will try to translate it. Should work for these inputs for exemple: "Good morning, 62...
more »

2017-05-18 10:05 (3) Answers

MYSQL - DATE/TIME show last 30minutes

I have a column (lastlogin) that contains the following value = '17th May 2017 09:40:43 AM' ---- php function to create stamp: date('jS F Y h:i:s A'); How can I do a select query that shows the (lastlogin) in that last 30 minutes from current ti...
more »

2017-05-17 13:05 (2) Answers

Add string from list to url for API get request

Hi I have an API get request that retrieves numbers that I put into a list. I then want to loop over that list, adding every number in the list to a separate new get request. The code I have so far is: for evt in eventList: main_api = 'https://a...
more »

2017-05-16 13:05 (1) Answers

Inputting multiple lines of strings in C

I'm fairly new to coding and am currently taking a programming course at school with C. We were given an assignment and I'm having a bit of difficulty with the first part. We're learning how to use the string-handling library (stdlib.h) and the objec...
more »

2017-05-14 05:05 (2) Answers

Element in First Index Doesn't Behave as the Rest

so I'm trying to do a very simple task. I need to write a function that gets an empty array of strings and its size and initialize it (for example "names={"dani", "gabi", "bobi"}, names is array of size 3 and each one hold a string that the user inpu...
more »

2017-05-13 20:05 (1) Answers

How can I concatenate vectors in loop in R

everyone I brought some new trivial questions to ask. I've searched, but I failed to look for the most efficient answer. The string(or list) I would like to make looks like: c("who","expr1","who","expr2",...,"who","expr100") How can I efficientl...
more »

2017-05-12 14:05 (1) Answers

Dealing with special characters in String

I am downloading some files which have some chineses characters sometimes and apparently String doesn't recognize them. Any ideas on how I could tell VBA the following : If there are some unknown characters in the filename then delete them and only...
more »

2017-05-12 12:05 (1) Answers

Count comma separated unique values in a string

The first two columns of dataframe make a composite key and there's a column of type char which contains comma separated integers. My objective is to make a column which contains the count of unique integers in the string. I know the approach of conv...
more »

2017-05-12 08:05 (3) Answers

Saving and accessing pointers to strings in C

Say I get a string from stdin (one line). Using that line, I would like to create an array of strings from it: char ** array_of_strings I want this array of string to be digits of the line. So for example, if the line input was this: "aasd1as...
more »

2017-05-12 02:05 (3) Answers

Reorder numbers in assembly

i was doing a program where you can change number like this. You input this numbers. 123456789 And the output will be: 123456789 234567891 345678912 456789123 567891234 678912345 789123456 891234567 912345678 But i cant do it, ill try by taking th...
more »

2017-05-11 16:05 (2) Answers

how to construct dynamic url in objective c

i have url like this in objective c NSString * currentUrl = [NSString stringWithFormat: @"", userId]; so here user id is dynamically changes not static so i n...
more »

2017-05-11 13:05 (0) Answers

Convert string to json doesn't work java

I have a problem with convert string to json. Namely, my json string is: {"serverId":2,"deviceId":736,"analysisDate":"2017-05-11T07:20:27.713Z","eventType":"Logs","eventAttributes":[{"name":"level","value":"INFO"},{"name":"type","value":"Video Block...
more »

2017-05-11 07:05 (2) Answers