суббота, 31 августа 2013 г.

IMSH - Image Processing learning shell

I have been started new public open source project: IMSH for studying image processing. This is the SIOD Scheme based shell with several test purpose scripts. All algorithms are C coded and Scheme scripts are used to drive and test C algorithms which now are:
  • Black and White
  • Greyscale
  • Negative
  • Convolution Matrix
  • Channel Mask
  • Greyscale Approximation
  • Pixalization
  • Median filter
Wiki of project and repository are available on public/free Fossil hosting: http://chiselapp.com/user/p4v31/repository/imsh/home

воскресенье, 25 августа 2013 г.

Portable Vim (from portableapps.com) and Tools

If you use portable Vim/GVim as PortableApps.com package and want to use external tools (ctags, uncrustify, astyle, global/gtags, so on) you can setup your paths (to tools executable files) based on $HOME variable. For example lets set folder of all tools:
let TOOLSDIR=$HOME . "/vimfiles/tools"
because HOME is setted in gVimPortable/App/AppInfo/Launcher/gVimPortable.ini:
[Environment]
VIM=%PAL:AppDir%\vim
VIMRUNTIME=%PAL:AppDir%\vim\vim74
HOME=%PAL:DataDir%\settings
LANG=%PAL:LanguageCustom%
Also you can add there any other environment variables to use them in vim config file.
I usually create there - in settings/ - "tools" directory and make there "ctags", "astyle" and other folders with my external tools binaries, config files, etc...
Now you can make something like:
" Beautifiers.
exec ':cabbr astyle ' . TOOLSDIR . '/astyle/astyle.exe --options=' . TOOLSDIR . '/astyle/.astylerc'
exec ':cabbr uncr ' . TOOLSDIR . '/uncrustify/uncrustify.exe -q -c ' . TOOLSDIR . '/uncrustify/uncrustify.cfg'
for your beautifiers. Select code fragment (or all text in file) and type :!astyle for example, to see how it works.

четверг, 15 августа 2013 г.

Android/smartphone hardware/software info

If you wanna get info (hardware configuration, software versions, memory info, etc.) you can do:
  1. "tap" top bar with "tray icons" down and then "Settings"/"About" and any info item what you see there;
  2. second way is more informative, but you should install additional FREE Application, ES File Explorer which is very usable (to manage all your files and folders even system - full control!). After install it, open application, go to root folder ("/") then "click" on "proc" folder and now you can open any file containing system info in standard Linux "/proc" (select "Open As Text" then with "ES Note Editor" after clicking on a file). You can see there interesting files like "cpuinfo", "version" and so on...