All Questions

1
answer

How to make a program to calculate constant mathematical expressions [duplicate]

I have a job to build an algorithm that calculates expressions coming from a TXT file in this format. 10 + 20 * (30) / 25. I know that this is a recursive descending parser, but I have no idea where to start studying and how to do the pr...
asked on 27.10.2015 / 23:36
1
answer

Error when using Group by in a VIEW in Mysql

I created a VIEW to return the main data I need in a single query. CREATE ALGORITHM = UNDEFINED DEFINER = 'root'@'localhost' SQL SECURITY DEFINER VIEW v_historicoProcesso AS SELECT p.protocolo AS protocolo ,p.der AS der ,p.dat...
asked on 05.12.2015 / 23:18
1
answer

Convert image to base64 with IonicFramework

Is there a library that allows you to convert images to base64 with the Ionic Framework ? I tried using angular-base64-upload , it worked with angular, but in Ionic did not succeed. If anyone knows a library would be very gratef...
asked on 08.11.2016 / 13:57
2
answers

Compile and execute project via command line

I have an Android application developed in Eclipse. I know I can compile and run a project from the console , however I do not know how to do this. The basic steps for compiling a program JAVA is to save with the same class name follo...
asked on 16.09.2016 / 21:27
1
answer

how to use the last-child for the penultimate too?

I want to make a selection with css for last and penultimate item. I know I can use the last-child selector for the last, but the penultimate selector? How do I do?     
asked on 23.08.2016 / 15:45
1
answer

2 gifs alternating the same space (frames loading correctly)

Good night everyone, I have a small challenge here and until now I have not been able to get the relief, if anyone could help me, I would be very grateful: I'm trying to put 2 gifs in the same place on the page, like this: loop { 1- page...
asked on 15.07.2016 / 04:49
2
answers

Show command executed when error occurs in SQL

Considering the following executed command BEGIN TRY -- Generate a divide-by-zero error. SELECT 1/0; END TRY BEGIN CATCH SELECT ERROR_NUMBER() AS ErrorNumber ,ERROR_SEVERITY() AS ErrorSeverity...
asked on 07.07.2016 / 19:22
1
answer

How to authenticate the application and authorize it to consume a restful API

In a given project, it was necessary to create a restful API that receives data from various forms spread across multiple sites hosted on different servers. The API was created to resolve the following issues: Maintenance: have a single d...
asked on 13.06.2016 / 16:49
1
answer

How many terminal instances are called for each exec () function call in PHP?

If I call a file, which contains the exec() function, on two different terminals, will the second start executing only when the first one ends, or do they work independently?     
asked on 05.07.2016 / 21:03
2
answers

What is the correct way to call methods in Python?

What is the correct way to make a method call in Python? As in the example below. def __init__(self): mtd([1, 2, 2, 3, 3, 3, 4, 4, 4, 4]) def mtd(data): for value in data: print(value)     
asked on 09.01.2017 / 19:59