Wednesday, December 10, 2008

For Tips and Tricks for programming stuff

Smashingmagazine.com – a collection of fancy and developer snippets

this is for java script- http://www.smashingmagazine.com/2008/09/11/75-really-useful-javascript-techniques/

For Sharing documents Online

scribd.com – mainly used to share the product key for trial version softwares..

Friday, October 31, 2008

News from Microsoft

Microsoft used this week’s Professional Developers Conference to flesh out a bunch of codenames that had been circulating for the past several months — everything from “Red Dog,” to “Geneva,” to  “Zurich.” At the Los Angeles confab, the company also introduced a few brand-new codenames.

Among those that have caught my eye so far:

Anchorage: “Anchorage” is Microsoft SyncToy Version 2, which will be part of Sync Framework Version 2. Anchorage was mentioned during a PDC presentation on the Sync Framework Version 2 release. (There was some recent confusion as to Microsoft’s Sync Framework release schedule, as the Redmondians rolled out two different Sync Framework releases labeled as “Version 1.”)

Microsoft released a first Community Technology Preview (CTP) build of Sync Framework Version 2 on October 28. Version 2 sounds like it will include more providers and simplify how developers interact with the framework.

Huron: “Huron” is a “cloud-based data hub” that is another of Microsoft’s newly unveiled SQL Services Labs projects.  Huron relies on the Sync Framework and SQL Services (formerly known as SQL Server Data Services) to publish databases, reports, forms and objects to the cloud, back-up and restore database apps to the cloud, and more. No word on when or exactly how Microsoft plans to commercialize Huron.

Mojave: Yes, we all know about the “Mojave” release of Windows Vistathat was part of the company’s marketing plan, designed to prove that users hated Vista because of its reputation more than its actual feature set. But there’s another Microsoft “Mojave” that has nothing to do with Windows. This is the “Mojave” release of Microsoft Commerce Server, which the company detailed at the PDC this week.The Commerce Server Mojave release includes a “multi-channel” foundation, out of the box shopping (with Live and SharePoint integration, and an Office-like interface. Commerce Server Mojave has been out in CTP test-build form since August of this year. The final version is due out in Q1 2009. (The next two versions of Commerce Server are on the books, too: One for late 2009 or early 2010, and another for late 2010/early 2011.)

Paris: “Paris” is part of Microsoft’s Office Communications Server family of products. Microsoft is in the midst of private testing of Office Communications Server Release 2 (R2), the next version of its integrated VOIP/conferencing/instant messaging product for business users — the final release of which is due in late 2008 or early 2009. But Paris seems to be a new set of Windows Presentation Foundation (WPF) and Silverlight controls and programming interfaces that will be integrated into OCS Version “Next,” which is part of the Office 14 wave (and thus due in either late 2009 or 2010).

Saturday, October 25, 2008

What does the return in main method actually do

sample c# program

class MainReturnValTest
{
static int Main()
{
//...
return 0;
}
}


a batch file is used to invoke the executable resulting from the previous code example. Because the code returns zero, the batch file will report success, but if the previous code is changed to return a non-zero value, and is then re-compiled, subsequent execution of the batch file will indicate failure.



rem test.bat
@echo off
MainReturnValueTest
@if "%ERRORLEVEL%" == "0" goto good

:fail
echo Execution Failed
echo return value = %ERRORLEVEL%
goto end

:good
echo Execution Succeded
echo return value = %ERRORLEVEL%
goto end

:end

Saturday, October 11, 2008

visual Studio Tweaks

 

Put conditions on breakpoints:

There is a possibility to tell the debugger not to stop on a breakpoint every time. You can add a condition to the breakpoint and the debugger will stop there only when this condition is met. This is very useful when debugging a code that is continuously called (by a timer, …). All you need to do is right click on a specific breakpoint, choose Condition and the following window appears:

image

As you can see there are two radio button options:

  • Is true: You can write any code that would compile inside an If statement and the debugger will stop only when this code returns true.
  • Has changed: The debugger will stop only when the specified variable has changed.

A very Useful tip :

My computer slows down during visual studio startup.

Should u encounter similar kind of problem , here is the solution

Technorati Tags: ,

.

As Visual Studio  turns out, there is a file called ExpansionsXML.xml in your "local settings" folder, which gets written by VS a lot, thus slowing down the application - marking it as "read only" by changing the properties solves the problem.

Abosulute path – C:\Documents and Settings\A.P.Vijay\Local Settings\Application Data\Microsoft\VisualStudio\8.0\1033.

Wednesday, October 8, 2008

Some Interview Questions

What is meant by deadlock in database?

Transaction is unit of work done. So a database management system will have number of transactions. There may be situations when two or more transactions are put into wait state simultaneously .In this position each would be waiting for the other transaction to get released. Suppose we have two transactions one and two both executing simultaneously. In transaction numbered one we update student table and then update course table. We have transaction two in which we update course table and then update student table. We know that when a table is updated it is locked and prevented from access from other transactions from updating. So in transaction one student table is updated it is locked and in transaction two course table is updated and it is locked. We have given already that both transactions gets executed simultaneously. So both student table and course table gets locked so each one waits for the other to get released. This is the concept of deadlock in DBMS.

Monday, October 6, 2008

Wanna look at sample projects and download them..?

Elance.com –> here u can post ur projects and begin bidding them..

sourceforge.net –> to find high end projects like bittorrent ,azureus etc..

Sunday, October 5, 2008

Some useful websites

 

looking for stuff to decorate web pages go for-- htmlgoodies.com

a very good site for examples and code snippets - http://programming.top54u.com 

meshplex - like wikipedia for article reference

for java :

serverside.com

javabeginner.com

javaworld.com

javaranch.com

Knowledge exchange :

experts-exchange.com

edugeek.net just like experts exchange

Wanna Download high quality songs :

mixx.com

smashits.com

tamilmp3world.com

tamilbeat.com

Sites for mere programming mortals :

topcoder.com

codeproject.com

happycodings.com

planetsourcecode.com

WebTemplates and UI decoration :

pro webtemplates.com
oswd
opendesigns.org
extjs

Evaluation of prefix using stack

 most of us know how to evaluate a postfix using stack.now let us see for the prefix version.

using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace prefix_eval_using_stack
{
    class Program
    {
        public static void Main(string[] args)
        {
            Stack s = new Stack();
            Console.WriteLine("Enter the prefix expression");
            string str = Console.ReadLine();
            int temp, x, y;
            char[] c = new char[26];
            int[] val = new int[26];
            int top = 0, index = -1;
            for (int i = str.Length-1; i >=0; i--)
            {

                switch (str[i])
                {
                    case '+':
                        x = Convert.ToInt32(s.Pop());
                        y = Convert.ToInt32(s.Pop());
                        s.Push(y + x);
                        break;
                    case '-':
                        x = Convert.ToInt32(s.Pop());
                        y = Convert.ToInt32(s.Pop());
                        s.Push(y - x);
                        break;
                    case '*':
                        x = Convert.ToInt32(s.Pop());
                        y = Convert.ToInt32(s.Pop());
                        s.Push(x * y);
                        break;
                    case '/':
                        x = Convert.ToInt32(s.Pop());
                        y = Convert.ToInt32(s.Pop());
                        s.Push(y / x);
                        break;
                    default:
                        index = -1;
                        for (int j = 0; j < top; j++)
                        {
                            if (str[i] == c[j])
                                index = j;
                        }
                        if (index == -1)
                        {
                            Console.WriteLine("Enter the value of {0}", str[i]);
                            temp = int.Parse(Console.ReadLine());
                            c[top] = str[i];
                            val[top] = temp;
                            top++;
                            s.Push(temp);
                        }
                        else
                            s.Push(val[index]);
                        break;
                }
            }
            Console.WriteLine("Result {0}", s.Peek());
            Console.ReadLine();

        }
    }
}

My Team mates

 

my team

Me .. along with the other captains of the college..

 

all captains

Wednesday, May 28, 2008

c++

static data members in c++
eg program ..

// static_data_members.cpp
class BufferedOutput
{
public:
// Return number of bytes written by any object of this class.
short BytesWritten()
{
return bytecount;
}
// Reset the counter.
static void ResetCount()
{
bytecount = 0;
}
// Static member declaration.
static long bytecount;
};
// Define bytecount in file scope.
long BufferedOutput::bytecount;
int main()
{
}

c

same static member in different functions

#include
#include
using namespace std;
void change()
{
static int i;
i++;
cout<<<"\n";
}
void change1()
{
static int i;
i++;
cout<<<"\n";
}
int main()
{
change();
change1();
change();
change1();
getchar();
return 0;
}

Tuesday, May 27, 2008