Cannot add diagram to SQL Server 2005 DB: Database diagram support objects cannot be installed because this database does not have a valid owner.

I was having same problem which explained in tha linked page. but this page did not solve my problem. how I solve this issue:
1- download sql management studio express
2- in the tree open security node and right click on “sa” user and enable “sa” login.
after that I easily design my database in diagram.

Cannot add diagram to SQL Server 2005 DB: Database diagram support objects cannot be installed because this database does not have a valid owner.

Applet Sign / Applet imzalamak

uzun süredir ingilizce yazmaya uraşırken iyicede boşlamışdım blogu. zatende muhim bişe yokdu yazcak bugün ilk defa bir appleti imzalamam gerektiğini gördüm. applet bir oyun appleti. ve bir soket açıp servera bağlanması gerekiyordu. lokalde çalışan jar dosyası siteye koyunca exception atar oldu. security exception not allowed falan ulan noluo hani çalışıodu bu bende. anadımki soket açıcak dosya okicak yazcak yani IO işi yapcak bi appletse sign edilmesi gerekirmiş. aradım güzel doc yok bu yazdığımda çok resmi ve açıklayıcı olmicak ama ben olayı şöyle çözdüm.

1. adım jdk ile gelen keytool.exe ile bir key oluşturmalı
2. adım jarsigner.exe ile imzalamak(sign) istediğimiz jarı imzalıoz.

örnek komutlar:

C:Program FilesJavajdk1.6.0_04bin>keytool -genkey -validity 99999 -alias signTavlaFiles1 -keystore compstore -keypass kpi135 -dname “cn=Özkan Pakdil” -storepass ab987c

C:Program FilesJavajdk1.6.0_04bin>jarsigner -keystore compstore -storepass ab987c -keypass kpi135 -signedjar TavlaApplet.jar TavlaApplet1.jar signTavlaFiles1

benim aklıma takılan bi “validity” konusu oldu normalde bu parametreyi vermezseniz 6 aylık sign edio warning verio. keyfime tavlaappleti buldum oynuom bunun içinde para vermenin ne alemi var ama dimi 🙂 garip millet nerden sikceni şaşmış.

server client programming

here is the deal about the server client programming which is port numbers and their limit its about 65 thousands. I know its not a really big number about if you are planing to serve counts more then 65 thousands.

here is the solutions about it. iocp and p2p networking. I am reading both of those big topics. I think if you are planing to do something big p2p will be the real solution. at least throwing bandwidth of the server to client its easy way to go with p2p. I read jxta and I can say that its absolute solution about java and server part. there are some problems about .net and c# part but. in developing games in this situation its acceptable to build a applet for it 🙂

pg_restore

I know its been a long time I have not write anything. because I have not learn or done any new things. I dont want to write regular meaningless blogs here. anyway today I tried to restore a pg_dump out file to another postgresql server.

that pg_restore looks nice but in first try it started print lines of the file that was strange. at the end I learned that if we give the name of the database it will restore data to there. otherwise it works like scanner for a dump file.

here is the command: pg_restore -d dbName backupFileName

after that it does not print anything to stdout just starts restoring the data. if anyone knows how to show which table is being restored in that time that would be nice. because now I am cleaning some useless data with pgadmin manually.

Kubuntu Java And Eclipse

I have 3gb ram and p4 2.6 cpu and 8400gs nvidia video card but I was still having gui freezing eclipse problems. in this morning I started digging talk with my friends and read forums about the performance problem. now I am freely telling you if you have eclipse which works really really slow. you need to install sun java. not gij or blacksmart or anything. sun works well and eclipse gui does not freeze anymore.

Amarok and Last.FM

I dont know what is the deal between them but I love this ability of Amarok. you give your last.fm user name and password to amarok and choose one channel and it starts playing songs one by one and I can say I like this or ban this. lovely kde and beautiful amarok.

there is only one problem about this. sometime quality of the stream changes and sound volume changes too. not a big bug but annoying.

anyway its been a long time I have not used linux for desktop this is good.

for loop problem in IE

I was coding some small javascript which should change the tab and modify some color and stuff and load some rss from somewhere its no big deal. somehow code worked in firefox but not in ie7. first I tought I manage to broke variables and naming. look at the code:

function ChangeTab(id,title){
for(k=1;k<4;k++){
if(k==id){
// section 1
}
else
{
// change like it did not choosed
}
}
}

its the simplest code ever. but somehow in ie it did not throw any debug dialog or any error at all. it was breaking the for loop “section 1” if it goes in there. here is the solution:
function ChangeTab(id,title){
for(var k=1;k<4;k++){
if(k==id){
// section 1
}
else
{
// change like it did not choosed
}
}
}

looks like no difference isnt it 🙂 look closer. ie’s javascript engine wants that k has to be declared there strange very strange. because normally ie can handle this small things. anyway what is the lesson from here. never trust ie 🙂

alexa

I don’t know what is going on but there is strange things happening about Alexa these days. I have been buying some text links for seo for Google but some how my site loosing its score from Alexa its simply impossible because traffic going up. but when I see that Google ranked as 4. in Alexa top list I understand that there must be some thing going on Alexa. I dunno what its yet. it may be changing its algorithm or something. but it effects even Google. think about it…..