Thursday, April 13, 2006
Difference between Web 1.0 and Web 2.0
Thursday, March 30, 2006
Ruby LoadError, Quick fix
I just installed RubyFul_Soup[ Ruby port of the hit Python HTML/XML parser Beautiful Soup.] and wanted get started with RadRails , so when I write this line on top
require 'RubyFulSoup' as per the example given I get following error
LoadError: No such file to load -- rubyfulsoup
The thing is when you install any gem using "gem install" , it installs gem under /usr/lib/ruby/gems/1.8/gems , so somehow ruby does not really get where to pick up gems from , best thing to do a quick sanity check regarding your setup , and you can do that by "irb" (Interactive Ruby Shell), just type
bash> irb
irb(main):002:0> require 'RubyFulSoup'
LoadError: No such file to load -- RubyFulSoup
from (irb):2:in `require'
from (irb):2
basically gem installed is "rubyful_soup' and its under /usr/lib/ruby/gems/1.8/gems
and Ruby looks for files under /usr/lib/ruby/1.8/ , So all I did is copied rubyful_soup.rb file from /usr/lib/ruby/gems/1.8/gems to /usr/lib/ruby/1.8/ and also copy htmltools gem files to /usr/lib/ruby/1.8/, then run
irb(main):001:0> require 'rubyful_soup'
=> true
This is a quick fix till I figure out the real solution for this
Wednesday, March 22, 2006
RadRails puts RoR on Web2.0 development Autobahn
What is RadRails, Its a bomb!, its amazing, seriously I was never this excited, when Eclipse happened to Java/J2EE world. Why because it took me more time get Eclipse up and running with my java project and hook tomcat to it , yadda yadda!. But I could count it on on my fingers how long it took me get one simple rails app up and running with built in WEBrick server. It was just less than 5 mins, I had simple customer application with DB read/write/delete running on my browser.
RadRails is written on Eclipse framework, but extremely sexy, in terms producing components. Like rails/ruby/database/subversion support etc.
Some of the cool features
- mvc key bindings : To jump one context of development to another, moving between view (.rhtml ) to app controller faster.
- Generate tabs: All rails generate command on your fingertips
- Console/Tail : Very helpful in AJAX development where you can see data going back and forth between your client and server.
Oh yeah!, did I say how It was this quick , have a look at the screencast , you got to love this stuff!!..
There is a famous say "You need a reason to convince yourself, why you should do different deed", I guess RadRails is my reason to love Ruby/RoR.
So finally I would say "Got RoR!"
Thursday, February 23, 2006
''Home-Sourcing'' vs. Offshoring - Outsourcing - CFO.com
Monday, January 16, 2006
.htaccess usage on Apache doesn't work?, See what you are missing.
Simplest way to implement directory level authorization on Apache HTTP server is to use .htaccess file with password file combinations, You will find How to Implement Authorization on Apache everywhere. But there are couple of things which you will not find in these sites, because they assume that you would have done this before or you know about this already. So let me run thru basic steps and steps which are generally ignored (but very important get this out there)
Basic Steps
- Create .htaccess file with all the directives like AuthType,AuthName,AuthUserFile,Require attributes
- Create password file (as specified in AuthUserFile) using htpasswd command.
- LoadModule auth_module libexec/httpd/mod_auth.so
- AddModule mod_auth.c
Order allow,deny
Deny from all
Satisfy All
- Most important step which makes or brakes this whole exercise
- "AllowOverride none" should be replaced by "AllowOverride AuthConfig"
With above you should be up and running with Apache Basic Auth.
Monday, September 19, 2005
BernieMac: Mac OS; DVD ripping/burning dilemma
To burn DVD movie which is as big as 8 GB to 10 GB is a pain. You have couple of options.
- Have a Dual layer DVD 8.X GB, and burn your movie or data on that, But bummer is you will need a dual layer DVD-RW drive, which is not a great option
- Second and best option is compress the movie or data file which is greater that 4.7 GB and then burn it on the standard blank DVD-R(+R/RW) disk
- Rips the DVD data from the source
- Compresses the data to the best compression % possible with default compression algorithms.
Now How about Mac-OS, it gets little tricky and complex than that, primary reason is there is no DVDShrink available for Mac-OS, moreover its quite a work to find free and good software to find on Mac. So consider following options
- MacTheRipper : Tiny little ripping tool (Its free) does a great job of ripping the DVD into VIDEO_TS format. Some of the rips doesn't work good for burning.
- DVD2Onex This is a ripping + compression tool, works pretty well. Got to pay, you get one free rip with free download.
- Roxio Popcorn This one is ripping + compressing + burning tool , so that makes it best of all of the above , again you got to pay for this one, but I would say it is totally worth it. You put a Source DVD, it will start ripping + compressing and once it is done, you pop out source dvd and pop in blank dvd and it will write the compressed data. With real good quality.
Have a great time ripping _and_ compressing _and_ burning.
Tuesday, September 06, 2005
American Legend to roll in India
Harley-Davidson is planning to bring its legendry motorcycles to India, via import medium. Believe it or not for few people like me its a damn good news, if it really happens. Call it as craziness or whatever, it will be a big shift for Indian motorcycle industry (I mean motorcycles from India and _NOT_ Indian brand :)). This will add up to one of the reasons why I would move back to India. Here is the article which talks about this possibility.
Price tag is little too over the top for Indian market, but it would still draw lot of upper class people to buy this mean machine, Harley-Davidson is targeting range between 4 Lac rupees to 14 Lac rupees. So lower end price tag might fetch you Sportster brand and higher price tag will possibly have VRSC or Touring , if they plan to release all the models.
As India is one of the biggest market for motorcycles, I was always dreamt these big machines to be a part of Indian roads, where Kawaski and Yamaha sportsbikes was always in demand.
I know few people like Inddie Thumpers who ride and live the Indian manufactured bad boys (Enfield motorcycles) would either try this piece of American history or own it. I would for sure when I get back home and right now I'm enjoying my harley-davidson sportster ride around bayarea.
Sunday, June 26, 2005
Quick and Dirty; Apache HTTP Compression
- Open httpd.conf
- Uncomment line #LoadModule headers_module modules/mod_headers.so, if it is commented
- At the very end of the file, add following lines
LoadModule deflate_module modules/mod_deflate.so
# Insert filter
SetOutputFilter DEFLATE
# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html
# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4\.0[678] no-gzip
# MSIE masquerades as Netscape, but it is fine
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI \.(?:gifjpe?gpng)$ no-gzip dont-vary
# Make sure proxies don't deliver the wrong content
Header append Vary User-Agent env=!dont-vary
- Restart your Apache HTTP server and you are all up and running with compression server output compression.
For more details refer Apache's mod_deflate Documentation
Tuesday, June 14, 2005
Connect Oracle behind Firewall
Reason : Oracle database server behind any type of firewall.
Solution: Add "USE_SHARED_SOCKET"="TRUE", on the windows registry.
[HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\HOME0]
"USE_SHARED_SOCKET"="TRUE
More information can be found here
Thursday, May 19, 2005
Open source started running deep in IBM
IBM's push for
- Eclipse project ; the IDE /Application framework swept the developers off their feet.
- In-House support for Firefox; pushing the firefox the across the enterprise, making usage of breakthrough browser more prevalent (I don't think they realy needed to do this, people are already jumping onto firefox for its beauty!)
- Embracing GlueCode [1+]; With this IBM will back up Apache Geronimo project, which will make JBoss/Novell worry for sure upto certain extent, because of the possible projection of Geronimo in the J2EE application server market. infact experts predicting IBM's wepsphere would be less of threat to BEA Weblogic, than Geronimo going after JBoss.
- Last but not least IBM's own open source arena
My list will keep growing, I'm sure IBM will keep pushing and supporting this revolution.
Friday, April 08, 2005
Smart web clients; Ajax way..
Probably the driving force behind all this is XMLHttpRequest concept, which makes it quite possible. From the business front, Microsoft is been talking about smart clients for a quite a while reflecting their images on their Windows operating system.
I'm not sure how the scalability of Ajax works for business application type of products/Big data intensive/intelligent applications, where you have heavy database interaction, business models, data controllers, UI limitations etc. It might get clunky do a lot of work in Javascript/client side, if not designed right.
What is next ?
- Now people speculate; is Ajax a alternative for Flash, I don't think so. In fact they will be compliment each other in terms of sharing feature sets. xamlon.com went ahead collaborated the Ajax model with Flash and they call it as Aflax (Ajax+Flash). Look at their google maps equivalent in Flash .
- Toolkits and API for Ajax; We need toolkit and API's which support Ajax, which will learning curve
- Speculations; Sam Ruby about Ajax's other side.
I would watch for it, with experimenting Ajax way.
Sunday, March 27, 2005
Yoga; Open sourced...
The fact is it is all gathering under the one umbrella of Open source. Because it sounds right and it was not be that way. Yoga was _NOT_ supposed to patented and copyrighted.. It has been given to students from Teachers for 1000's of years. Open source derives similar idea, with some change assuming it is treated right.
Friday, March 11, 2005
When 3 OS's meet in a imaginary world; iPod bridges the gap
This is really cool; iPod has done it again; IBM's attempt to use Linux on iPod for boot/recover/backup tasks. Think about this.
- iPod is created by Apple; Home of Mac-OS
- ipodlinux manage to get Linux on iPod and much more.
- IBM uses iPod to boot Linux on PC.
Well there is the love-hate collaboration of 3 operating systems in a very imaginary world.
Like Google is a software development tool these days. iPod is becoming Google of hardware industry. Even though I do not own a iPod, it still intrigues me , this tiny masterpiece is taking the world by storm one inch by one inch.
Wednesday, February 09, 2005
Is AMQ threat for ESB vendors out there?.
Financial industry argument points to following core factors.
- Get rid of proprietary factors.
- More lenient Support for C/C++/C# technology.
- Huge data transfer rate (Close to 100 MB); This is driven from big concerns for regular feeds going back and forth.
- Build the whole AMQ architecture right in the Operation System Kernel, (This is the Cool one I liked). Initial release already focusing on SuSE/Redhat/Solaris Kernel.
On the contrary it is not a new concept to have a open source MOM (message oriented middleware). There are few.
Here is the detailed article on this subject.
Monday, February 07, 2005
Check-in/Check-out On Demand Enterprise; Services to Grid
IBM is quite an pioneer in this race, and it invested big bucks in this future possibility. As Sam Palmisano said "an enterprise whose business processes—integrated end-to-end across the company and with key partners, suppliers and customers—can respond with speed to any customer demand, market opportunity or external threat."
On Demand Platform changes the way you design and implement your systems. It is started as traditional ASP model and gained lot of mileage from the hosting model and eventually got exposed as Enterprise business model because of web services/REST/XML/Utility computing and similar technologies.
Recently we are seeing a real "Check-in/Check-out On Demand Enterprise", across different aspects. From Utility Grid computing to Enterprise E-Commerce. Some of the examples are
- Enterprise services [1+]; are opening themselves to On-Demand E-Commerce.
- Sun's Grid's availability for global computing; A real Kicker to the Grid world. Data center will be available to the customers, pay per use. $1/hr of CPU usage. What Sun gets out of these is; primarily they can make Customers to use their products and possible venture into different verticals, So that's On-Demand Computing.
- Amazon's Message Queue Platform; This is a cool one, Amazon will open up its SQS(Simple Queue Service), as a add-on to its already existing web services infrastructure. Don't forget this again comes with certain usage boundaries. This makes Amazon as one of the few players moving to On-Demand Middleware.
From the technology front, IBM announcing SOMA, extension to current SOA, that will help enterprises to convert their model to On-Demand business.
Tuesday, January 25, 2005
Big Trinity's "Natural Selection": PeopleSoft as an Advantage.
Now its someone should take an advantage of this whole situation, Big 3 did. Yes!. Its Microsoft , SAP and IBM.
- Microsoft discounted migration services,This will migrate customers from Peoplesoft application. So their 25% discount program will be over by end of mid this year. So customers will rush and there goes Microsoft revenue, up again. As they reported revenue growth for their 3rd quarter already up by 13%
- SAP buys TomorrowNow [1+]; Huge benefit for SAP going forward. Now they have their own way of spinning the wheel. with this deal, 75% credit towards mySAP ERP, discount for Netweaver integration platform
- IBM to buy Corio; Corio is one of the leading ASP for PeopleSoft and Oracle ERP, IBM will kill two stones with this, first it will strengthen its own Hosted ASP business. Second slowly go after customers like PeopleSoft and Oracle, as IBM has its own small business application initiative, to go on CRM market.
interestingly this will go on because its a race but with advantage to your competitors sometimes, whoever wins they need to maintain the reputation, but people who loose or who are watching winners closely, they keep an eye on next revolution and run for it.
Thursday, January 20, 2005
SCO's win over IBM/Linux case: Good or Bad for Open source but more formal Open source adoption policy
Good from perspective of
Open source will be treated right from legal aspects, There will be a better open source adoption policy, chances for Open source compliance to become more formal
Bad from perspective of
Now enterprises will be skeptical about use of Open source technology inside the organization, because of possible legal threat with following loosing of millions of $$.
Bottom line, that brings up a point, Open source governance and right policy implementation to have a healthy environment going between open source vendors/legal experts/CIO's
Wednesday, January 19, 2005
OSI approves Sun's CDDL, what does it mean??
- Open Solaris
- Create a unhappiness in Linux community and other fellow open source people.
- Open source Patent giveaway war; With CDDL, Sun gives away all of its patents to dev community as compared to 500 IBM patents, Now there starts one more round of tug-of-war between these 2 big players.
- Open source Operating system group will be more happening, with 2 distinct groups (Solaris and Linux) forming to run against each other.
Torvalds says
"It will be hard for Sun to build a community like Linux. Looks like Sun is trying to play the same track as they did with Java, where they tried to control the whole evolving to maturing process of Java, So they loose real advantage of Open source"
Monday, January 17, 2005
On Demand-Real Time-Human interaction based Customer Service
Is this annoying or "Minority Report" age for customers ?.
Circuit City's new approach to Customer Service. This changes how customers interact with products in a real store. Circuit City's CIO Mike Jones, want to sell products, infer products and sales to customers. Reminds me of Minority report and presentation of the technology in that movie. Remember guy walking on the subway train station, Camera/Screen on the side of the platform identifies the person and gives the personal advertisements for that person. I knew this will be a future, but did not think it will be this fast.
Optimist will say ?
- Revolutionary idea, no representative needed. It is On Demand World.
Pessimist will say?
- Are you crazy!, it is annoying, I do not want headphone hanging on my head and screaming at my ear, picthing me about products wherever I focus my eye sight.
Well its a give and take world, Got to loose something to gain. Its a matter of preference.
Here are list of scenario summaries, which Circuit city wants to present to customer.
- Personal Thank you from the CEO to the customer who makes big buck purchase.
- Personal delivery of the product to customer's home, based on availability of product in customer's home address area.
- MP3 Player preloaded with customer's favorite music
- Promotions based on customer's interaction with the products and his intrest, RFID based smart cards.
How will competitors react to this infrastructure revolution. We will see it sooner than later.
AudioBlogging Tests the limit of how far human can go; Over and Out Kilimanjaro
Needless to say, How powerful this information age is, with tomorrow's social engineering tools like Blogging(Audio/Video)/Wiki/Tagging it is all reachable within few seconds.