Ana içeriğe atla

Kayıtlar

A Windows Vista tip

I was looking for a solution to a windows vista machine which dont login to a profile. Namely the profile was corrupt and the administrator account was not showing up when then system is started in safe mode. I tried some  suggestions by people on the internet. One of them stated that the administrator account in Vista is hidden to reveal it one needs to write this into a elevated command prompt net user administrator /active:yes Lets see if this helps to start this machine.

Jquery regex selectors

I needed to find some dom elements which have a regex class names in jquery. Jquery is really awesome and people made some precious contributions to it. One of them is James Padolsey's regex selector which is found here . It fit my needs and I used it like this $('a:regex(class,sometext[0-9]*)').each(function(){ grup="'"+$(this).attr('class').split(' ')[0]+"'" ; $(this).colorbox({rel:grup}); }); in binding colorbox to newly inserted items to the page by infinite scroll . All these bold words are names of great jqeury extensions which I have made use of on a page together with another awesome extension masonry . Extensions, extensions,extensions thats the way we build web pages nowadays.

Centos 6 Postgresql 9.1 Install

Today I have changed my mind and decided to begin learning and using Postgresql. On a Centos 6 host there are some ways of installing Postgresql. I have chosen the easy one: use repos. Here http://yum.pgrpms.org/repopackages.php is the official Postgresql repos for Red Hat related distros. I have chosen the x86_64 rpm for Centos 6 and installed it. Later using yum install postgresql91-server I have installed three packages postgresql91,postgresql91-server and postgresql91-libs which is enough for now to start Postgresql 9.1. Using the instructions at /usr/share/doc/postgresql91-9.1.1/README.rpm-dist , I first did service postgresql-9.1 initdb and then service postgresql-9.1 start.Voila! Now let the journey begin! Edit:  Here is another place to look instructions http://www.postgresonline.com/journal/archives/203-postgresql90-yum.html

Eclipse 3.7 PDT on Kubuntu

I have installed Eclipse 3.7 by using repos (universe maybe) and then installed PDT from within Eclipse. I used the instructions on web page http://wiki.eclipse.org/PDT/Installation#Install_a_JVM by adding Indigo update site. It works.Now its time to grab info about Aptana.

Php 5.3 problems

I have stucked with Php 5.3 and Mysql 5.5 packages installed from Remi repo to Centos 5.7 server. So I removed them and decided to use distro's old packages. Now it seems to work fine. I tr to satisfy Yii's requirements. Although the requirement checker says it is installable to my system, I try to provide more requirements for Yii namely, APC,Dom,pdo_mysql etc. As you guess when installing packages (pdo_mysql,APC etc)  with pecl some problems happen. One of them happens when installing APC, the error "make: *** [apc.lo] Error 1". The solution is to install pcre-devel package. I dont think APC is a good optimize, lets use it for the Yii's sake.

Yii journey continues

Since a couple of days I have been geting along with Yii. I follow the instructions from Larry Ullman's page. At first I try nginx as web server, but when url rewriting and session handling I got some problems. I thought it is because of nginx,ie I mean I dont know the right way to fix nginx. Then I started httpd and now trying it.As a requirement of Yii installation, I saw pdo_mysql needs to be installed. Now I try to install it.

Yii Nginx Php FastCgi Url Rewrite Configuration

When you use yii url rewrite feature, actually it is configured for the apache web server. For people like me who uses nginx for web serving purposes one needs to do additional configuration to Yii. Here   is a good blog post which suggests a solution for our problem. After doing this one can get better written urls. Thanks for the info William. Edit: Here is a snippet from Yii CookBook and here is a complete config for Yii,PHPFM and Nginx from Yii's wiki.