Portable DVD A New Pet (723) From Phillips

A NEW PET(723) FROM PHILIPS

Are you not able to entertain yourself when you are travelling? Then here comes a mindblowing gadget which will not let you get bored whenever you are away from home. Imagine when you are out for a family tour and suddenly during the journey you wish you had something to entertain you. Thats how I felt when I was on a long journey. Then I came to know about this Portable DVD Player which was recently launched by Philips. It’s Philips PET723 Portable DVD Player.

After I brought this player, I could easily manage to entertain myself whenever I was away from home. It never made me feel as though I was really away from my place. Because it kept me busy all the while. It has a very stylish look, sizing about 7″ in its display. It has got an SD Slot where you are allowed to fix memory card of the capacity that you require to use.

You dont need to control it manually. You can just keep it in a place and control it with a wireless remote controller. Whenever the battery charge seems to be low, you can always charge it with a standard charger. Apart from this, you are also provided with a car charger so that you charge it when you are on a drive. You can also watch TV in this player. There is a TV slot where you need to connect TV-out cable and start watching. It is a full on entertainment device.

Posted in Uncategorized | Tagged , | Leave a comment

NEW IPHONE RADIO APPLICATION!!

NEW IPHONE RADIO APPLICATION!!

So you like to listen to free online music on your iPhone, but for whatever reason, Pandora or AOL Radio doesn’t cut it. Now you have another choice. Slacker, the folks with the personalized radio website, now have a free iPhone/iPod Touch application to listen to online radio while on the go.Like Pandora, you tell Slacker what artists and genres you like, and it produces custom station based on your tastes. Or, if you prefer, you can listen to one of 100 pre-programmed Slacker stations.

If music comes on that you don’t like, you can skip it, but only so many times. If you want unlimited skipping, you have to pony up $3.99 monthly. It also give you Slacker ad-free. (Slacker usually shows ads on the screen while music is playing.)

Posted in Uncategorized | Tagged , , , , | Leave a comment

TA4 – Searching

TA4 – Searching

So I actually made the searching pretty easy on myself, and looked at it like a filter. The advanced search dropdowns had a bunch of default value that, if they didn’t change, simply returned the entire set. So if the user did not specify any criteria for a TA search, all the TAs would simply be returned. Since I took this approach, a class search and TA search had to be different; one would return only TAs, and one would return only classes.

Google Appengine makes it actually really really easy to do something like this. Our TA model is named “Ta” and the instances of each course is “Section”. I imported the models into my page, and if it was a TA search I created a query object with “Ta.all()” which returned a list of all the Ta objects. For classes it was the same, with Section.all().

Like I said, this returned a Query object (documented at http://code.google.com/appengine/docs/python/datastore/queryclass.html) on which I could use to filter out different results, if the person had actually selected something. For example, if the person had all the defaults selected and then picked “Native English” to be yes, the code looked like:

1.
query = Ta.all()
2.
if self.request.get(‘nativeEnglish’):
3.
query.filter(“nativeEnglish =”, self.request.get(‘nativeEnglish’))

which will filter out the TAs that speak English natively.

To match on reference properties is slightly more difficult than that. For instance, if I want to filter out TAs that have a specific major, what is actually saved in the major property of the TA table is not a string “Computer Science” but rather a Major object with the name “Computer Science”. So you can’t just do “query.filter(”major=”,”Computer Science”). You have to query a major object from the database like so:

1.
if self.request.get(‘major’):
2.
majorInstance = db.GqlQuery(“SELECT * FROM Major WHERE name = :1″, self.request.get(‘major’)).get()
3.
query.filter(“major =”, majorInstance)

The text search was pretty painless, because Google has something that makes it super easy. If I type something in and I want to see if it matches any of the TAs, I just use:
query = Ta.all().search(“Phillip”)

One other note. Since the query object itself is an iterator, I don’t have to call the filter() method on it in order to iterate over the list. I simply filter down through the search options and pass the Query object to my template and iterate over that.

References:

http://daily.profeth.de/2008/04/er-modeling-with-google-app-engine.html

http://code.google.com/appengine/docs/python/datastore/typesandpropertyclasses.html#ReferenceProperty

http://code.google.com/appengine/docs/python/datastore/queryclass.html#Query_filter

http://code.google.com/appengine/docs/python/datastore/creatinggettinganddeletingdata.html#Getting_an_Entity_Using_a_Key

Posted in Uncategorized | Leave a comment

SVN With Mediatemple

SVN With Mediatemple

So I have dedicated hosting through Mediatemple (specifically the dv option) and I needed to create a subversion repository on it. Here’s what I did:

A. Enable Root Access.

B. Install Developer Tools in your Account Center.

C. Root Login via SSH to your domain.

1. Create SVN user and group

groupadd svn

useradd svn

2. Startup the server as a daemon (-d), pointing to a particular repository (-r), is:

sudo -u svn svnserve -d -r /home/svn

From here replace *repo_name* with your own!

3. Create your repository

svnadmin create /home/svn/*repo_name*

4. Create the temporal structure for the repository like trunk, branches and tag

cd /home

mkdir site && cd site

mkdir trunk

mkdir branches

mkdir tag

5. Import this structure into your new repository:

svn import /home/site file:///home/svn/*repo_name* –message “Creating initial repo.”

6. Delete the temporal structure directory

rm -R /home/site

7. Your new repository is installed and working.

8. Now you can add the SVN group for all users who will commit to the server.

cd /home
chmod -R 775 svn
chown -R svn:svn /home/svn

9. You can add more users in this way:

useradd *username* -g svn
passwd *username*

10. Checkout your repository:

svn co svn+ssh://*your_username*@*the_domain*/home/svn/*repo_name*/trunk

I got this through a little trial and error, as well as these 2 links:

http://mind.psychopsia.com/subversion-svn-repository-on-media-temple-dv-35/

http://kb.mediatemple.net/questions/143/Using+Subversion

Posted in Uncategorized | Leave a comment

Something Weird about Python + Classes

I came across this super weird functionality when in the last SMP project.  It really makes absolutely no sense why Python would behave like this.  Of course, trying to find things via the all-knowing Google proved inconclusive.  Here’s what was happening.

First, I have a Stack class that is definedlike so:

  1. class Stack:
  2. def __init__(self, initial = []):
  3. self.container = initial

The reasoning behind that is that I wanted a default constructor that could initialize a Stack to not have anything in it, as well as initialize a Stack that already had some pre-defined stuff.  Since you can’t overload methods, you can just do default parameters giving you (seemingly) the same functionality.

I was sorely mistaken.  It took about an hour of trying to track down the problem, but in using that class definition something unexpected happens.  Say I have the following code:

  1. mystack = Stack()
  2. mystack.push(1)
  3. mystack.push(2)
  4. mystack = Stack([3, 4, 5])
  5. mystack.push(6)

You should think that at the end of that code, the stack would just contain 4 and 3.  However, it actually contains all the elements, 6, 5, 4, 3, 2, 1 in that order.  Wtf?  I would think that if I wanted to call a constructor that it would actually create for me a new object.  The only way I could find around it was to take out the default parameter in the constructor altogether like so:

  1. def __init__(self, initial):
  2. self.container = initial

And declare a new empty stack like so:

  1. mystack = Stack([])

And then it seems to work just fine.

Posted in Code | Leave a comment

PLAY EASY WITH WIRELESS KEYPAD FROM SONY!!!

PLAY EASY WITH WIRELESS KEYPAD FROM SONY!!!

You must have been fed up of entering text with a playstation controller because its very wierd and uncomfortable to type text while you are playing. But thanks to Sony for releasing its user friendly and Wireless Keypad. Recently I visited one of the Sony showrooms and thats where I came to know that Sony has released this wireless keypad designed especially for PlayStation 3.

I feel much comfortable while playing games on PS3 whenever I need to enter the passwords or any other text. You can sit at a distance of even 5mtr away from your screen and still the wireless keypad works as good as it works at a shorter distance. When I saw the demonstration of the keypad in the showroom of Sony, I was so impressed by the features that I immediately bought one for myself. And guess what? I paid just $50. Unbelievable right? But you got to believe this.

There are several features of this wireless keypad. It consists of battery since its wireless which can be charged by plugging via USB cable. This can be used with other Bluetooth enabled devices also. Isn’t it a wonderful gadget? Just get one for yourself and make your life go easy.

Posted in Gadgets | Tagged | Leave a comment

NIKON’S GP-1 GPS!!!

NIKON’S GP-1 GPS!!!

Travelling had been a childhood passion. Photography came inevitable. Photos in my numerous albums sparkle with memories of those wonderful and awesome places. Being an ardent lover of travelling, buying latest cameras and recorders were necessary. Nikon’s GP-1 GPS unit was something I recently caught hold of. Technology has advanced fairly to higher extent with things coming up totally to surprise us. So did this GPS unit. I was awestruck and felt it my eagerness to share with others.

Nikon’s GP-1 GPS unit can be attached to the hot shoe of Nikon or to the strap, along with an adaptor. It tags the photos by recording the altitude, latitude, longitude and time of any particular place. The photos are uploaded using software like Nikon’s ViewNX software. The GP-1 unit takes few seconds to receive the satellite signals in any place. Time varies from 45 seconds to 5 seconds. It has three light indicators; solid green implies detection of three or four signals; just green means it has detected three and the last red flashes to indicate the absence of recorded GPS satellite data.

Posted in Gadgets | Tagged | Leave a comment

THINNEST IDEN FLIP PHONE FROM MOTO – TREASURED JEWEL!!

Dell Studio XPS 16, DELL LOVERS! PAY ATTENTION! .

DELL LOVERS! PAY ATTENTION!!!

Have you ever imagined next version of Dell laptop and what its features are going to be? It’s called Dell Studio XPS 16. I went to one of the Dell outlet where I came to know that it’ll be very soon released in market publically. I was so much carried away with the features and function of this model, I wish I could buy that laptop right at that time but unfortunately it was not released at that moment.

The main advantage with this model is that, you can tilt this laptop upto 360* which is very rare with any other type of computers. It looks so attractive that you will be forced to draw yourself towards its presentation. Its every edge is so beautifully designed and you can not just stop talking about its incredibility. It has got 16″ widescreen(LCD). The Studio XPS 16 has speakers with an integrated subwoofer which gives an experience of a 5.1 Dolby Digital output.

It has inbuilt webcam which gives you clarity of a digicam and microphones that will help to stay in touch with your friends by interacting with them online.

And of course the connectivity, you have all the possible connections that you need to have in a laptop such as Wi-Fi, Bluetooth and LAN connections. If you are a true Dell lover then you need to have a look at this gadget.

Posted in Uncategorized | Leave a comment

EXPERIENCE THE REAL SOUND WITH CREATIVE INSPIRE!!!

EXPERIENCE THE REAL SOUND WITH CREATIVE INSPIRE!!!

Have you experienced digital surround sound in your room while using your PC? If no, then let me tell you CREATIVE has launched an amazing sound quality speaker. It’s called Creative Inspire T6100. This 5.1 channel speaker set will give no lesser than a theater effect.

No matter whether you are playing games or watching movies in your computer, this speaker set will make you feel real. When you play any Car Racing games such as NFS, you’ll feel as though you are sitting in the real racetrack. The centre speaker has been dynamically designed and its sound quality catches the listener towards itself.

A sub-woofer is provided to make you feel the beats of the music and tone. I own this for my PC and it has been giving me marvellous performance by its digital sound quality. Now I feel that it was worth spending my money to buy this masterpiece and I always advise my friends and colleagues also to go for Creative Inspire T6100 and experience the true sound.

Posted in Gadgets | Tagged , | Leave a comment