Saturday, December 10, 2011

Much more to follow. I feel like living the life like in limitless. I have downloaded the tutorial for the php and dreamweaver.
The dreamweaver tutorial is hiighly useful.There is direct synchronisation of data with the remote server. And found that there are many other features such as updating a change can be made to reflect in other files too. And how to choose a layout. How to convert the dtd of the file which usually at the top.

So great work.
Now got a tutorial for JEE . THe problem is that I am moving at a fast pace. Have to slow down a bit so that nothing bad happens like last time.

Waiting for DELL XCD mobile. Seems that Samsung young Another mobile has come out.
And found that adding mp3 t o the windows media player library worksout great for me. Great going.

ciao good night tkr

Friday, December 9, 2011

today a new revelation. Found that greentown.in supports mysql server.
 Had this big doubt how datta can be stored in the server in the web. So went and surfed. Foud many things.
THe first thing is Whois.net is a site where you can find who has hosted the site and the history of the site.
The next thing is that domainindia.org is the web hosting service and the plan costs 500 for a year and follows annual payment ,500mb and we are currently using only some 30 and the control panel has all the detaails pertaining to it. FOund that there we have phpmyadmin and we can create databases in mysql. SO my doubt is clear as of now. Now have to try out a website using both php and the database. 

Tuesday, December 6, 2011

Microsoft silver light

Now i want to know what silver light is. microsoft Silver light is similar to adobe flash. They say that adobe illustrator is already there. So what is it. IS it different from photoshop? Google and adobe are in a big time agreement. Now Adobe has already conquered the internet videos. Microsoft would like to venture into this but they would eye the mobile videos. So microsofts silverlight would be bundled with apples iphone. Probably a guess by some genius. Good one.
Guys its going pretty intense. Jumping from one to another It all started with the site that I created. Nothing great but it worked greated. Basic HTML stuff AJAX and just on php code. So thought why no And I have been on this journey before but was cutshort. So this is my second attempt at learing the languages. Hope iit goes well learn PHP. And today morning was just surfing and saw that .net framework 4 which has been released recently is to be coupled with the Visual studio IDE. To be frank i didnt know that it was an IDE. But for Java we use Eclipse. And IDE's are also known as RAD( Raapid Application Development). SO the next time when you hear that word RAD dont be baffled. And framework is nothing but a set of already builtin classes for rady made use. And this normally takes the MVC architecture which is nothing but the MOdel View and Controller. MODEL is where the data is kept and hope thaat is why we get the name DATA modelling and this done by the DBMS architeccts. VIEW is the one which we see on the screen and these are mostly html or etc. Controllerss are the ones that interact between the View and the Model. Pretty cool stuff...Hope the learning curve continues. Will post once i instaall the Visuaal Studio training kit.

History of .NET

See the .net video which says that .net is not a language but one which supports many languages. Microsoft started development on the .NET Framework in the late 1990s originally under the name of Next Generation Windows Services (NGWS). By late 2000 the first beta versions of .NET 1.0 were released.[2] Version 3.0 of the .NET Framework is included with Windows Server 2008 and Windows Vista. Version 3.5 is included with Windows 7, and can also be installed on Windows XP and the Windows Server 2003 family of operating systems.[3] On April 12, 2010, .NET Framework 4 was released alongside Visual Studio 2010.

Visual Studio 2010

It has really taken me years to actually know what Visual Studio is ...Crap man ...Am i a fool or this environment has made me into one....fuck you all... Microsoft also produces a popular integrated development environment largely for .NET software called Visual Studio. http://www.microsoft.com/download/en/details.aspx?id=23507 OVERVIEW The Visual Studio 2010 and .NET Framework 4 Training Kit includes presentations, hands-on labs, and demos. This content is designed to help you learn how to utilize the Visual Studio 2010 features and a variety of framework technologies including: C# 4 Visual Basic 10 F# Parallel Extensions Windows Communication Foundation Windows Workflow Windows Presentation Foundation Silverlight 4 ASP.NET 4 Windows 7 Entity Framework ADO.NET Data Services Managed Extensibility Framework Application Lifecycle Management Windows Azure This version of the Training Kit works with Visual Studio 2010 and .NET Framework 4.
Which language is MySpace/Facebook written in? Facebook is written in PHP, myspace used to be Cold Fusion, but I think it might be in ASP.NET these days. Although it doesn't actually make the blindest bit of difference what language it's written in, they're just tools - think of it as using different colour hammers to hit a nail with - makes no difference as you get the same result. You could use PHP, Ruby, Python., Perl, ASP.NET, ASP Classic, Java whatever...

Sunday, December 4, 2011

->download cake 1.3 ->then unzip and place it in the www of wamp server ->rename the unzipped folder to cake_1_3 ->in the app folder of wamp the core.php and database.php.default will be present. ->change the database.php.default to database.php and give the login details for the databse. Generally the username is root and the there is no password so leave it blank. ->now when you go to the browser and give http://127.0.0.1/cake_1_3/ you can see that the database connection has been established -> when you just give 127.0.0.1 then you will find cake_1_3 in the my projects area. ->Now there will be a error thaat module rewrite is not activated this you have to do by going to the wamp server at the bottom. Click on that go to Apache and click on modules and tick the rewrite module. Once done dont forget to restart the services in the apache wamp server. -> now you can go to the browser and find that everything appears in green.

Why use framework

Some of the other advantages of using a framework are: MVC structured code:MVC or Model- View- Controller is a well-known design pattern that demarcates the database and business logic from the presentation layer. This results in simple, clean and understandable code. Maintaining the coding standards:The MVC code is easy to write and also follows the code restrictions. Due to a uniform and standard coding, things are simpler and bugs can be resolved faster. This will save you a lot of worry and it will be easier to find out where the problem lies. Attractive URLs:Almost all these frameworks make sure that your URLs look attractive and easy to access. Apache takes care of requests for a particular URL, which further invokes the central framework object. The end-users can only see the URL pasted on their browser, and cannot make out that you are using PHP for the same. Get all the help you need:When you use a PHP framework, you no longer need to manually enter all the validation criteria for forms etc. The only thing you should do is instantiating a new form validator object and instruct it as you wish. It will handle the rest. Finish coding faster:Frameworks help the developers to write code in lesser time than usual. This leaves them with some extra time for themselves.All said and done, there is always the option of writing your own framework for your application. However, when you have something like CakePHP doing a lot of nifty things for you or a Zend that provides great functionality, you can select one depending on your requirements. So just choose a framework and start coding!
Have been working the whole day on this but at the end of the day it seems that it was aall a matter of seconds. All I had to do was just download the wamp server and it installs all the apache web server mysql buddy PHP The problem thaat i was facing was that since i had already installed the php ND MY sql the confiqurations where not being set while installing the wamp server and hence it was red in the tray. But once i uninstalled all of them and restarted the machine and had wamp installed it turned to green and in the process making me red for I have been working alll day which couldhave been accomplished in seconds. Anyways i had learnt my lesson. So goodnight guys.
installing yii was not successfull. So decided toinstall wamp server first. Installed it but it is not wirking Fixed the issue. I was unable to interact with the wampserver icon in the sytem tray to get it to do anything. If wamp server seemed to have installed fine but it doesn't get up and running all the way and doesn't let you do anything with it and just sits there in your system tray, not responding to your clicks, here's a guide to fix it. I tried a bunch of solutions including disabling UAC and none of them helped. I disabled IIS and I still couldn't click WAMP's icon in the systray. Wamp wasn't up and running all the way. Now here's a quick gist of what worked, please follow the step by step instructions below to be sure you're doing it right. I went into my "C:/Program Files(x86)" folder on my Win 7 64 installation (I'm guessing it's gonna be "C:/Program Files" on XP) and deleted the "PHP" folder. Not sure which of my installers put it there, but it certainly wasn't WAMP and WAMP is what I need to be using now. The PHP folder seemed to have been interfering with WAMP's PHP setup. After you have deleted the PHP fodler in Program Files, let WAMP setup everything the way it needs to and you should be good to go. I have re-enabled UAC with WAMP working perfectly. However, I chose to leave IIS off since I believe that could affect WAMP. To summarize, here's what resolved the issue for me: 1 - Uninstall WAMP 2 - Delete any remnants from installation (In my case, I deleted "C:/wamp" ) just to be sure you're starting off with a clean slate 3 - Find the "PHP" folder in "C:/Program Files(x86)" or in "C:/Program Files" and delete it 4 - Ensure you've disabled IIS. If you aren't sure about how to do so, look for yfastud's comment in this thread. Restart the computer if you just disabled IIS. If it has already been disabled AND the machine has already been restarted, proceed to step 5 5 - Install wampserver as admin, and launch it when the installation is complete. 6 - wampserver should be up and running and functioning fine. I really hope this helps all you people who are still stuck out there. Please let me know this worked just so I can feel good knowing I helped someone make their day better. Isn't it always better when things work the way they're supposed to..? Have a nice day and good luck... finally got winamp server running.....this took up a lot of time. But the big question now is why did i install wamp server
couldnt sleep so installing yii instead of cake.. Had to install wamp server. Done without any issuses. Used this link to install http://yiitutorials.net/easy/step-by-step-guide-setup-the-yii-framework
ooooooooooooooooooohhhhhhhhhhhh...............Successfullu instaalled mysql. After a long time using sql queries. This is a bit different from teradata. So we have show databases show tables describe tables; use table use database; select * from taBLENAME limit n; so these are the basic queries. Now I have to add data to the database. I mean directly place it. It took me quite some time to find out that the program data file is hiddden and then had to go to folder options in control panel to turn it on. Even i am turned on. he he he. So lets place the data in the server Finally after all the hush hush the data has been retrieved from the database successfully. the username is root and the password is the usual one Now have to get used to php for that have to design a website. Lets see how it progressese. Signing off for the day.
for installing mysql these days we have a directt installer.msi file. But while installiing it asked for .NET framework 4.0. So downloading that and installing

WAMP

Now since I have researched a lot about php,ruby and python I stick to the basics and prefer pphp.
So now i have to look out for the framework. There are n number of frameworks but I prefer cackephp no specific reason.

prerequisite for running php is installing mysql.
I have configured for iis now have to change to apache web server(aaaaaaaaaaaaaaaaahhhhhhhhhhh)
So after doing this lets install cakephp.
Hope everything goes smoothly.

Ruby vs Python

Ruby is a language and Rails is framework
Python is a language and Django is fraamework

Why PHP Is Fun and Easy But Python Is Marriage Material

Dharmesh thanks mate


I think a lot about choices and decisions at startups. That is the life of a software entrerpreneur: It’s a stready stream of hard work, occasionally punctuated by some really hard decisions. The decisions that are hardest are not the ones where you have the least amount of information — they are the ones that are hardest to undo or reverse.

By this defintiion, picking the language/platform to use at a startup is one of the harder decisions. It’s very hard to change this decision. Here’s the story of how I made not one but two big language/platform decisions, neither of which really worked out — and which I’m now paying the price for. The good news is that the company did very well despite these mistakes for two simple reasons: First, I didn’t make awful choices — just sub-optimal ones. Second, success in the early days of a startup is much more about getting market validation and traction than anything else. And, as it turns out, customers really don’t care whether your SaaS application is built in PHP, C#, Ruby or Python.

On with my story…

When I kicked off my startup, HubSpot, over 4 years ago (June, 2006) I wrote a set of articles on the topic of choosing a language/platform — specifically for startups. At the time, I was trying to pick between C# and Python for my then fledgling startup. The article was aptly titled, “Python vs. C#: Business and Technology Tradeoffs”. The article was very widely read, and still continues to drive traffic (likely because it ranks #1 in Google for “Python vs C#”).

I made some pretty good arguments in that article, most of which I still stand behind to this day. We ended up picking C# at the time. The decision came down to one strong, dominant factor: I was more productive in C# than I was in anything else, and that mattered — a lot. Why? Because it was basically just me. In the early days of a startup, you’re looking to mitigate unnecessary risk and get to market as fast as humanly possible. Within reason, my general advice is “go with what you know”. By “within reason”, I mean if what you know is a relatively mainstream language (Python, PHP, Ruby, Java, C# etc.). There are definitely times to learn new things and experiment with new technologies — the early days of your product development is not the best time. Either you need to know the language/platfrom from soup to nuts yourself — or you need to have immediate access to people you can rely on, that do. So, I picked C# and .Net — which frankly, if I had to do over, I wouldn’t have picked (more on that later). But, based on my circumstances at the time, I thought I chose rationally, and I was solving for the company, not my ego or enjoyment. The good news is that the mistake wasn’t fatal. [Side note: Patrick, if you’re reading this, I’ll admit, you were right. I should write a follow-up article on this on the topic of trust].

A couple of years later, I was faced with a different decision. I was working in HubSpot Labs. HubSpot Labs is a “startup within a startup”. We don’t have a written charter for HubSpot Labs (because frankly, I’m not exactly sure how to write one of those, or if I did, who would read it). But, the idea was to build cool free tools (see http://grader.com). These tools pulled in website visitors, increased visibility of HubSpot, and helped us get some interesting data that we used to benefit our core business. At the time all this was happening, I was trying to decide between PHP, Python and Ruby. I knew I wanted a dynamic language, and I had whittled things down to those three choices. I picked PHP, and Python was my second choice. Though Ruby/Rails would likely have been fine too, there’s something about it that I just found unnatural. If I had a dog, the dog would bark at the Ruby code. Python just feels more “natural” to me. But that's likely related to my C/C++ background. But, I digress. Back to why I chose PHP: Main reasons were: 1) It was easy to get started. 2) It had decent OOP support. 3) There were lots of other people using it. 4) It was lingua franca on the web. The language served me well. It was an easy transition from my C++/C# days, and combined with an MVC framework like CodeIgniter, things weren’t too bad. I actually had fun developing in the language, and after the first few months, I felt that the code I was producing was about as good as some of the code I’m most proud of throughout my professional career.

I have a love/like relationship with PHP. Sometimes I have good days, and sometimes I have great days.

During my 2+ years of PHP development, I launched a bunch of web applications. Cumulatively, they’re getting millions of page views a month now. Not bad. No major issues.

So, you might then be wondering, why switch away from PHP and move to Python now? Don’t I have better things to do with my time? Did I give in to peer pressure or somehow decide I wanted one more chance at being one of the “cool kids”. I’ll attempt at answering some of those questions.

Why HubSpot Labs Is Switching From PHP to Python

Here are some of the tradeoffs (PHP wins on some fronts, Python in others), for those faced with the decision now. Note: The context here is a startup that is a bit further along (HubSpot was 2 years old and had about 50 employees at the time of this decision). But, some of the arguments still apply, even if you’re earlier stage.

1. Python is well designed, PHP is not. Although PHP is a completely workable language — it’s still not an elegant language. In the short to mid-term, that’s not a particularly big problem. Any experienced developer that can create great software can likely also write really good software in PHP. (I’m talking about PHP 5+ here — and ignoring all the ugliness that came before). But, there are limits. I’m not particularly bothered by the weird idiosyncracies of PHP (the “needle vs. haystack” problem). I can get over that pretty quickly. It’s the other stuff — which is deeper and more nuanced. As a “classically trained” developer (undergrad CompSci), I appreciate that Python gets a bunch of the language stuff “right”. It’s about how reflection is implemented. How functions are first-class objects. It’s all the little things, which in aggregate, make for better cleaner, more elegant code. Although it’s perfectly possible to write good code in PHP, it’s much easier to write great code in Python. It is clear that Python was architected to be a robust, well-designed and well thought-out language. PHP “just happened”. Not to knock PHP (I actually love working in PHP) — but Python is just a better language. [Note: I still am viscerally troubled by the using whitespace to indicate code structure, instead of just using braces like the rest of the sane world, but it’s a relatively minor gripe].

2. Python has a “clear” web framework winner: Although conceptually I like having choices (and I believe in openness), practically, I really, really like standards. All things being equal, I much prefer that all of us are working with the same frameworks and libraries. Python mostly has that with Django. It’s close to the de-facto choice for web frameworks in Python. Maybe not quite as dominant as Rails in Ruby-land — but close. Contrast that to PHP where we have Symfony, Zend, CodeIgniter, Kohana — and others. On the one hand, this kind of competition is good. I’m sure they’re all great frameworks (I use CodeIgniter right now), but the fact that there’s no clear winner means that the market is fragmented. And, fragmentation is bad. It’s particularly bad when it comes to web frameworks. The learning curve these days is not a new language (it takes a proficient programmer just a few days to get her arms around the basics of a new language). The learning curve is with the framework. The deeper and richer the framework is, the more there is to learn. Don’t get me wrong, I love frameworks (dating back all the way to the Object Windows Library that Borland had for TurboPascal). Frameworks have an upfront cost, but provide a ton of value long-term. But, if there are a bunch of different frameworks floating around, the odds that any given person is working in the same framework you are lower. And as such, getting someone new up to speed takes longer. In Python land, the clear web framework winner is Django. This means that if I find a great Python developer for the team (more on this later), they’ve likely used Django. That makes life much easier.

3. PHP is lingua franca in the world of the web. One of the the early reasons I picked PHP, which is still true, is that it has become lingua franca on the web. If someone releases a new API, and provides a “wrapper” for convenience, the first language supported will likely be PHP. If you’re looking to build WordPress plugins, you’re going to be doing it in PHP. In fact, many of the biggest open source projects out there, that you might consider leveraging, are based on PHP. So, knowing PHP is a very, very useful thing. My advice is that even if you do decide to go with Python — be at least “reasonably fluent” in PHP — it’ll come in handy.

4. Low-End Web Hosting is a non-issue. Many people make the argument that PHP is a great choice of platform for startups because you can find a $9.99/month hosting provider that supports PHP. No need for higher-end hosting and you save money. I think that’s a poor reason. Yes, it’s nice to know that there are thousands of hosting providers out there that all support PHP, and that you can get hosting really cheap as a result. But, if you’re picking a language based on spending $10/month vs. $50/month or $100/month — you’re focused on the wrong thing. Assuming that you stick with your low-cost provider for 18 months (a long time in startup-land), you’ll have maybe saved $900. That’s just not a lot of money. My advice: Recognize that there are things like Amazon EC2 out there now, and over time, it’s going to be just as easy to spin up servers for Python as it is for PHP.

5. Not all Python fans are fad-focused elitists . One of the arguments I hear continually online goes something like this: “PHP is a perfectly fine language, and folks pushing Python are just fad-focused elitists that want to work on the latest cool new thing, instead of just picking what works and focusing on building apps that solve customer problems.” I’m paraphrasing a bit, but that’s the gist of it. I can see why people sometimes feel this way. Lets say you’re something like me: You’ve learned PHP and used it to build and launch “real world” apps. For you, the cost of change is high (maybe even prohibitively high). Really hard to justify the change, because though you might grudgingly admit that Python is better, it’s not better enough to warrant switching. You’ve got a startup to grow, you can’t be bothered with trying to join the cool kids. But, I’m to advocate for some empathy here. Lets say you were on the outside looking in (i.e. you’re a gifted developer looking to join a cool new startup). Since you’re really good, and demand for great developers always exceeds supply, you essentially get to pick where you want to work. All things being equal, you’re going to pick the place that is doing Python vs. PHP. Of course, not all things are equal, and you might actually pick the startup whose business you think has the best chances of success or whose founders you like and respect. But, often, it’s hard to know that stuff upfront, so you focus on what you do know — that developing in Python’s a better “bet”. I wouldn’t fault people for solving for their self-interest and preference. They’re not trying to talk you into switching, they’re just saying that it matters to them.

6. Low Learning are less important than high ceilings. If you’re in the software development business as a career choice (i.e. you’re going to do it for a long time), then the larger consideration should be what’s going to create the most value for you long-term. Some languages, like PHP, have very low learning curves — it’s super-easy to get started. And, that’s awesome. It’s easy-going, fun, and you feel super-productive (especially if you’re making a big change to something new). But, once you get past that initial dating period, you need to think about your future. You want to forge a relationship with a language that will be long-lasting, rich and deep. A language that brings the best out in you — over the long-term. Apologies for the strained metaphor here — but it had some resonance for me. So, back to the title of this article: PHP Is Fantastically Fun, But Python Is Marriage Material. Apologies for the strained metaphor, but it resonated with me. I’ve been programming for a long time, it’s my calling, and with any luck, I expect to do it for a couple of more decades. Since I'm going to get into a long-term relationship with a language, I figured Python's a pretty good bet.

Whew! That ended up being longer than I expected. If you made it this far, thanks for reading! By the way, if you’re a gifted Python developer in the Boston area and looking to join what is quite possibly the best company to work for in Boston (we won an award, so it must be true), would love to connect. The HubSpot developer interviews are a bit, um, rigorous, but I promise that you’ll meet some people that will have made the time spent worthwhile, even if things don’t work out. If you’re interested, just drop me an email at {dshah} @ {OnStartups}{daht-com}. By the way, in case you didn’t know, I’m the founder/CTO at HubSpot, and an all-around nice guy. Just ask anybody.

And, if there are any arguments you’d make on either side (PHP or Python), would love to hear them. Don’t want to start yet another language war, but I’m fascinated by the topic of making hard decisions at startups, and this is one of the hardest.

Saturday, December 3, 2011

CGI

I placed a php test script in the inetpub wwwroot folder and tried to run the script
http://127.0.0.1/phptest.php

But it was throwing a CGI handler error. After surfing through the found that it is not enough if ynetou select the IIS in control panel turn on off features. You have to go inside IIS ans specifically click on CGI.

And now it works.HURRRAAAAAAAAAAAAYYYYYYYYYYYYY.

use this to install php

http://php.iis.net/

Configure IIS

Did you know: Configure Web site content location in IIS 7 / 7.5
by vivek
1/5/2010 3:35:30 AM

In IIS 6.0, you have an option to host a Web site with Web content on the same computer, or a shared location on another computer or redirect the request to a URL. If you look at IIS 7 / 7.5 management console you would wonder where all the settings are and this post will guide you through the same.

I. Directory located on the same computer

In IIS 6.0
Right click on Web Site (Default Web Site in our case) and click on Properties
Click on Home Directory tab



In IIS 7 / 7.5
Click on the Web Site (Default Web Site in our case)
In Action panel under Edit Site, click Basic Settings…

php not working

Good site to know about PHP


http://php.about.com/od/programingglossary/g/server_side.htm



You've gone through our tutorial and written your first PHP program, but when you go to run it all you see in your browser is the code, the program doesn't actually run. What went wrong? Well the most common reason for this is that you are trying to run it somewhere that doesn't support PHP.

If you are running PHP on a web server, make sure you have a host who is setup to run PHP. If you aren't sure, the bests way to find out is to simply e-mail them and ask.

If you are running your PHP script on a Windows computer, you need to manually install PHP. Once it is installed your browser should run your PHP programs directly from your computer.

PHP

Hi i am starting from the scratch. Since I know a bit of HTML and java scripting I am moving on to PHP which is Sever side scripting.

Form Validation
User input should be validated on the browser whenever possible (by client scripts)(java scripts). Browser validation is faster and reduces the server load.

You should consider server validation(php) if the user input will be inserted into a database. A good way to validate a form on the server is to post the form to itself, instead of jumping to a different page. The user will then get the error messages on the same page as the form. This makes it easier to discover the error.

The first site that I have developed has come out well. So i am starting of with installing the IIS. And this can be done by
->Start
->Control panel
->add or remove programs
->turn on or off windows settings
-> now select IIS and give ok
->NOW GO TO ADMISNISTRATIVE tools in control panel
-> click on iis

Now I have downloaded PHP from
Download PHP for free here: http://www.php.net/downloads.php
Unpack the content of the zip archive into a directory of your choice, for example C:\PHP\.
The inetpub is found in the C drive and inside that folder you find wwwroot