All Questions

1
answer

Remove and re-insert vowels in any sentence, C

Context: I am trying to develop a code that is able to remove all the aeiou vowels from any phrase and save the position that was the vowel in the sentence so that it is possible to reconstruct the phrase again using what was saved as a...
asked on 18.06.2017 / 17:18
1
answer

Problems with displaying cookies

I have a Cookie set with the name 68 and value 68, it appears in the cookies settings in the browser, but on pages it works and in others it simply does not exist $id_imovel = (isset($_COOKIE[$id_imovel_form])) ? $_COOKIE[$id_imovel...
asked on 11.09.2016 / 19:53
1
answer

How can I compile a simple prolog program?

I have SWI-Prolog installed, but I'm using it as a kind of interpreter, exp: swi-pl?- [load]. True I would like to know if there is a simple command that I can use via terminal to compile the source code into an executable.     
asked on 23.08.2016 / 21:28
1
answer

CSS and JS files in Laravel

By default, the CSS and JS files in Laravel are in the public folder. But when I create the dependencies with Bower, it creates the components folder in the vendor folder. Can I change the folder from vendor to public...
asked on 24.08.2016 / 18:11
1
answer

How to calculate columns equal to the Skeleton

The .col-md-1 is calculated as: 100/12 = 8.3333...3 in Skeleton was calculated in another way that returned the following result: .one.column, .one.columns { width: 4.66666666667%; } What logic did the developer use? What...
asked on 22.08.2016 / 21:03
1
answer

AngularJS google chart with dynamic data

Example of how my code is http://plnkr.co/edit/hMnKAzjbkQzHWjL5p6KX?p=previewangularjs I get the data from the webService and I organize it this way. var avaliacoes_descTipo = []; var avaliacoes_quantidade = []; angular.forEach(data, fun...
asked on 15.08.2016 / 16:12
1
answer

Variable that changes according to the tight button

I have two different methods on two different buttons. o Method onE that adds% to% of variable and Method 3 that strips% of% of variable. The problem is that when I put this variable to appear in onM the app hangs. I would...
asked on 30.09.2016 / 04:09
2
answers

How to run a code without open page in PHP [duplicate]

I have PHP code that uses FSOCKOPEN to check the port of a server, and depending on the response it logs ... But for that the page has to always remain open, I would like to know if it exists some way I'd leave this running automaticall...
asked on 12.09.2016 / 22:31
2
answers

Get the average between dates of type timestamp

I have 3 dates: 2016-08-17 12:29:01 2016-08-17 12:34:13 2016-08-17 12:39:26 And I would like to get the average time between them. If there are more than 60 seconds, then in minutes, and the same for hours.     
asked on 18.08.2016 / 19:50
1
answer

Search for relationship Laravel whereHas?

I have a Query in my Criteria that returns the id belonging to relationship between models if ($this->request->has('notin_portal')) { $portal = $this->request->get('notin_portal'); if ($this-...
asked on 04.10.2016 / 21:47