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.

Redmine, Rails, Gems - TOP comands

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


ruby -v

[su_spoiler title="Result"]

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



rails -v

[su_spoiler title="Result"]

root@tet-redmine www/redmine
# rails -v Rails 3.2.19



gem list



Helix Perforce - the name has changed and that`s all for now


Perforce is a commercial, proprietary revision control system developed by Perforce Software, Inc. The Perforce server manages a central database and a master repository of file versions. Perforce supports both Git clients and clients that use Perforce's own protocol. A Git client can communicate with the Perforce server over SSH or HTTPS, and other Perforce clients communicate with the server via TCP/IP using a proprietary RPC and streaming protocol. Users submit changed files together in changelists, which are applied as atomic commits. The Perforce database is proprietary, preconfigured, and self-installed. It stores system-related metadata (file state, file attributes, branching and merging history, changelists, change descriptions, users, groups, labels, etc.). Files are identified by namespace (i.e., by OS-neutral filenames). File content itself is not stored in the database. MD5 hashes of file content are stored in the database, however, and can be used to verify repository file integrity. Database tables …


Perforce - Windows start investigation and install

Perforce is a commercial, proprietary revision control system developed by Perforce Software, Inc. by wiki


Perforce requires at least two executables: the Perforce service (p4d), and at least one Perforce application (such as p4 on UNIX, orp4.exe on Windows). The Perforce service and applications are available from the Downloads page on the Perforce web site: http://www.perforce.com/downloads/complete_list Go to the web page, select the files for your platform, and save the files to disk. pics Windows installation is very easy. Config files and settings can be found and modified: [su_spoiler title="logfiles"] Enabling structured logging To enable structured logging, set the serverlog.file.N configurable(s) to the name of the file. Valid names for structured log files and the commands used to set them are shown in the following table. Note that enabling all structured logging files can consume considerable diskspace. See Structured logfile rotation for information on how to …


Virtual Machine Disks consolidation is needed

Do not forget to delete your old snapshots or you will suffer because of CONSOLIDATION! If you're made that mistake I made, there is solution: https://communities.vmware.com/message/2455176 http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2003638 FUCKING FUCK - I've spent 2hrs for this!

Consolidate virtual machine disk files


OwnCloud usefull commands

Here I'll collect useful commands for OwnCloud

-su apache or webuser

php /path/of/owncloud/console.php files:scan --all

For user: 

/var/www/owncloud/console.php files:scan sharad


But sometimes better to chose option AJAX to scan only specific folder I think.


Perforce - Centos start investigation and install

The Perforce service and applications are available from the Downloads page on the Perforce web site: http://www.perforce.com/downloads/complete_list THIS is not a JOKE! dovakin_p4.jpg


Do not worked for me:

[su_spoiler title="Official"] From here: http://www.perforce.com/perforce/doc.current/manuals/p4sag/chapter.install.html#install.unix Although you can install p4 and p4d in any directory, on UNIX, the Perforce applications typically reside in /usr/local/bin, and the Perforce service is usually located either in /usr/local/bin or in its own server root directory. You can install Perforce applications on any machine that has TCP/IP access to the p4d host. To limit access to the Perforce service's files, ensure that the p4d executable is owned and run by a Perforce user account that has been created for the purpose of running the Perforce service. To start using Perforce:

  1. Download the p4 and p4d applications for your platform from the Perforce web site.
  2. Make the downloaded p4 and p4d files executable.
  3. Create a server root directory …


MySQL how to Alter multiple schema tables

To MyISAM from all InnoDB:

SET @DATABASE_NAME = 'db_name';
SELECT  CONCAT('ALTER TABLE `', table_name, '` ENGINE=MyISAM;') AS sql_statements
FROM    information_schema.tables AS tb
WHERE   table_schema = @DATABASE_NAME
AND     `ENGINE` = 'InnoDB'
ORDER BY table_name DESC;



All about Atlassian JIRA 2.2

THE problem:

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
At least one of these environment variable is needed to run this program

THE investigation:

This occurs when you try to run any bat\sh from the jira base dir. version.bat

THE solution: from here

For my situation, I`ve just add C:\Progra~1\Atlassian\JIRA\jre Right-click the My Computer icon on your desktop and select Properties.

  1. Click the Advanced tab.
  2. Click the Environment Variables button.
  3. Under System Variables, click New.
  4. Enter the variable name as JAVA_HOME.
  5. Enter the variable value as the installation path for the Java Development Kit.
    • If your Java installation directory has a space in its path name, you should use the shortened path name (e.g.C:\Progra~1\Java\jre6) in the environment variable instead.
      Note for Windows users on 64-bit systems Progra~1 = 'Program Files' Progra~2 = 'Program Files(x86)'
  6. Click OK.
  7. Click Apply Changes.
  8. Close any command window which was open …


ADDM Appliance cannot start, tomcat freeze

This problem happend with me after host with ADDM was unexpectedly. After startup system can not load tomcat end stucks on it like:

Starting local Tideway application services
    Starting Security service:                             [  OK  ]
    Starting Model service:                                [  OK  ]
    Starting Vault service:                                [  OK  ]
    Starting Discovery service:                            [  OK  ]
    Starting Mainframe Provider service:                   [  OK  ]
    Starting Phurnace Integration service:                 [  OK  ]
    Starting SQL Provider service:                         [  OK  ]
    Starting vSphere Proxy service:                        [  OK  ]
    Starting CMDB Sync (Exporter) service:                 [  OK  ]
    Starting CMDB Sync (Transformer) service:              [  OK  ]
    Starting Reasoning service:                            [  OK  ]
    Starting Tomcat:

For now I am not sure where problem is and how to catch it, logs does not say anything, or maybe I still not found THAT log. So, the fastest way to get ADDM to work: Load in your appliance from livecd To to init.d and move …


All about Atlassian JIRA 2.1 - Atlassian JIRA "AJiraLockedError" and JIRA Startup Failed

Продолжаем мучать свой мозг новыми сюрпризами от JIRA или это я просто такой неудачник: Причина:

JIRA Startup Failed
The following plugins are required by JIRA, but have not been started:
Atlassian JIRA - Plugins - Gadgets Plugin (com.atlassian.jira.gadgets)
Atlassian Navigation Links Plugin (com.atlassian.plugins.atlassian-nav-links-plugin)
Atlassian JIRA - Plugins - Issue Search (com.atlassian.jira.jira-issue-nav-plugin)
Atlassian JIRA - Plugins - Quick Edit Plugin (com.atlassian.jira.jira-quick-edit-plugin)
Atlassian REST - Module Types (com.atlassian.plugins.rest.atlassian-rest-module)
JIRA Project Config Plugin (com.atlassian.jira.jira-project-config-plugin)
Atlassian JIRA - Plugins - REST Plugin (com.atlassian.jira.rest)
Opensocial Plugin (com.atlassian.gadgets.opensocial)
Applinks Product Plugin (com.atlassian.applinks.applinks-plugin)
Atlassian OAuth Service Provider Plugin (com.atlassian.oauth.serviceprovider)
Embedded Gadgets Plugin (com.atlassian.gadgets.embedded)
Gadget Directory Plugin (com.atlassian.gadgets.directory)
Gadget Dashboard Plugin (com.atlassian.gadgets.dashboard)

Способ из этого моего поста  может быть бессилен. Копаю дальше. Как оказалось, Jira крайне требовательна к ресурсам, жадная тварь! Еще можно попробовать поиграться с настройками: set JVM_MINIMUM_MEMORY=256m set JVM_MAXIMUM_MEMORY=1024m но лучше ставить Jira сразу на центос, меньше гемора потом.