November 05, 2011

How To Reset Unity in Ubuntu-11.10 .

November 05, 2011 0
Today I installed Ubuntu-11.10 and I was playing around with Ubuntu, trying different themes, different engines, different window managers,file-managers(dolphin-one of my favorite), etc.
After installing CompizFusion, I started playing with themes and bymistakly, I removed my unity-panel.
So there was no shortcut to run app with "Alt+f2" key.
Thank god,I had installed Awn-dock , then I started firefox and googled about it and finally I did reset my unity2d settings to default.

Reset Unity
If you want to reset Unity (this will only reset the Unity settings in CompizConfig Settings Manager and leave the other CCSM settings intact), open a terminal (or press ALT + F2) and enter:
$ unity --reset
Reset Unity Launcher icons
$ unity --reset-icons
Here are some useful links which is more about " Customization "
Install Docky
Docky will be added under Accessories in the Applications menu.
$ sudo add-apt-repository ppa:docky-core/ppa
$ sudo apt-get update
$ sudo apt-get install docky

*If i will find some more interesting links,i will post here .
Read more...

September 08, 2011

How to add django-color-schemes in KomodoEditor ?

September 08, 2011 0
I'm using komodo6.1 with dark colour scheme for my django-python coding,I've tried to make many different schemes manually but all no-one can excites me to use then i googled about "django-python colour theme for Komodo Edit".

I came across the  "KolorModo.com" site and I like DjangoInspire theme on KolorModo. I love the color combination and the background because it looks like django's theme.This Site has lots of colour schemes are available.

I downloaded the "djangoinspire.ksf" file,this themes looks like below,


To install it on your Komodo Edit,

1. Download the file from "KolorModo/djangospire"
2. Save the djangoinspire.ksf file.
3. Copy the file to Komodo’s application data folder for you account.
For Windows XP >
C:\Documents and Settings\<username>\Application Data\ActiveState\KomodoEdit\\schemes
4. For Linux >
$/home/<username>/.komodoedit/<version>/schemes/
5. Start Komodo Edit.
6. Go to Edit -> Preferences -> Fonts and Colors then select a scheme from the dropdown menu
7. Enjoy.
Read more...

August 12, 2011

Simple way to get the "facebook message stream" on "Google+" .

August 12, 2011 0
Get the facebook message stream on google plus.

Download the extension Click here
For Google-Chrome Chrome extension
It's simple, easy to set up.
This extension support Internet Explorer 7+, Firefox 3.5+ and Chrome.
Install the extension and restart the WebBroser,you will get the "Facebook" button on Google+.

Here is my G+ account snapshot .
















Tutorial video from CrossRider


To get more information Click here


Read more...

June 13, 2011

Django-nonrel with mongoDB

June 13, 2011 2
Hi friends , I'm working with Borgets Solution. Recently I made a simple application on Django-nonrel with backend mongoDB.
Django-nonrel is an independent branch of Django that adds NoSQL database support to the ORM.Read more about the django-nonrel Django-Nonrel ...
I feel its somewhere bit complex to configure mongodb as backend on "Django-Nonrel" and make "Django-Administration" working.
lets start.

Installation


If you like to use Virtual-environment , then you can use it . Install pymongo
You need setuptools for installing pymongo , dont worry dunring installation of Pymongo , autamatically setuptools should be downloaded .
  • Download pymongo
    extract pymongo.tar.gz folder and install .
    	ashish@developer:~/Downloads $  tar -xzvf pymongo.tar.gz
    	ashish@developer:~/Downloads $  cd pymongo 
    	ashish@developer:~/Downloads/pymongo $ sudo python setup.py install 
    
  • or you can use $ easy_install pymongo

Install djangotoolbox
  • Download SourceCode of djangotoolbox and extract it > DjangoToolBox
    extract django-toolbox zip file and install .
    	ashsih@developer:~/Downloads$ unzip wkornewald-djangotoolbox-.zip
    	ashsih@developer:~/Downloads$ cd wkornewald-djangotoolbox-
    	ashsih@developer:~/Downloads/wkornewald-djangotoolbox- $ sudo python setup.py install
    

Install Django-nonrel
  • Download SourceCode of Django-Nonrel and extract it > Django-Nonrel
    	ashsih@developer:~/Downloads $ unzip wkornewald-django-nonrel-.zip 
    	ashsih@developer:~/Downloads $ cd wkornewald-django-nonrel- 
    	ashsih@developer:~/Downloads/wkornewald-django-nonrel- $ sudo python setup.py install 
    
Install MongoDB
  • Download MongoDB from official site of MongoDB and extract the Tar.gz package .
    I am using 32-bit . please prefer MongoDB installation on Linux
    	ashsih@developer:~/Downloads$ tar -xzvf mongodb-linux-.tgz 
    	ashsih@developer:~/Downloads$ cd mongodb-linux- 
    
  • Create a data directory
    	$ sudo mkdir -p /data/db/
    	$ sudo chown `id -u` /data/db
    
    You can also tell MongoDB to use a different data directory, with the --dbpath option.
    Run and connect to the server make sure that you are in MongoDB package folder .
    	ashsih@developer:~/Downloads$ cd mongodb-linux-/bin/
    	ashsih@developer:~/Downloads/mongodb-linux-/bin/ $ ./mongod				
    

Install django-mongodb-engine
  • Download source code of django-mongodb-engine from here > Django-MongoDB-Engine and extract it .
    	ashish@developer:~/Downloads$ unzip django-nonrel-mongodb-engine-.zip 
    	ashish@developer:~/Downloads$ cd django-nonrel-mongodb-engine-
    	ashish@developer:~/Downloads/django-nonrel-mongodb-engine-$ sudo python setup.py install
    

Phew !!! .. finally we completed .... :)

Let's start developing Django applcation


create new django Project
	$ django-admin.py startproject djangobookmarks
	$ cd djangobookmarks/ && python manage.py runserver
Open your browser and check > "localhost:8000" address
create new django application
	$ django-admin.py startapp bookmarks

Configuration

Database setup is easy as native django with sqlite3. Open "settings.py" and setup database "mongodb_engine".

DATABASES = {
'default': {
'ENGINE': 'django_mongodb_engine', # Add 'postgresql', 'mysql', 'sqlite3' etc.
'NAME': 'newdb', # Or path to database file if using sqlite3.
'USER': '', # Not used with sqlite3.
'PASSWORD': '', # Not used with sqlite3.
'HOST': 'localhost', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '27017', # Set to empty string for default. Not used with sqlite3.
}
}

Lets start mongodb engine

$mongod
$mongo

Run server
$python manage.py runserver



Yeah,Now start developing your application as other databases.Here I'm not going to teach in details.please read "django docs"

Django Admin Activation.

If you want to use Django Administration,Than it is bit tricky..
Open "settings.py" and add "django.contrib.admin" in INSTALLED_APPS.

INSTALLED_APPS = (
...default apps...
# Uncomment the next line to enable the admin:
'django.contrib.admin',
# Uncomment the next line to enable admin doc.:
# 'django.contrib.admindocs',
'bookmarks',
)

Open "urls.py" and "uncomment the lines to enable django administration"

from django.conf.urls.defaults import *

# Uncomment the next two lines to enable the admin:
from django.contrib import admin
admin.autodiscover()

from bookmarks.views import *

urlpatterns = patterns('',
.....
# Uncomment the next line to enable the admin:
(r'^admin/', include(admin.site.urls)),
)

Here is my "models.py" .

from django.db import models
from django.contrib.auth.models import User

# Create your models here.
class Link(models.Model):
url=models.URLField(unique=True)
def __unicode__(self):
return self.url

Bookmark(models.Model):
title=models.TextField(max_length=100)
user=models.ForeignKey(User)
link=models.ForeignKey(Link)
def __unicode__(self):
return self.title


create "admin.py" in application directory and register the models in django admin.

#!/usr/bin/env python
from django.contrib import admin
from bookmarks.models import Link,Bookmark #Models
admin.site.register(Link)
admin.site.register(Bookmark)


It will works without "django site".

Django Site registration
For more information visit django's documentation for The "Site" framework

Open "settings.py" and set SITE_ID for django_site(django administration).

Note :
Default SITE_ID is "1".That's for SQL based databases,but NoSql based DB generates Alphanumeric object Id.so we need to set that id here.
Open terminal and write.(for mongoDB)

$mongoexport -d (database_name) -c django_site
#example
$mongoexport -d mydatabase -c django_site

now,copy "id={}" and set SITE_ID="xxxxxxxxx" in "settings.py".
SITE_ID = '4dbea69bc9ce44192b00001d'



$python manage.py mongod
$python manage.py syncdb
$python manage.py runserver



Download Django_bookmark code
Thanking You !!!
Read more...

April 18, 2011

Testing with Google Appengine.

April 18, 2011 0
Yesterday in the evening ,
When i was seated in front of my computer than suddenly something comes in my mind.....
From a long time i never used Google App Engine ,Lets check my appengine knowledge.
With Appengine Docs i started writing the application and finally i did.

check it-Greeting App Engine

Its a simple greeting application based on GAE's helloworld example...
Also U can use ur gmail id to post greetings.

Lol.... ;-)
Still I know GAE..ye yippeee.....
Source code on bitbucket.

Read more...

April 13, 2011

My first play-framework application : DentoX2 - A System For Dentist

April 13, 2011 0
Hey everyone,
Thanks to all members of Play-googlegroups and my friends Priyanka & Pavan who help me to solve my technical doubts.
Finally i finished my Academic project in Play-Framework,It was most pleasing days of developing application with play,and really the result was probably the best.
The Project is "Dental Clinic Management System" with the name DentoX2 (suggested by priyanka )

UI theme for Administrator>Pillu-Web app theme

For more information
on DentoX2 visit the link....
    1. Dentox2 design
    2. DentoX2 Presentation
    3. DentoX2 Documentation

    Website :



    Blogging support :



    Administration Login :



    Administration Home Page :



    Patient List :



    Patient Form : with JQuery Date and time picker.



    FaceSheet :



    Appointment :with JQuery Calender .




    Read more...

    Follow Us @soratemplates