Tuesday, June 7, 2011

Opensolaris: Firefox After Update


After update Firefox report this error:

“Could not initialize the application’s security component. The most likely cause is problems with files in your application’s profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the application and fix the problem. If you continue to use this session, you might see incorrect application behaviour when accessing security features.”

To resolve this just delete file cert8.db in Firefox profile folder (/export/home/username/.mozilla/firefox/something.default, replace username with username and something with profile folder name)

MSSQL: Optimize Table(s) (Like in MySQL)

To optimize one table in database:

ALTER INDEX all ON [table name] REORGANIZE
exp.:
ALTER INDEX all ON people REORGANIZE

To optimize all tables in entire database:
USE [databaseName]
EXEC sp_MSforeachtable @command1="ALTER INDEX all ON ? REORGANIZE"

or

EXEC [databaseName].dbo.sp_MSforeachtable @command1="ALTER INDEX all ON ? REORGANIZE"

This works only in MSSQL 2005 and later.

It is not the same as MySQL optimize.

Friday, March 4, 2011

VSFTPD CentOS

  1. Install vsftpd:
    # yum install vsftpd
  2. To start after reboot:
    # chkconfig vsftpd on
  3. Edit /etc/vsftpd/vsftpd.conf:
    anonymous_enable=NO
    chroot_local_user=YES
    userlist_deny=NO
    userlist_enable=YES
    userlist_file=/etc/vsftpd/vsftpd.user_list
  4. Edit or create /etc/vsftpd/vsftpd.user_list and add usernames with read write permissions
    user1
    user2
  5. Add ftp user:
     # /usr/sbin/useradd -g 50 -p password -s /bin/false -d /var/www/html/folder/ user1
  6. Set folder owner:
     # chown -R user1.apache /var/www/html/folder/
  7. Set shell:
     # chsh -s /sbin/nologin user1
  8. Configure SELinux:
     # /usr/sbin/setsebool -P ftp_home_dir 1
     # /usr/sbin/setsebool -P allow_ftpd_full_access 1
  9. Configure iptables to open port 21
This will prevent errors if permissions of folders sets correctly (530 login incorrect, 553 Could not create file, 500...) 

Friday, January 14, 2011

OpenSolaris 2009.06 update to 134b Virtual Box problem

If you see this message after reboot:

failed to update state of instance svc:/application/ x11/xfs:default in repository

just login in terminal mode and remove VBox guest addon package:

#pkgrm SUNWvboxguest

Reboot, and install VBox guest addon again.

Monday, April 12, 2010

Sunday, December 13, 2009

HOĆU DA RECIKLIRAM...

... ali nemam gde.

Saturday, July 11, 2009

CA Surface

Video created with Fun3D, converting 'cellular automata' structure based on Conaway Game of Life, in ISO surface conecting 'live' cells.

Thursday, April 2, 2009

Friday, January 23, 2009

Paint Chat

Napravio sam malu zanimaciju zvanu Paint Chat. To je flash aplikacija za chat crtanjem.

Link: http://sheis.clanteam.com/whiteboard/paintChatF1.html
ili http://tesla.rcub.bg.ac.yu/~sheis/whiteboard/paintChatF1.html

Tuesday, October 7, 2008

Fun3D video export

Fun3D sada ima i video export opciju koja podrzava sve video codec-e instalirane na racunaru, kao i razlicite rezolucije i mogucnost menjanja FPS-a.

Friday, September 5, 2008

Fun3D kao 'Open Source' projekt

Kao i mnogi drugi free hostinzi http://fun3d.dotnetnuke4.com se pokazao nepouzdanim i pored svog fancy izgleda. Zato sam odlučio da Fun3D projekat preselim na adresu pod okriljem Google-a koji verovatno neće tek tako nestati.

Dakle, pokrenuo sam Fun3D Open Source projekat na adresi:

http://code.google.com/p/fun3d/

Na ovoj adresi, moguće je preuzeti najnoviju verziju programa. Takodje, svako ko želi da učestvuje u projektu je dobrodošao.

Trenutno radim na izradi help-a u samom programu kao i na uklanjanju manjih bagova, tako da se dokumentacija projekta može očekivati uskoro.

Saturday, August 16, 2008

Fun3D Web Site

Kreirao sam web sajt posvećen programu Fun3D. Na sajtu će biti objavljivane sve informacije, novosti, kao i tutoriali u vezi sa Fun3D. Na sajtu možete skinuti i poslednju verziju programa.

Web Adress:
http://fun3d.dotnetnuke4.com/

Thursday, August 14, 2008

Fun3D

Istražujući Visual Basic mogućnosti u 3D grafici, napravio sam program za matematičko ispitivanje prostora. Program je prerastao igranje u VB i sada predstavlja ozbiljnu aplikaciju za kreiranje površina i kriva u prostoru, kao i celularnih automata.


Program je uspesno korišćen u nastavi na Arhitektonskom fakultetu u Beogradu.


Download page:

http://www.arh.bg.ac.yu/code/navigate.asp?Id=2546



Screenshot:



U sledećem postu, malo više o programu.