Stránky

Wednesday, April 18, 2012

Avatar Cloud

When this exception pops up: WARN (OpenMetaverse:0) - Failed decoding wearable asset


There is probably problem with default shapes.

Recreate shapes.

Friday, April 13, 2012

How to delete all .svn folders on mac

find ./ -name ".svn" | xargs rm -Rf From: http://www.techiecorner.com/154/how-to-delete-all-svn-folder-in-linux-mac/

Friday, May 20, 2011

Free Convert Multiple Image to EPS on Mac

First download and install the ImageMagick. It installs the great convert commmand line utility.

Then run following script in the terminal, in the image directory (change appropriate extension)

for i in `ls *.png | sed -e 's/\.[a-zA-Z]*$//'`; do convert $i.png $i.eps; done

DONE

Wednesday, October 27, 2010

Setting Up Open Sim for 3x3 island

Create 3x3 island: http://opensimulator.org/wiki/Detailed_cross-region_terrain_making

Example configuration


; 9 Simulator 3x3 Mega-Region Example
; Supply a unique UUID for each region
; Unique InternalPort for Each Region
; Ensure you put your MasterAvatar UUID
;
;************************************************
[RegionName_W]
RegionUUID = 12982064-f6bf-4cff-8b3e-e53054fe5d93
Location = 5000,5001
InternalAddress = 0.0.0.0
InternalPort = 9900
AllowAlternatePorts = False
ExternalHostName = SYSTEMIP

[RegionName_SW]
RegionUUID = 12982064-f6bf-4cff-8b3e-e53054fe5d92
Location = 5000,5000
InternalAddress = 0.0.0.0
InternalPort = 9001
AllowAlternatePorts = False
ExternalHostName = SYSTEMIP

[RegionName_NW]
RegionUUID = 84b41485-6884-412d-b4a2-2f6941559924
Location = 5000,5002
InternalAddress = 0.0.0.0
InternalPort = 9003
AllowAlternatePorts = False
ExternalHostName = SYSTEMIP

[RegionName_S]
RegionUUID = 12982064-f6bf-4cff-8b3e-e53054fe5d95
Location = 5001,5000
InternalAddress = 0.0.0.0
InternalPort = 9004
AllowAlternatePorts = False
ExternalHostName = SYSTEMIP

;************************************************
[RegionName_Centre]
RegionUUID = 12982064-f6bf-4cff-8b3e-e53054fe5d96
Location = 5001,5001
InternalAddress = 0.0.0.0
InternalPort = 9005
AllowAlternatePorts = False
ExternalHostName = SYSTEMIP
;************************************************
[RegionName_N]
RegionUUID = 12982064-f6bf-4cff-8b3e-e53054fe5d97
Location = 5001,5002
InternalAddress = 0.0.0.0
InternalPort = 9006
AllowAlternatePorts = False
ExternalHostName = SYSTEMIP
;************************************************
;
[RegionName_SE]
RegionUUID = 12982064-f6bf-4cff-8b3e-e53054fe5d98
Location = 5002,5000
InternalAddress = 0.0.0.0
InternalPort = 9007
AllowAlternatePorts = False
ExternalHostName = SYSTEMIP
;ScopeID = 00000000-0000-0000-0000-000000000000
;
;************************************************
[RegionName_E]
RegionUUID = 12982064-f6bf-4cff-8b3e-e53054fe5d99
Location = 5002,5001
InternalAddress = 0.0.0.0
InternalPort = 9008
AllowAlternatePorts = False
ExternalHostName = SYSTEMIP

;************************************************
[RegionName_NE]
RegionUUID = 12982064-f6bf-4cff-8b3e-e53054fe5d10
Location = 5002,5002
InternalAddress = 0.0.0.0
InternalPort = 9009
AllowAlternatePorts = False
ExternalHostName = SYSTEMIP
;************************************************

Monday, July 19, 2010

Installing ASP.NET with Mono on MAC

There are many partial tutorials on how to install ASP.NET on Mono in Linux machines but only few deal with problems that appear when trying to install this on Mac machine. The tutorial assumes that you have Apache 2.x installed somewhere on your machine. Below you'll find a small tutorial along with troubleshooting on mentioned issue.

  1. Download Mono from http://www.go-mono.com/mono-downloads/download.html
  2. Download xsp server and mod_mono from http://ftp.novell.com/pub/mono/sources-stable/. The xsp is simple server that is able to run .NET and mod_mono is an apache module that runs .NET
  3. Install Mono
  4. Install xsp
    1. Unzip xsp and locate the directory in your terminal
    2. Type:
      1. ./configure
      2. make
      3. sudo make install
    3. Troubleshooting: pkg-config does not exist on your machine. Install Darwin ports and then follow directions given here: http://pkgconfig.darwinports.com/. After install make sure that path to "port" installation is added to the $PATH variable.
  5. Install mod_mono
    1. Unzip mod_mono and locate the directory in your terminal
    2. Type:
      1. ./configure
      2. make
      3. sudo make install
    3. Check, where the mod_mono.conf has been installed
    4. Find your httpd.conf (on Snow Leopard by default it is located in /private/etc/apache2/httpd.conf also the mod_mono.conf should be located in the same directory)
    5. Edit httpd.config (sudo nano /private/etc/apache2.conf) and insert following line:

      Include /private/etc/apache2/mod_mono.conf
    6. Restart apache by typing:

      sudo apachectl restart
    7. Troubleshooting: Sometimes, when you try to view the .aspx page the server becomes unresponsive and you'll get: Service Temporarily Unavailable error. If you check your apache error log (/private/var/log/apache2/error_log) most probably you'll find following error there:

      Cannot open assembly '/usr/lib/mono/2.0/mod-mono-server2.exe': No such file or directory.

      The problem is, that system tries to search for default (Linux) installation directory. You need to modify again the httpd.conf file and insert following line:

      MonoServerPath /usr/bin/mod-mono-server

      Make sure that contents of /usr/bin/mod-mono-server are pointing to the correct installation of the Mono on your machine (e.g.:  
      exec /Library/Frameworks/Mono.framework/Versions/2.6.4/bin/mono $MONO_OPTIONS "/Library/Frame...
      )
  6. You are reday to go!

Well, I hope you've found this tutorial usefull. If so, drop me a message! :)

Tuesday, July 13, 2010

Running Java Web Server on port 80 as standard user using port forwarding (MAC OSX)

When I tried running my Java Web Server (com.sun.web.server) on standard port 80 I kept receiving following error:

Can not start endpoint on null:80 due to exception java.net.BindException: Permission denied

The problem is that on UNIX-type operating systems, only user root may bind to listen on port 80. All other users are considered non-privileged and they cannot bind to that port [1]. Web server standardly runs on port 8080. The solution is either run the web server as root (BLEH) or try something different. In the described solution we are forwarding all requests on port 80 to port 8080. To set up port forwarding we will be using ipfw. 

First, we forward local requests from port 80 to port 8080:

sudo ipfw add fwd 127.0.0.1,8080 tcp from any to 127.0.0.1 80 in



The syntax of this command is somehow confusing. What this says is, "if tcp packets come (from anywhere) destined for port 80 on 127.0.0.1, forward those packets to port 8080 on 127.0.0.1". [2]

Then, if needed, we forward all outside requests for port 80 to 8080:

sudo ipfw add fwd 127.0.0.1,8080 tcp from any to [hostname] 80 in

For solution on Linux search for iptables. A sample solution can be found here: Running network services as a non-root user.

DCC 2010 Conference and Shape Grammar Workshop

On Sunday 11th of July I have attended a workshop dedicated to Shape Grammar Implementation: From Theory to Useable Software. This workshop was part of the DCC 2010 conference.  I was given a possibility to present our Shape Grammar Interpreter that we have been working on past few moths and finally get some feedback directly from the shape grammar community. In general our software was very well accepted and we have also raised an interest in our current line of research where we use shape grammars in generating 3D virtual worlds. We plan on contacting Scott Chase as he in undergoing similar research. Later, we have agreed with Iestyn Jowers from University of Leeds to join efforts and create a full version of the Shape Grammar Interpreter that will be able to process rectilinear shapes as well as curves. For this purpose we plan on hiring some master student that would be willing to devote himself in this project. All along, this conference was a great success and hopefully we will reach the general shape grammar interpreter soon.