2012/11/30

Powershell highlighter for AkelPad (Coder plugin)


Powershell files highlighter for AkelPad with Coder plugin installed. Includes all standard plus Windows8 and Exchange 2010 cmdlets.
1. Save this to a file as "%Akelpad%\AkelFiles\Plugs\Coder\ps1.coder"
2. Open any "*.ps1" file by AkelPad
3. Profit!

2012/10/04

Нет, сынок, это фантастика)

Galaxy Note JellyBean


Install volume deduplication from Server 2012 to Windows 8

Server 2012  has a great feature - Deduplication. It can be very effective to optimize storage and reduce the amount of disk space consumed—50% to 90% when applied to the right data. Cause Windows 8 has a Hyper-V 3 too, deduplication will be very usefull for VM vhd storage volume. This is my VM folder example:

And this example taken from Windows 8 =) So, it's possible to install deduplication service to Windows 8 with one caveat - it'll have no GUI. Only possible way to manage it - is Powershell.

2012/04/05

Asterisk sync with Active Directory

In my case, all users information is stored in AD (yes, we use Exchange GAL). It'll be great if asterisk get this information directly from AD without need in configuration editing.

Let's look what we have now:
AD user have fields 'telephoneNumber' - for internal extension number, 'fax' - for direct inward dialing number (DID) like this:


2012/01/05

Reading PDF in landscape mode on Kindle Touch

Current version of firmware for Kindle Touch lacks support of landscape mode. WTF! There is jailbreak already, but no any lanscape hack. What will be very usefull for reading pdf. So, if there is no way to make it directly on Kindle, we will make it for Kindle)
I'm use k2pdfopt like this:
k2pdfopt.exe -col 1 -j 0+ -ls -ui -fc- -odpi 130 -h 711 -w 521 -om 0 -cmax 1 -s- -rt 0 -mb 0.7 %1

Let's look at them in detail:
  • -col 1 - means that there is no need to find any columns in text. If you have tables, this will helps to not break them to columns at new pages
  • -j 0+ - tries to justification text left
  • -ls - rotate page to landscape
  • -ui - run UI for making additional tuning before converting
  • -fc - don't fit columns to width
  • -odpi 130 - slightly zooming of input file
  • -h 711-w 521 - width and height of screen zone for displaying pdf. There is table for other readers.
  • -om 0 -disable output margin, Kindle Touch already has margin about 10px near pdf displaying zone
  • -cmax 1 -s- - disable increasing of contrast and sharpening. This makes fonts looks more like ClearType, with soft edges.
  • -rt 0 - disable auto determination of source orientation
  • -mb 0.7 - cut bottom margin of source in inches. This is for cutting original footer with page number etc on every source page.
  • %1 - name of source pdf
You can save this as .cmd file, and drag'n'drop your pdf files over.
Examples of source:

and 2 pages of zoomed output: