Рабочий пример typeahead.js

Тут[Spoiler (click to open)]

<!DOCTYPE html>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//twitter.github.io/typeahead.js/releases/latest/typeahead.bundle.min.js"></script>
$(document).ready(function() {
var numbers;
var countries = new Bloodhound({
datumTokenizer: function (d) {
return Bloodhound.tokenizers.whitespace(d.value);
queryTokenizer: Bloodhound.tokenizers.whitespace,
remote: {
url: 'http://api.themoviedb.org/3/search/movie?query=%QUERY&api_key=470fd2ec8853e25d2f8d86f685d2270e',
filter: function (movies) {
return $.map(movies.results, function (movie) {
return {
value: movie.original_title

$('.countries .typeahead').typeahead(null, {
displayKey: 'value',
source: countries.ttAdapter()

<div class="container">
<div class="countries">
<div class="demo">
<input class="typeahead form-control" type="text" placeholder="Countries" autocomplete="off" spellcheck="false" dir="auto" >


PrestaShop добавление своих полей в описание продукта

This process require some work around in steps. Below i have listed them.

1) Open classes/Product.php. Place public $mystock; in the class properties list, which you can see after the class is started.

2) Down the file, find public static $definition = array( , it will be a long array. Find the 'fields' => array( in it, and there you will see all the database fields placed with validation, data types etc. Place your mystock there in that array as another item and place the correct validations and data types like placed for other fields.

3) Now open adminFolder/themes/default/template/controllers/products/informations.tpl and place your field with the correct name and id in the appropriate place. Please note that the field name / id both should be same like the db field name and the one we added in the Products.php class.

Thats it, Hope you understand the process and will make it work.

опять ubuntu громкий звук

Регулировался в гноме звук и master и PCM.
Решил проблему в конфиге /usr/share/pulseaudio/alsa-mixer/paths/analog-output.conf.common ,изменил параметр [Element PCM]
volume = ignore , было merge.

Смена уровня PCM делается через alsamixer.

Автосмена Мака при загрузке :
в /etc/network/interfaces добавить

auto eth0
iface eth0 inet dhcp
hwaddress ether 00:00:00:00:00:00