All Questions

4
answers

How to do a search to know if a string is inside a vector in C #

I'm doing a small program that does search within a vector. The problem I am having is that if it finds the name it gives a message saying it was found but then it gives another message saying that it was not found, the code I am creating is thi...
asked on 30.05.2017 / 10:09
3
answers

Uppercase in the first letter of all the words of a column in MySQL

How do I make the first letter of all words in a specific column be converted to uppercase using pure MySQL p> Example: gustavo silva Guilherme souza joão Silva maria souza To: Gustavo Silva Guilherme Souza João Silva Maria Souza...
asked on 30.06.2015 / 06:29
1
answer

What is the "application / ld + json" type used in a script tag?

I was looking at the source code of the Kickass page and this passage caught my attention: <script type="application/ld+json"> { "@context": "http://schema.org", "@type": "WebSite", "url": "https://kat.cr", "potentialAction":...
asked on 09.03.2016 / 00:52
1
answer

Pattern recognition [closed]

I have hundreds of digital images of dogs and cats, I need to make an algorithm to recognize when it is the dog and when it is the cat. What steps should I take?     
asked on 08.07.2016 / 15:38
1
answer

How does ES7 async / await work?

ES7 allows you to use a new syntax to work with Promises known as async / await functions. How can I use these functions and how are they compared to functions that use Promises to process data sequences and in parallel?     
asked on 24.08.2016 / 00:41
1
answer

Why does the compiler create repeated .class files?

I have noticed that when the java compiler compiles some class that has some swing / awt component, it creates another or even several classes of the same name, with a $ followed by a numbering. I made a simple code to check if it was...
asked on 28.06.2016 / 20:15
1
answer

How to avoid overloading HTTP requests when consuming REST APIs?

I have a REST API made with Laravel and a WebApp (which uses the features of this API) made in Angular.JS. My WebApp is a unique registered user portal, but now I'm creating a website so that non-registered users can only check out a few things....
asked on 12.10.2015 / 14:06
2
answers

How do I store settings for a site?

I want to develop a site that has some configuration options, for example: Keep the default or custom logo Allow new user registration Authorize anonymous comments on posts How should these settings be maintained? Remember that there...
asked on 01.12.2015 / 15:09
3
answers

How to abbreviate words in PHP?

I have common information such as people's names and addresses, and I need them to contain a maximum of 30 characters without cutting words. Example: 'Avenida Natalino João Brescansin' => 'Av. Natalino J. Brescansin' 'Joaquim Rossafa Nas...
asked on 09.05.2016 / 15:43
2
answers

Is "slash" required at the beginning of native functions when using namespace?

I noticed that some libraries often use native PHP functions as \ , for example: echo \str_replace('foo', 'test', $string); I've been testing inside a class with just this namespace: public function foo($string) { echo \str_re...
asked on 03.08.2015 / 23:13