...
Just my blog

Blog about everything, mostly about tech stuff I made. Here is the list of stuff I'm using at my blog. Feel free to ask me about implementations.

Soft I recommend
Py lib I recommend

I'm using these libraries so you can ask me about them.

VMware Front Experience: FAQ: Using SSDs with ESXi (Updated)

Where and how to use SSD into the VmWare vCenter: VMware Front Experience: FAQ: Using SSDs with ESXi (Updated). Will try later. maybe.

Read...

Finally GbE adapter working

Finally! I have spent some time to allow the GbE NIC worked as expected. Have just drop down a vCenter, when changing Virtual Switches after deleting a Management Network: Capture2 so - be careful when you move Switches! This is how it looks now: vmnic1 - is a really GbE NIC vmnic0 - is motherboard GbE NIC, but it cant handle more that 300 mbps Capture2 And now its working 3959167426[1]

Read...

ESXi Update "perversion"

Did you see ESXi upgrade perversion? Look and cry: perv

Read...

Y.A. great plugin for Redmine!

Yet another great plugin for Redmine just teached me how to add tables and columns manually into MySQL db. mysql-redmine This is "nice" plugin: Issue Templates Have a great issue: error 500 And YES it have been migrated!

root@tet-redmine www/redmine# rake redmine:plugins:migrate RAILS_ENV=production
Migrating hooks_manager (Hooks manager)...
Migrating redmine_ckeditor (Redmine CKEditor plugin)...
Migrating redmine_digest (Digest plugin)...
Migrating redmine_issue_checklist (Redmine Issue Checklist plugin)...
Migrating redmine_issue_templates (Redmine Issue Templates plugin)...
Migrating redmine_lightbox (Redmine Light Box plugin)...
Migrating redmine_omniauth_ulogin (Redmine Omniauth uLogin plugin)...
Migrating redmine_open_links_in_new_window (Redmine Open Links In New Window plugin)...
Migrating redmine_people (Redmine People plugin)...
Migrating sidebar_hide (Sidebar Hide Plugin)...

But did not works! And I spent about 3hrs of my sleeping to find a roocause. You can see picrelated - Ive added those tables - manyally! How to figureout this issue see the production.log

Completed 500 Internal Server Error in 4.7ms ActiveRecord::StatementInvalid(Mysql2::Error: Table 'redmine_production.global_issue_templates' doesn't exist: SHOW FULL FIELDS FROM `global_issue_templates`):
  • be sure …

Read...

MySQL key efficiency 100

MySQL key efficiency 100% key efficiency 100 This is to remember the conf for this: for 1GB RAM dedicated server:

query_cache_limit = 4MB
query_cache_size = 128MB
key_buffer_size = 128M
max_connections = 300
wait_timeout = 7200
tmp_table_size = 64MB
max_connect_errors = 1000
connect_timeout = 20
max_allowed_packet = 16M

from here: thanks man! +1 Gb RAM = 2 Gb new config:

log-slow-admin-statements
query_cache_limit = 4MB
query_cache_size = 64M
key_buffer_size = 64M
max_connections = 300
wait_timeout = 7200
tmp_table_size = 12MB
max_connect_errors = 500
connect_timeout = 60
max_allowed_packet = 8M
innodb_buffer_pool_size = 128M
performance_schema

plugin_dir = /usr/lib/plugin
default-storage-engine = InnoDB

innodb = ON

 

Read...

Redmine кривые плагины ч2

Всегда, если что-то не работает, нужно делать --trace Тогда можно будет обнаружить много интересного, например:

root@tet-redmine www/redmine# rake redmine:send_digest RAILS_ENV="production"
rake aborted!
IndexError: string not matched
/var/www/redmine/plugins/redmine_digest/lib/tasks/digest.rake:47:in `[]='
/var/www/redmine/plugins/redmine_digest/lib/tasks/digest.rake:47:in `block (2 levels) in <top (required)>'
Tasks: TOP => redmine:send_digest
(See full trace by running task with --trace)
root@tet-redmine www/redmine# rails -v
Rails 3.2.19

Интересно, что если поправить требования версии с 3 на 3.2 - все непременно заработает! Спасибо автору плагина, что так жестко привязал версии!

require 'rake'
if Rails::VERSION::MAJOR >= 3.2
 require File.expand_path(File.dirname(__FILE__) + "/../../../../redmine/config/environment")
else
 require File.expand_path(File.dirname(__FILE__) + "/../../../../../redmine/config/environment")
end

На этом сюрпризы не заканчиваются:

root@tet-redmine www/redmine# rake redmine:send_digest days=7 RAILS_ENV="production"
rake aborted!
LoadError: cannot load such file -- /var/www/config/environment
...
/var/www/redmine/plugins/redmine_digest/lib/tasks/digest.rake:34:in `<top (required)>'

Оказывается, у нас в плагине в 34 строке что-то не так: require File.expand_path(File.dirname(FILE) + "/../../../../../redmine/config/environment") автор забыл указать абсолютный путь. Теперь все работает!

Read...

Could not connect to one or more vCenter Server systems

Сразу разбираю проблему, чтобы не забыть: Capture Первый же гугл-ответ:  шлет на KB тут https://localhost/sdk тоже недоступен. Но сдаваться я не намерен, КВшка предлагает танцы с бубном - тоже не вариант, вот еще что интересное есть: http://geeksilver.wordpress.com/2012/12/04/vsphere-5-1-x-vsphere-web-client-cannot-connect-to-vsphere-server/ Хотя все отвалилось вот почему: If changes occur to any of these entities, re-register the Inventory Service with vCenter Single Sign-On using:

  • IP address of the vCenter Single Sign-On instance
  • vCenter Inventory Service host DNS or IP address
  • vCenter Inventory Service certificates

Я пытался отвязать vCenter сервер от одного адреса и повесить его на ДХЦП - временной смены адреса хватило, чтобы все пошло не так. Так что, думаю, зная причину - нет смысла все-таки реинсталлить, запущу процедуру перепривязки, как указано в КВ: [su_spoiler title="Процедура(не работает в этой ситуации)"] To re-register the Inventory Service with vCenter Single Sign-On: Open a command prompt on the Inventory Service host machine. Change directory to:

C:\Program Files\VMware\Infrastructure\Inventory Service\scripts

Notes: If you …

Read...

Дошли руки сделать экспорт из Lightroom по FTP

trianglesis_82 mm_1,6 sec at f - 36_27-11-10

Read...

Хитрожопые плагины Redmine

Встретился мне тут только что плагин один: http://www.redmine.org/plugins/redmine_omniauth_ulogin Довольно интересен тем, что позволяет легко логиниться и регистрироваться в редмайне через соц. сети - то что нужно для моего проекта. Но не судьба, плагин после настройки редиректил сюда: http://do.psiconsul.ru/oauth2callback/?authenticity_token= Лол. Если будете иметь с ним дело, идите туда:

var/www/redmine/plugins/redmine_omniauth_ulogin/app/views/hooks/_view_account_login_bottom.html.erb

И меняйте строчку на ваш сайт:

<div id="uLogin<%= Setting.plugin_redmine_omniauth_ulogin[:client_id] %>" data-ulogin="display=panel;fields=first_name,last_name,sex,email;verify=1;sort=default;lang=ru;providers=vkontakte,odnoklassniki,mailru,facebook,twitter,google;hidden=yandex,livejournal,linkedin,liveid,youtube,googleplus,instagram;redirect_uri=<%= URI::encode("http:/ВАШ_САЙТ/oauth2callback/?authenticity_token=" + form_authenticity_token(), /\W/) %>"></div>

Наверное автор плагина чет напутал, но после исправления все заработало. И спасибо ему на этом!

Read...

Rails update for Redmine

Как обнаружилось в предыдущей статье - у меня старые "рельсы" Теперь пришло время их обновить, если повезет, не обвалить рабочий сейчас редмайн.

root@tet-redmine www/redmine# ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]
root@tet-redmine www/redmine# gem -v
1.8.23
root@tet-redmine www/redmine# rails -v
Rails 3.2.19

Хорошо сказано в статье: http://railsapps.github.io/updating-rails.html

Don’t Just Update Rails

Developers often install the newest version of Rails but neglect other components needed for Rails to run successfully. Rails is not just a Ruby gem, it is a complex and rapidly evolving ecosystem. It is important to set up your development environment with the most current version of all the gems that are needed for development.

Сказать что я "обосрался" - ничего не сказать, надеюсь гайд поможет все расставить по полочкам, а пока я пойду сделаю снепшот виртуалки. tet-redmine-snap Далее вычитываем все что гугл нам предложит: http://stackoverflow.com/questions/10930782/rails-update-3-2-5

Что-то я туплю сегодня, у меня все up to date:

root@tet-redmine www/redmine# rails …

Read...