16 July 2009

First post via mail about Dynamics AX

If you need a special Dimension from the Dimensions Table a very easy
way to get it would be a new EDT as shown in the screenshot which has
a normal relation to Dimensions.Num and a fixed value for the
Dimensions.DimensionCode. This will give you all Values for a special

15 July 2009

Transfer Files to remote desktop (mstsc)

The remote desktop feature of windows (>= xp) allows to control remote pcs. If you're in the need to transfer files to this machine a real easy way would be to mount a local drive into the remote machine.
  1. Run mstsc
  2. Enter IP or name of the computer you want to connect to
  3. Click Options and select the Local Resources tab
  4. Select the Disk Drives ou need
  5. connect/logon
  6. Open the Explorer on the remote machine and there you have the drive from your local machine

HttpWebRequest mit C#

If you want to send data to a website or a webservice the following code should help. If you're using a webservice don't forget the security.
using System.Net;
using System.IO;
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("URL");
request.Method = "POST";
string parameter = "title=" + title.Text + "&" + "text=" + text.Text;
byte[] byteArray = Encoding.UTF8.GetBytes(parameter);
request.ContentType = "application/x-www-form-urlencoded";
request.ContentLength = byteArray.Length;
Stream dataStream = request.GetRequestStream();
dataStream.Write(byteArray, 0, byteArray.Length);
 HttpWebResponse response = (HttpWebResponse)request.GetResponse();
 if (response.StatusCode == HttpStatusCode.OK)
  dataStream = response.GetResponseStream();
  StreamReader reader = new StreamReader(dataStream);
  status.Text += reader.ReadToEnd();
  status.Text = "Error";
catch (Exception ex)
 status.Text = ex.Message;

Syntax Highlighting

First and very important step for posting code is to get a good highlighting. So let's try SyntaxHighlighte
  1. Download SyntaxHighlighter and unpack it
  2. Upload to a webspace somewhere in the worldwideweb
  3. Include the css and the js code into yout site
    If you are using Blogger go to Layout -> Edit HTML

in the head of the page

at the end of the page

Thats it! To try if everything is working as expected just post something like

code code code

My first Post

Yes I got a new blogger Blog. Real easy to create. Don't know what to write - Maybe i should start posting interessting stuff with real content?

Maybe a piece of code:

thisDate = DateTimeUtil::date(project.DateTimeTo);