Profile

Cover photo
Alberto Bonacina
Attends Politecnico di Milano
Lives in Chignolo d'Isola
129 followers|73,742 views
AboutPostsPhotosVideos

Stream

Alberto Bonacina

Shared publicly  - 
 
 
HHVM stands for HipHop Virtual Machine, is an open source virtual machine created for running Hack and PHP written applications to improve websites performance over 9x throughput and more than 5x cut in memory utilization.

#linux #hhvm #nginx #apache #mariadb #debian #ubuntu #tecmint  
HHVM stands for HipHop Virtual Machine, is an open source virtual machine created for running Hack and PHP written applications to improve websites performance
View original post
1
Add a comment...

Alberto Bonacina

Shared publicly  - 
 
 
Can you believe that the #linux kernel is 24 years old this month? We can't either. See how it's evolved over time: http://red.ht/1PTkxim
The Linux kernel is hitting its mid-twenties in stride. As the open source operating system kernel pioneered by Linus Torvalds celebrates another birthday, let's take a quick look back at where we've been in the nearly two and a half decades of Linux growth.
View original post
1
Add a comment...

Alberto Bonacina

Shared publicly  - 
 
 
Joshua Kiepert, a doctoral student at Boise State's Electrical and Computer Engineering department, has managed to create a mini-supercomputer using Raspberry Pi computers for less than $2,000.
Who says you need a few million bucks to build a supercomputer? Joshua Kiepert put together a Linux-powered Beowulf cluster with Raspberry Pi computers for less than $2,000.
2 comments on original post
1
Add a comment...

Alberto Bonacina

Shared publicly  - 
1
Add a comment...

Alberto Bonacina

Shared publicly  - 
 
In June 2014, Google introduced a public API for its popular Gmail service. Learn what you can do with the API to programmatically manage your email. | Difficulty: Beginner; Length: Medium; Tags: Web Development, APIs, Email Applications
View original post
1
Add a comment...

Alberto Bonacina

Shared publicly  - 
 
 
50 Style Guide Tools, Articles, Books and Resources http://ow.ly/OIP7o #fromthearchives
In this article we're rounding up all the Style Guide material you have at your disposal from around the web. | Tags: Style Guides, Inspiration, Pattern Libraries
View original post
1
Add a comment...
Have him in circles
129 people
Francesca Manzoni's profile photo
Peter Rossi's profile photo
davide cagnoni's profile photo
enzo arlati's profile photo
Gemma Destefanis's profile photo
Dario Coco's profile photo
giuseppe sabia's profile photo
Filippo Sogus's profile photo
roberta chisar's profile photo

Alberto Bonacina

Shared publicly  - 
 
This article will cover some basic techniques for using Nginx, such as managing configuration files, debug mode, CLI, and auto-indexing. | Difficulty: Intermediate; Length: Medium; Tags: Nginx, Web Servers
View original post
1
Add a comment...

Alberto Bonacina

Shared publicly  - 
1
Add a comment...

Alberto Bonacina

Shared publicly  - 
 
 
The Document Foundation released LibreOffice 5.0
LibreOffice 5.0 Released - How to download for all operating systems.
View original post
1
Add a comment...

Alberto Bonacina

Shared publicly  - 
 
Il mio primo articolo tradotto su +Tuts+ Web Design  con una panoramica sul Material Design Lite di Google ‪#materialdesign‬ ‪#‎google‬ ‪#‎material‬ ‪#‎design‬
 ·  Translate
Ho la sensazione che CodePen stia per essere assolutamente inondato di Material Design nei prossimi mesi. Perché? Perché Google ha appena rivelato il suo attesissimo Material Design Lite (MDL). Questa libreria di componenti per front-end consente agli sviluppatori web di implementare le specifiche del Material Design di Google utilizzando puro HTML, CSS e JavaScript. È un'implementazione leggera delle specifiche del Material Design (poche dipende...
1
Add a comment...

Alberto Bonacina

Shared publicly  - 
 
 
Use colorPrimary to colorize your App Bar
Pro-tip by +Ian Lake 

The app bar [1], or action bar, is an iconic part of many Android apps, providing a consistent place for navigation affordances and frequent, important actions. But it can also be a great opportunity to bring some personality to your app. An easy way to do that is by using your branding color as the background of the app bar.

In fact, AppCompat makes this very straightforward using a technique of providing a color palette [2] for your app. While introduced in the Material themes added in Android 5.0, AppCompat makes this technique available to all Android 2.1+ devices.

If you’re using a theme such as Theme.AppCompat, you’d only need to add a colorPrimary attribute:
<style name="AppTheme" parent="@style/Theme.AppCompat">
<item name="colorPrimary">@color/primary</item>
</style>

And your App Bar will automatically be colored appropriately. You’ll note we’re using just colorPrimary and not android:colorPrimary as android:colorPrimary only works on Android 5.0 devices unlike the AppCompat provided colorPrimary. Just make sure you’re using the right theme so that the text and icons have enough contrast:
- Theme.AppCompat -> dark activity, dark app bar
- Theme.AppCompat.Light -> light activity, light app bar
- Theme.AppCompat.Light.DarkActionBar -> light activity, dark action bar

But perhaps you’ve already moved over to Toolbars (perhaps wrapped in the Design Library’s AppBarLayout [3])? In those cases, you’re probably using a Theme.AppCompat.NoActionBar or Theme.AppCompat.Light.NoActionBar theme and including those elements in your layout XML files. Thankfully, you can still take advantage of your colorPrimary using the format ?attr/colorPrimary:
<android.support.v7.widget.Toolbar
android:background="?attr/colorPrimary" />

This ?attr/ format allows you to pull any attribute out of your theme, making it easy to consolidate your theming into a single place and avoid finding/replacing across many files.

The other thing we’ve lost is our text coloring though - there’s no Theme.AppCompat.Light.DarkActionBar.NoActionBar. Here’s where a ThemeOverlay can prove incredibly helpful. ThemeOverlays, unlike a full theme, only seek to overlay the current theme, changing the few things they need to. For example, if we had a light theme but wanted a dark Toolbar, we could use:
<android.support.v7.widget.Toolbar
android:background="?attr/colorPrimary"
android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"/>
With just that change, our text and icons are now back to a white color - perfect for a dark Toolbar.

You’ll find a number of other colors you can and should add to your theme such as colorPrimaryDark for changing the status bar on 5.0+ devices to a darker branding color and colorAccent for a contrasting accent color designed to make elements such as a FloatingActionButton really pop out. If you’d want to learn more about AppCompat, check out our video on Consistent Design with AppCompat [4].

For now, bring some personality to your app by using colorPrimary to color your App Bar or Toolbar!

#BuildBetterApps

[1] - http://goo.gl/Meu1sE
[2] - https://goo.gl/EHaUMj
[3] - https://goo.gl/Wo1IBv
[4] - https://www.youtube.com/watch?v=5Be2mJzP-Uw
17 comments on original post
1
Add a comment...
People
Have him in circles
129 people
Francesca Manzoni's profile photo
Peter Rossi's profile photo
davide cagnoni's profile photo
enzo arlati's profile photo
Gemma Destefanis's profile photo
Dario Coco's profile photo
giuseppe sabia's profile photo
Filippo Sogus's profile photo
roberta chisar's profile photo
Education
  • Politecnico di Milano
    present
Basic Information
Gender
Male
Apps with Google+ Sign-in
  • Angry Birds Fight!
Work
Occupation
Graduated Student
Employment
  • Graduated Student, present
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Chignolo d'Isola
Links
Contributor to