Friday, December 23, 2011

Microsoft Exchange on HP Touchpad

I know that I have not been the only one to have trouble setting up Microsoft Exchange email on the HP Touchpad so I wanted to give my quick solution which I saw only once in all the threads that I read.

When you want to set up MS Exchange, you have to know the server's address first of all. I don't want to explain ho to get that now but I will be happy to help anyone who needs it. When I set up my account the trick was to not type in anything for the domain and instead of typing just my username in the username field, I typed my whole email address.

Simple solution but it worked. Feel free to ask for more help if you need it.

Enjoy WebOS,

Hermann

Wednesday, December 7, 2011

Copy folder with Ubuntu smb client

The smb client for Ubuntu is easy enough to use; however I searched for quite a while before I found the exact syntax for the command to copy whole directories instead of just files. I have done this a couple of times now but have never documented it so I figured I should for future reference.

I also feel that the previous times I might have done it a different way so I wouldn't be surprised if some of you can suggest yet another way to accomplish this.

What I used was this (at the Ubuntu terminal).

(My Users folder under my C:\ drive was shared from my Windows machine)

smbclient //192.168.1.2/Users
cd <the directory path of the parent folder of the directory that you want to copy)
recurse (this is so that smb recursively copies all subdirectories and files)
mget <the folder that you want to copy>


You can either use the statements separately in the order provided above or you could use it in one statement as in the following example:

smbclient //192.168.1.2/Users -N -c 'prompt;recurse;cd Hermann\Downloads\;mget "New Movie"'

The above line will get the "New Movie" folder from the machine specified by the IP address.
The -N parameter: this parameter suppresses the normal password prompt from the client to the user
The -c parameter: this parameter specifies that a command to be executed will follow. It is very useful in scripts

Finally I have it documented :)

Let me know if I can be of more assistance!

Thanks,

Hermann



Saturday, December 3, 2011

mpg123 and mpg321 in Ubuntu

I have recently been experimenting with Ubuntu quite a bit. The terminal in Ubuntu is just so powerful and there is really an unlimited number of things that you can do. If you have ever tried to get cron to do your dirty work for you, you would have realized that command line apps just work much easier since if you use GUI apps you would have to manipulate the DISPLAY variable in order for cron to be able to handle the application like you want.

For playing back audio, mpg123 and mpg321 are excellent, simple-to-use, apps. They can do all the basic things like open mp3 files, play lists and even urls. One drawback it seems like is that at this time they don't support an extensive number of formats.

One thing that I thought might be of help to someone is that when you create play lists, make sure that the file contains only the file names of the songs separated by line feeds. (Every file name on a new line). Also do not use "" tags around folders or files that contain spaces in the file names. Just type them as they appear.

You can then play the play list using mpg123 -@ playlist

Enjoy,

Hermann

Thursday, December 1, 2011

New Design

Guys,

I am currently redesigning my blog; however I don't always seem to have the time to finish the design from start to finish so I apologize for any weird layouts that you guys might see in the following couple of weeks.

I think that the end product will be worth it though :)

Hermann

Sunday, November 13, 2011

telnet, openssh, spc Ubuntu to Windows

I am currently doing some research on different technologies to use for controlling one machine from another or do things like copying files and folders between different machines that are on a network. In particular I am interested in different technologies that work well between Windows and Linux machines.

I was quite surprised that after struggling for quite some time last night I was still unable to copy files from a Windows machine to a machine running Ubuntu, attempting to use scp from the Ubuntu machine in order to get some files. I am sure many people will read this hoping to find the answer to the problem; however as of right now, I don't have an answer for you if you are attempting to access the Windows machine from Ubuntu and trying to copy the files and folders from the Windows machine to Ubuntu.

Fortunately I am on a home network and my network is secure and behind a firewall so I have been able to use the samba client in Ubuntu.

The samba client is pretty straight forward to use. I am not in front of my Ubuntu machine right now, but I will try to get the syntax right in the example. In my case I shared the C:\Users folder on my Windows machine. One the Ubuntu machine we can then do something like:

smbclient //192.168.1.2/Users -k -c "get file.txt"

This command will get the "file.txt" file from the C:\Users directory on the Windows machine and put it in the current working directory. This is just a basic example; however there is an excellent resource here.

Also, as always, feel free to let me know if I can be of any more assistance :)

Thanks,

Hermann

Tuesday, November 8, 2011

Microsoft Dynamics GP database schema

Hi guys,

I came across a pretty good explanation of the Dynamics GP database schema (which I am sure has had a lot of you scratching your head.

Please read more about it at the link below:

http://accountingbot.com/wordpress/?p=68

Let me know if I can be of more help.

Thanks,

Hermann

Tuesday, November 1, 2011

maxJsonLength error message

I have run into the following error message on a MS Sharepoint site more than once now and I figured it might be helpful to document it. I ran into this using PerformancePoint Dashboard Designer so my description will be relevant to that.

Exception Details: System.InvalidOperationException: Error during serialization or deserialization using the JSON JavaScriptSerializer. The length of the string exceeds the value set on the maxJsonLength property.

This has to do with a setting in your web.config file.

For example the following setting restricts the json string length to 50000
<jsonSerialization maxJsonLength="500000">


Although it is not recommended that you change this setting, you could change it. Generally when this error is thrown, it means that you are doing something like trying to display too many members in a chart, or at least trying to filter a set containing too many members. Since behind the scenes the MDX still has to initially work with the whole set before filtering it, you are likely to still run into this problem even when you think that it should not cause an error.


Make sure that your filters are not passing too many members to handle, to the charts for instance.


Hope this helps a bit.


Give me a shout if you want me to be more specific.


Happy coding,


Hermann