beyond teck

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Sunday, 17 January 2010

Learning to Program Python with Computer Games

Posted on 11:11 by Unknown

While I never really bothered to learn Python (I don't really know why), a resource named Invent Your Own Computer Games with Python (2nd Edition!), has piqued my interest. The book is geared towards people who are just learning to program and introduced Python in a rather enjoyable and fun way with simple games like Hangman and TicTacToe.


What's more? The book is entirely free, and you can head on to the website and take a look at all the source code as well as download a PDF of the book. Definitely worth checking out if you're interested in learning Python or if you are interested in learning computer programming.

I can't wait to take a look through this book and learn from the interesting ideas I find. And if you're never programmed before, this book might also be a good starting point.
Read More
Posted in downloads, free, web | No comments

Saturday, 16 January 2010

Searching from Firefox Address Bar (like Chrome)

Posted on 18:36 by Unknown
While I love the concept of being able to search and access websites from only 1 single address bar, Google Chrome isn't exactly the best browser for me. There's only one reason for that though - it doesn't have the same extension support as Firefox. So Xmarks and AdBlockPlus aren't fully functional (for now) on Chrome.

But why fear when you have high speed internet and Firefox. You can almost (say almost... because you can't always search, as I mention below) get the same functionality of being able to search from the address bar (this is the place you usually type in www.google.com!) like in Chrome without having to download add-ons and other random things. Of course, given the fact that Google has no stake in Firefox, it'll still load Google owned websites, or half of the internet, really slowly. But chances are a few nano-seconds won't make all too much of a difference, especially if you are like me and love to waste time on the interwebs. Of course, you can also tweak Firefox to become an internet hog and load web pages faster.

How to enable Firefox address box search

Enabling Firefox searches is really trivial. All you need to do change certain default configurations in Firefox. Here's how to do it so that you can make Google your default search engine:
  1. Open a New Firefox window (so that you can still read these instructions, duh!)
  2. First type in about:config in the Firefox address bar
  3. Yes. You're about to void the warranty on your browser install. Click on "I'll be careful, I promise."
  4. Type in keyword.URL in the "Filter:" box
  5. Double Click on keyword.URL in the Preference Name area
  6. To use Google search (I've provided some other providers below), type in (or copy and paste):
    http://www.google.com/search?q=
  7. Hit OK
  8. Type in a search query in the address bar to check it out!
Now, you can enjoy your new found search-abilities! If at anytime you wish to reset your Firefox address bar, simply follow the same instructions above up till step 4, but instead of double clicking on keyword.URL, simply right click and click Reset.

Changing search providers for Firefox address bar search

In the above instructions, I provided the search string for Google. But naturally, you can do the same for any other search provider. For instance here are a few things you'd copy and paste when Firefox asks you a new value for keywork.URL in step 6 of the instructions above.
  • Yahoo:
    http://ca.search.yahoo.com/search?p=
  • Bing:
    http://www.bing.com/search?q=

  • Wikipedia:
    http://en.wikipedia.org/wiki/Special:Search?search=

  • Google's I'm Feeling Lucky Feature (this will take you directly to the first web page in a conventional Google search):
    http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=

How to get rid of the existing search box

Getting rid of the existing search box (yeah you likely won't need this anymore) is easy. Just right click near your address bar and click Customize. Then drag the existing search box in to the Options window and you're done. This will now make your Firefox look like Google Chrome!

Custom Search Providers

Creating custom search providers is easy. What Firefox does is simply appends the user's string (the stuff the user types into the address box) to the keyword.URL string value. So, all you need to do is make sure that the keyword.URL string value will cause a search query after Firefox adds the user's search strings and forms a complete URL and goes to that website. In essence, it is merely a matter of finding the keyword.URL string. To do this simply create a few different searches on your desired website and observe the changes in the URL caused by the search. So for Beyond Teck's custom (Google based search engine), every search string gets added after the "q=" part of the URL. So naturally, the keywork.URL string for BeyondTeck's search engine will be all the stuff in the URL before the "q=" part, so it will be:

http://www.google.com/cse?cx=partner-pub-7450531327125251%3A1037qo-kfo1&ie=UTF-8&q=

Stuff you cannot search for from the Firefox Address box

Unlike Chrome, Firefox does have some restrictions for its "search strings" or things that you can search for. Here's a little list (to be continued as I find more things you cannot serach for):
  • Cannot search for things that begin with certain special characters, particularly a "/". So you cannot search for "/..com".
  • You cannot search for a term that begins with "about:" because that term (as in about:config or about: or about:cache) just takes you to Firefox's advanced configuratgion/about/cache pages.
  • You cannot search for things like "define:" because it has a colon in there
Read More
Posted in firefox, google, search, tip | No comments
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Popular Posts

  • The Beyond-Teck Search Plugin
    I realize that it is hard to come to the site all the time to search for something. Especially when you are studying for tests, using the bl...
  • WeTransfer Job Ad
    I like using WeTransfer to transfer things that don't fit in emails, mainly because the site is fast, has a large upload limit (2GB!) an...
  • How to immitate the immaculate desktop on a Mac
    Having a immaculately super clean desktop for me means that I can concentrate on the task at hand without being distracted by the little ico...
  • The 5 Dollar DIY Laptop Cooling Stand
    You won't find a cheaper laptop stand anywhere. Yup, you guessed it. It's actually a stapler. But guess what? It works! Although it ...
  • Contact Me!
    Okay so you want to contact me for something? No Problem! E-Mail You can send all your questions , comments , tips (I need a lot of those)...
  • Readable - A web app that makes it easier for you to read webpages
    Let's face it... Although we've come a long way from the first webpage on the internet the most used method of communication on the...
  • Google Easter Egg: Change your language to Bork! Bork! Bork!
    Just recently I was watching a video of Marissa Meyer talking about how Google goes about optimizing their site to incease performance and u...
  • Internet Explorer Crashes All the Time
    Recently, I noticed that whenever I used IE for browsing websites (just browsing… average websites without any extraneous java application o...
  • What is Bootsec.Bak? Can I delete it?
    Today when I was browsing through my C: folder, which I don’t always do, I noticed that I had a lot of junk on there. Most of it seemed to b...
  • Fixing Windows or Linux With Knoppix
    Extreme Tech had published a few articles a few days ago on how to use Knoppix to rescue Windows , and now they've published an article...

Categories

  • addons
  • adobe
  • ads
  • adsense
  • apple
  • audio
  • blackberry
  • blog
  • blogger
  • blogging
  • cars
  • cellphones
  • clean
  • code
  • comments
  • cricket
  • downloads
  • ebooks
  • email
  • error
  • file sharing
  • firefox
  • fixes
  • free
  • games
  • gas
  • Gmail
  • google
  • hack
  • hotmail
  • installs
  • instant messaging
  • internet
  • internet explorer
  • ipod
  • laptop
  • Linux
  • Live Writer
  • lol
  • Mac
  • mac. mail
  • mail
  • messenger
  • microsoft
  • Microsoft Word
  • money
  • msn
  • music
  • Musings
  • network
  • news
  • online
  • Outlook
  • page
  • peripherals
  • phones
  • photo
  • photoshop
  • php
  • plagiarism
  • problems
  • productivity
  • programming
  • projects
  • rant
  • Registry
  • Review
  • school
  • Screenshots
  • search
  • security
  • software
  • spam
  • speech
  • speed up windows
  • spyware
  • sysfader
  • technology
  • tip
  • tricks
  • tutorials
  • ubuntu
  • updates
  • video
  • virus
  • voip
  • web
  • wi-fi
  • Windows
  • Windows 7
  • Windows Vista
  • Windows XP
  • wireless
  • work
  • wtf
  • youtube

Blog Archive

  • ►  2013 (5)
    • ►  October (2)
    • ►  August (2)
    • ►  March (1)
  • ►  2012 (6)
    • ►  December (1)
    • ►  October (1)
    • ►  June (1)
    • ►  May (1)
    • ►  January (2)
  • ►  2011 (19)
    • ►  October (1)
    • ►  August (1)
    • ►  July (8)
    • ►  June (1)
    • ►  February (4)
    • ►  January (4)
  • ▼  2010 (41)
    • ►  November (1)
    • ►  October (3)
    • ►  September (3)
    • ►  August (2)
    • ►  July (12)
    • ►  June (2)
    • ►  May (5)
    • ►  April (3)
    • ►  March (4)
    • ►  February (4)
    • ▼  January (2)
      • Learning to Program Python with Computer Games
      • Searching from Firefox Address Bar (like Chrome)
  • ►  2009 (59)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  September (3)
    • ►  August (4)
    • ►  July (4)
    • ►  June (14)
    • ►  May (1)
    • ►  April (3)
    • ►  March (3)
    • ►  February (4)
    • ►  January (20)
  • ►  2008 (108)
    • ►  December (22)
    • ►  November (10)
    • ►  October (14)
    • ►  August (13)
    • ►  July (13)
    • ►  June (6)
    • ►  May (13)
    • ►  April (10)
    • ►  March (5)
    • ►  January (2)
  • ►  2007 (33)
    • ►  December (8)
    • ►  November (1)
    • ►  October (4)
    • ►  September (10)
    • ►  August (1)
    • ►  July (2)
    • ►  June (1)
    • ►  May (2)
    • ►  April (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2006 (137)
    • ►  December (1)
    • ►  November (1)
    • ►  October (1)
    • ►  August (1)
    • ►  July (3)
    • ►  June (9)
    • ►  May (20)
    • ►  April (22)
    • ►  March (33)
    • ►  February (20)
    • ►  January (26)
  • ►  2005 (55)
    • ►  December (12)
    • ►  November (19)
    • ►  October (9)
    • ►  September (15)
  • ►  2001 (1)
    • ►  January (1)
Powered by Blogger.

About Me

Unknown
View my complete profile