вторник, 18 апреля 2017 г.

Recently I have found a really neat vertical accordion in jQuery:
$(document).ready(function(){
$(".accordion-toggle").click(function() {

 
      if($(this).next("div").is(":visible")){
        $(this).next("div").slideUp("slow");
        $(this).children().toggleClass("fa-angle-up fa-angle-down");
      } else {
        $(".accordion-toggle").next("div").slideUp("slow");
        $(".accordion-toggle i").attr("class", "fa fa-angle-down");
        $(this).next("div").slideDown("slow");
        $(this).children().toggleClass("fa-angle-up fa-angle-down");
      }
});
});

понедельник, 27 марта 2017 г.

rsync on Windows with Git Bash 2.x (mingw64)


  1. Download latest MSYS Package
  2. Copy following files from \msys\bin:
    • msys-1.0.dll
    • msys-iconv-2.dll
    • msys-intl-8.dll
    • msys-popt-0.dll
    • rsync.exe
  3. Paste copied files to  "C:\Program Files\Git\mingw64\bin"
  4. Run Git Bash and test rsync:

вторник, 17 января 2017 г.

Public HLAG Prototype Release (v0.2)

HLAG is my attempt to remake a great forgotten game and try to give it another birth.
In additional I working on entire game infrastructure, because nowadays game itself means almost nothing, this is proved by many great games that have been undeservedly forgotten by most of gamers.

Here is YouTube playlist related to this project: HLAG

So here is the link to game launcher:


Instructions:

  1. Download
  2. Unpack into some folder
  3. Execute run.bat


Currently done:

- prototype game client
- test game server
- repository server
- prototype service (serving user related data, updates server, servers list, but functionality for creation of tournaments/championships is implemented and have not consumed by the launcher yet)
- game launcher (connect/host game, edit config, join messaging server, consume players/teams data, servers list, news, user registration)

Public Issue Tracker on Bitbucket

If you have found an issue, please report it here: https://bitbucket.org/Rvach-Flyver/hlag-full/issues

суббота, 6 февраля 2016 г.

React Native Android - Attach. Start. Debug!


One day I decided to learn smth that will enable me to use my knowledge of web-development in mobile-development, so I can just jump in it with minimum effort. And I started to look for such technology:
Cordova should be used when you have already had an existing mobile website which can be exposed as an app, and don't care about smooth animations, integration of the every possible platrofm feature. In that way you don't need developers for each major frontend platform, but only web-developers, that you already have.

React Native should be used when you have a team of React.js (or simply JavaScript) developers, thus enable them to use the same language (and probably framework) for the website, mobile app, and server. It is very good compromise when choosing between Cordowa and Native. 

Native, of cource, should be used when you want the absolute best user experience, latest features of the platform.

This info was found here:
https://www.reddit.com/r/javascript/comments/3wi2ty/cordova_vs_react_native_vs_native_ios_and_android/cxwpydg

пятница, 22 января 2016 г.

Save your eyes on Ubuntu with Cinnamon


Ubuntu with Cinnamon:

set Global Dark Theme mode
  1. Run Tweak Tool
  2. Go to Appearance
  3. Set Global Dark Theme to ON
  4. Set Window to Crux
  5. Set GTK+ to 05-Crunchy-green
  6. Set Icons to Humanity-Dark
Install following themes:
  • 05-Crunchy-green
  • Dark_Void
  • delorean-dark

and configure them:
  • Windows borders: 05-Crunchy-green
  • Icons: Default
  • Controls: delorean-dark
  • Desktop: delorean-dark

Chrome:
download extension Stylish here:
https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe?utm_source=chrome-app-launcher-info-dialog

Krusader:
Import Colors From File (Google Drive :/ Work / Krusader Colors )

Eclipse:

  1. Install Theme Colors
  2. Go to Window - Preferences - General - Appearance:
  3. Set theme: High Contrast; 
  4. Set Color and font theme: Classic Theme.
  5. Go to Color Theme install Dark Visual Studio and choose it.

понедельник, 21 декабря 2015 г.

Java EE - Overview

Terms

RI - Reference Implementation : glassfish.java.net/downloads/ri/
JCP - Java Community Process : work on making decisions of JSR
JSR - Java Specification Request : request for smth

вторник, 13 октября 2015 г.

AIX - filesystem

AIX Logical Volume Manager (LVM)

http://www.datadisk.co.uk/html_docs/hp/aix_lvm.htm

Volume Groups and Filesystems 

Find out the VG.
# lslv hd1
LOGICAL VOLUME: hd1 VOLUME GROUP: rootvg
LV IDENTIFIER: 0007b8420000d9000000011f2491100e.8 PERMISSION: read/write
VG STATE: active/complete LV STATE: opened/syncd
TYPE: jfs2 WRITE VERIFY: off
MAX LPs: 512 PP SIZE: 128 megabyte(s)
COPIES: 1 SCHED POLICY: parallel
LPs: 20 PPs: 20
STALE PPs: 0 BB POLICY: relocatable
INTER-POLICY: minimum RELOCATABLE: yes
INTRA-POLICY: center UPPER BOUND: 32
MOUNT POINT: /home LABEL: /home
MIRROR WRITE CONSISTENCY: on/ACTIVE
EACH LP COPY ON A SEPARATE PV ?: yes
Serialize IO ?: NO
#

How much space is available in the VG?
# lsvg rootvg
VOLUME GROUP: rootvg VG IDENTIFIER: 0007b8420000d9000000011f2491100e
VG STATE: active PP SIZE: 128 megabyte(s)
VG PERMISSION: read/write TOTAL PPs: 599 (76672 megabytes)
MAX LVs: 256 FREE PPs: 282 (36096 megabytes)
LVs: 13 USED PPs: 317 (40576 megabytes)
OPEN LVs: 11 QUORUM: 2 (Enabled)
TOTAL PVs: 1 VG DESCRIPTORS: 2
STALE PVs: 0 STALE PPs: 0
ACTIVE PVs: 1 AUTO ON: yes
MAX PPs per VG: 32512
MAX PPs per PV: 1016 MAX PVs: 32
LTG size (Dynamic): 256 kilobyte(s) AUTO SYNC: no
HOT SPARE: no BB POLICY: relocatable
#

Use chfs command to expand
chfs -a size=3G /home
chfs -a size=3000M /home
chfs -a size=+1G /home
chfs -a size=+500M /home

Mounting an NFS file system explicitly 

To mount an NFS directory explicitly, use the following procedure:
Verify that the NFS server has exported the directory:
showmount -e ServerName
where ServerName is the name of the NFS server. This command displays the names of the directories currently exported from the NFS server. If the directory you want to mount is not listed, export the directory from the server.
Note: The showmount command will not work for file systems that were exported only as NFS version 4 file systems. For NFS version 4, the client can mount the root filesystem for the server and traverse the exported directory structure. Individual exported file systems do not have to be explicitly mounted to be accessed by the client.
Establish the local mount point using the mkdir command. A null (empty) directory that acts as the mount point (or place holder) of an NFS mount must be present for NFS to complete a mount successfully. This mount point can be created like any other directory, and no special attributes are needed.
Type:
mount ServerName:/remote/directory /local/directory
where ServerName is the name of the NFS server, /remote/directory is the directory on the NFS server you want to mount, and /local/directory is the mount point on the NFS client.
On the client machine, type the following SMIT fast path:
smit mknfsmnt
Make changes to the following fields that are appropriate for your network configuration. Your configuration might not require completing all of the entries on this screen.
Note: If the SMIT interface is being used, press the Tab key to change to the correct value for each field, but do not press Enter until completing step 7.
PATHNAME of mount point.
PATHNAME of remote directory.
HOST where remote directory resides.
MOUNT now, add entry to /etc/filesystems or both?
/etc/filesystems entry will mount the directory on system RESTART.
MODE for this NFS file system.
Change or use the default values for the remaining entries, depending on your NFS configuration.
When you finish making all the changes on this screen, SMIT mounts the NFS file system.
When the Command: field shows the OK status, exit SMIT.
The NFS file system is now ready to use.

SOURCE: https://www-01.ibm.com/support/knowledgecenter/ssw_aix_71/com.ibm.aix.networkcomm/nfs_mounting_xplicit.htm