All Questions

1
answer

Is there any way to set a max-height of an element equal to the size of the window, with pure CSS?

I have a sidebar, which can contain n items in a listing. My sidebar looks something like this: In my source code, I set the following css to work: .sidebar { max-height: 400px; overflow-y: auto; } Now my question...
asked on 09.08.2016 / 22:40
1
answer

Gulp Tasks with Command Line Parameters

Work with a simple task of Gulp , created to perform a deploy in the production environment. In a simplified way, the task is: gulp.task('deploy-prod', function () { return gulp.src('dist/**') .pipe(sftp({ h...
asked on 15.06.2016 / 15:38
1
answer

What is the difference between Kotlin data class and Scala case class?

In Scala we have case classes , for example: case class Pessoa(nome: String, sobrenome: String) and in Kotlin we have data classes : data class Pessoa( val nome: String, val sobrenome: String ) What's the difference between...
asked on 10.07.2016 / 13:36
3
answers

Dropdown-menu Bootstrap with PHP

I'm trying to send a data to a PHP page with AJAX, but I can not figure out how to make it work, I'll explain what I have so far! The dropdown menu has the following code: <div class="btn-group"> <button class="btn btn-danger btn-...
asked on 31.01.2015 / 04:16
1
answer

How to solve the problem of PHP 5.6 with obsolete PPA in Linux?

I ran the sudo apt-get upgrade command and received the PHP PPA discontinuation message. After updating the PHP version, when I run php -v , the following appears: PHP 5.6.23-1+deprecated+dontuse+deb.sury.org~trusty+1 In th...
asked on 05.07.2016 / 15:17
1
answer

Notification icon in Android 5.0

I'm creating a push notification system with firebase in my project. The code that generates the push looks like this: notificationBuilder = new NotificationCompat.Builder(this) .setSmallIcon(R.drawable.ic_notification) .setColor(getResourc...
asked on 30.08.2016 / 20:36
2
answers

Assign a value to the pointer and multiply (directly)

How do I multiply the pointer as soon as I assume a value to it? #include <stdlib.h> #include <stdio.h> int main (void) { int a,*b,*c,*d; printf ("\nInforme um valor: "); scanf ("%i",&a); b = &a; // Co...
asked on 29.06.2016 / 02:23
2
answers

How to save the path of an image in the database?

I'm using JDBC and taking an image to save to the database. But I want to save the image to HD and save it to the bank only the path ( path ) of it. I wanted to know what is the best type I use to manipulate and save the image ( Imag...
asked on 18.12.2014 / 13:29
1
answer

Character conversion to Date - 4 digits

I'm having a hard time using as.Date to convert a column with dates (year with only two characters) into date. As.Date autocompletes the year in the wrong way, producing results like 2066 (instead of 1966) > head(data_de_nascimento)...
asked on 28.07.2016 / 21:38
2
answers

How can we get the execution time of a script? [duplicate]

Looking at the Comparing with DateTime class, is the date function more performative? and I did some testing with Daniel Omine's response , but I got results that did not seem to me to be reliable. How can I get the runtime of a PHP scri...
asked on 30.08.2016 / 11:54