Konverze kódování souboru (Powershell)

Dnes jsem potřeboval překonvertovat pár souborů z kódové stránky Windows-1250 do něčeho rozumného (tedy do UTF-8 :)) a rozhodl jsem se napsat si na to nějaký skript v PowerShellu. Kupodivu se mi to v “čistém” Powershellu nepodařilo – pracuji totiž na US Windows (CP-1252) a nepodařilo se mi Powershellu vnutit jinou kódovou stránku. Ani příkaz …

Continue reading ‘Konverze kódování souboru (Powershell)’ »

File code page conversion (Powershell)

Today I needed to convert few files from Windows-1250 code page to something reasonable (which means UTF-8 :)) and I decided to write a Powershell script for it. Oddly enough, I was not able to do that in “pure” Powershell – it’s because I work on US Windows (CP-1252) and I didn’t succeed in imposing …

Continue reading ‘File code page conversion (Powershell)’ »

AX2012: Události (II)

V předchozí části jsem ukazoval, jak umístit volání nějaké akce před nebo za určitou metodou. Dnešní článek popisuje jiný přístup k událostem, mnohem bližší událostem třeba v C#. Programování řízené událostmi je v podstatě o tom, že jedna část aplikace vyvolává událost (třeba “tlačítko stisknuto” nebo “záznam změněn”) a jiná část nebo části programu tuto …

Continue reading ‘AX2012: Události (II)’ »

AX2012: Events (II)

In the previous part I showed how to place a call of some action before or after a particular method. Today’s article describes another approach to events, much closer to events in C#, for instance. Event-driven development is basically about having one part of an application raising an event (e.g. “button clicked” or “record modified”) …

Continue reading ‘AX2012: Events (II)’ »

AX2012: Table relations

Today I finally got down to the New, Changed, and Deprecated Features for Microsoft Dynamics AX 2012 e-book and the very first topic – Table relations – forced me to explore it a bit closer. The main difference is that relations aren’t defined on data types anymore, they’re defined on tables only. Nevertheless a data …

Continue reading ‘AX2012: Table relations’ »