Sunday, June 26, 2011

Review - X-Men: First Class

Yesterday I saw X-Men: First Class and it should be told that it was greatly first class movie. After long I am seeing a English movie with purpose and how X-Men got its origin and team. A great movie for X-Men fans. Its indulging for the whole time slot of the movie. We will know how Charles Xavier is called Professor X and Erik got the name Magneto. How they formed the team to save the human race and then separated. It has very good visual effects, the scene where Magneto lifts the submarine is mind blowing.

I will go with 4 out of 5 for the same and highly recommend to have a go at this.

Wednesday, June 22, 2011

Tata Aria 36 Features


Above image gives all 36 features in order.

The below are all 36 features but not in order.
1)Adapterra 4x4
2)Wide chrome lined signature Tata grile
3)Sunvisor Extenders
4)Keyless Entry with immobilizer with perimetric Alarm System
5)Luggage Compartment light
6)Torque On Demand - Transfer Case
7)Wrap around dual barreled headlamps
8)Large dual Elliptical Exhausts
9)Pillar Mounted AC Vents
10)Chrome inside door handle
11)Ventilated Disc Brakes with twin pot caliper
12)Darkness sensing Headlamps
13)Rigid body construction & Crashworthiness
14)All Disc Brakes
15)Flat fold 2nd and 3rd row seats with sliding 2nd row
16)Mark II Gear Box
17)Air bags - Driver and passenger Air bags, Side Airbags, Curtain Airbags
18)Bonnet auto lift
19)Glove box chiller
20)Reverse Guide Camera /System
21)Cruise Control
22)Electrically adjustable foldable outer mirrors
23) Chrome waistline on windows
24)Audio and Phone switch on stearing
25)AC with Automatic climate control
26)TATA Blue connect (5 phones pairing capable)
27)Hight adjustable driver seat
28)Full Leather upholstery
29)Goggle cases
30)Roof storage bins
31)Rain Sensing Auto Wipers
32)GPS Navigation system
33)Seat Belt with pre-tensioner
34)Body over Frame construction with Hydroformed frame members
35)ESP/TCS
36)ABS with EBD

Sunday, June 05, 2011

"Ready" - Hindi Movie

Today I saw Ready, the new Salman Khan movie which was purely a one man show. The movie as a whole is just highlighting Salman and other characters just are there for filling up teh script for the same. It is to be a full family entertainer but I don't get the esence of just highlighting one person through out the movie. Any way coming to the movie it is a pure entertainer with a avery weak script and screenplay. It was to be another Dabang style movie but failed to live up to the hype. Story is basically on how Salman can marry his lady in love whose two chaha's are mafia don's. It has some life in some parts where some dialouges make us laugh but as a whole it is boring and long for a 2 hour 15 min movie. Asin is just to make up for the script and glamour purpose. I go with a 2 out of 5 for my rating for the movie purely for Salman Khan.

Sunday, May 22, 2011

Seniors - Malayalam Movie Review

Today I saw latest college theme based Malayalam movie "Seniors". In my opinion the movie is a one time view and the script would have been added more punch. But as a whole it was a good movie which takes us to the old college days.
The movie revolves around friendship of four friends from college and a mysterious killing of one of their classmate female friend.
The four seniors are back to college to find out who had actually killed the girl for which Jayram accepted the blame of killing upon himself and spend his 12 years in Jail. Jayram wants to find who actually did the crime just to let his lady love played by Padma Priya know the truth.
The film is a suspense thriller on who did the actual crime and is entertaining through out the first half. Second half is somewhat lengthy with out of context item song. Suraj Venaranmoodu is very much in the movie with his usual timely comedy. The comedy in the film is very much timely and no nonsense stuff. Biju menon is stand out performer in the movie with his timely comedies with his son and wife.
I will go with 3.5 out of 5 for the same.

Friday, March 25, 2011

Make Me Read

Found a good place to buy books cheap - www.makemeread.com
They have great offers on all types of books.

Wednesday, July 21, 2010

Nokia Kinetic Concept

http://www.jeremyinneshopkins.com/index.php?/product/nokia/

IT Digest as on 20-July-2010

Industry News

The Art of Trolling: Inside a 4chan Smear Campaign
"We are like... some kind of internet hate machine."
Source: Gawker

Antennagate: If you can’t fix it, feature it!
"Pity the poor schmoe who challenged Jobs to a verbal duel."
Source: Monday Note

David Blackwell, Scholar of Probability, Dies at 91
The first black scholar to be admitted to the National Academy of Sciences.|
Source: The New York Times

Five Ubuntu power tips
Friends don't let friends run as root.
Source: TechRepublic

Weekend Project: Install Web Apps in Chrome or Chromium
I hope your weekend was more exciting than this.
Source: Read Write Web

Android Development 101- Part 2:Graphical Elements
Adding a GUI and a "toast".
Source: Hack a Day

Microsoft puts IronPython, IronRuby under an Apache license
What does this really change?
Source: All About Microsoft

Windows Phone 7 in-depth preview
Judge for yourself.
Source: Engadget

Bomb-making tips, hit list behind Blogetery closure
One bad apple spoils the bunch.
Source: CNET

Bad Connection: Inside the iPhone Network Meltdown
"We're the phone company. We don't care, we don't have to."
Source: Wired

Developer News

What’s wrong with C++
Not enough GOTO.
Source: Code Improved

What To Know Before Debating Type Systems
Revisiting a classic.
Source: Steve's Blog

A re-introduction to JavaScript
"The world's most misunderstood programming language."
Source: Mozilla

Gems - Package Management For .NET
You can be cool just like the Ruby kids.
Source: devlicio.us

YubNub: The Web’s "Social Command Line"
Come out of your shell and join the party.
Source: WebWorkerDaily

A few things iOS developers ought to know about the ARM architecture
"On ARM, integer division is actually an operating system benchmark!"
Source: Wandering Coder

Breaking Up with IoC Containers
It's not you, it's me.
Source: Justin Bozonier's Blog

Multi-Core HTTP Server with NodeJS
Some tricks for getting JavaScript to scale.
Source: Yahoo! Developer Network

Kill hashtables, get shorter code
Functions gone bad.
Source: Ethan Herdrick

3 shell scripts to improve your writing
The [Elements] of <style>.
Source: matt.might.net


Android Devices Get Video Calling via Adobe

A new Adobe AIR demo is making the rounds today; it shows how Android phones can be used for user-to-user video calls.

Built using an upcoming release of AIR 2.5, this app is the Android (Android) and Adobe developer communities’ answer to FaceTime. The more generous in spirit would call this move “cheeky.” At any rate, it throws yet another log on the bonfire that is the Adobe-Apple public dialog.

The app was originally called “FlashTime,” but the name was changed to avoid some confusion.

Mark Doherty, Adobe’s Flash Platform Evangelist for mobile, said this isn’t an official release from Adobe; rather, it’s something he built over the course of three days to test the features of AIR 2.5 for Android. We’d love to show you his demo video here, but unfortunately, that clip is currently password-protected and not for public consumption.

Doherty doesn’t plan to release the app as a product, but he said he will open-source the code. He expects the code to be stable and finished by next week; interested parties should contact Doherty directly.

AIR and Flash for Android were announced first in February.

Android and Adobe as entities have been getting awfully chummy with one another ever since Apple declared war on Flash. With jingoistic barbs flying from all sides, it’s hard to have an unbiased, logical conversation uncolored by emotion when it comes to this subject. But without weighing in on one side or the other of the grander to-Flash-or-not-to-Flash debate, we can say that Android device users deserve the same ability to make video calls that iPhone 4 users now have, and we applaud the developers of any application that will help users have this ability.

One of the added bonuses of working on an open platform is that you can create apps like this and use the devices’ hardware in innovative, interesting and even “cheeky” ways without being blacklisted by the OS creator or device manufacturer. We can’t wait to see other Android video-calling apps in action.

What’s your opinion of this demo so far? Do you think more video-calling apps for Android phones will be coming up soon?

Courtesy: http://mashable.com/2010/07/20/android-video-calling/

What’s wrong with C++

…from the point of view of someone that actually uses it? The bits from my last post haven’t even dried up yet, and another fascinating rant about C++ has popped up, this time from Zed Shaw.

What’s interesting about these rants is that the ranter isn’t really using C++. They’re C hackers, or they program mostly in Python, or they used C++ at the beginning of the 90s. So I thought it would be interesting to write about my experience with C++.

First, a little background info…

I started learning C++ about 10 years ago, first the C part and then the ++ part. Nothing serious, just toying around with small projects to learn and have fun. I didn’t use it professionally until about four and a half years ago, when I started working on a large scale C++ project. Since then I’ve used it almost daily.

Two and a half years ago I came across Qt almost by accident: the large scale project that I was working on was being ported to Linux and the port was enabled by Qt. Since then, I’ve used Qt almost daily too.

Right now I’m working on a Qt C++ project that’s about 25KLOC in size and growing. It’s a multi-platform, threaded client-server and it’s a line of bussiness app if you’d believe it. Working on it is fun, and I’m glad that I picked Qt and C++.

Okay, enough with the history, what about C++ and its warts?

Issues that bother me in practice

  • Compile times and the include dependency specification: this is a problem that every C++ programmer will have sooner or later. It can be delayed and mitigated with a good physical design, precompiled headers and distributed compilers/linkers, but it can’t be solved without throwing away compatibility to existing code completely.
  • The small standard library: not a big issue in itself, since you can find other libraries for anything you might want to do, but it’s unpleasant to install all those libraries and make sure that they work together nicely. Using more libraries instead of a large standard library also means that you have to wait on each library vendor to port the library to different OSes/compilers, upgrade it and so on.
  • lack of reflection: I like Qt’s moc and I miss it in standard C++. I also wish it had more features.
  • lack of type inference: even with typedefs I’m typing more than I have to. C++0x will thankfully fix this.
  • localization & internationalization support in the standard library: the implementation is complicated and difficult to use. After browsing through C++ IOstreams and locales I’ve decided to just use Qt and not worry about it.
  • template error messages: they’re long and hard to understand. I usually parse a template error message in about 10-20 seconds depending on the difficulty. The worst offenders are metaprogramming-heavy libraries such as Boost Spirit. In that case, I try to analyze the code first and see what might be wrong. STLFilt can help.
  • functional programming support: this will get better in C++0x, but I can’t use C++0x now, at least not on all platforms and with the other libraries I’m using. Functors and free functions are cumbersome to use with algorithms.
  • tools and parsing: C++ has access to solid, mature tools, but those tools are much harder to develop than for other languages and generally don’t have as many features.

Issues that don’t bother me at all, but are regularly brought up in rants

  • memory management: never a problem for me. The last time I’ve had a memory leak was about two years ago and it got caught at code review. C++ has good support for memory management and good tools that can be used for runtime debugging. It might as well have GC, I wouldn’t be able to tell the difference.
  • memory corruption: memory corruption can be both exciting and scary. Exciting because you have to go down to the memory address level and do some sleuthing, scary because it can take days or weeks to find some bugs. I usually don’t sweat these bugs, they were very rare in the code I’ve worked on, and when they occurred they were easily found. e.g: the last one I’ve solved in maybe 30 seconds, the tools have gotten very good. The worst I’ve encountered was a problem with an embedded STL in a large project that took a week to figure out and only because of my lack of experience at that time. Some people love debugging.
  • multi-threading: it is hard in most languages. The trick is using higher-level libraries such as QtConcurrent, Intel’s TBB or OpenMP. Sure, if you’re doing PThreads it’s going to be painful.
  • string formatting and string support: I generally don’t use iostreams or std::string, but when I did I found them acceptable. Unicode support was the biggest issue, but “there’s a applib for that”. Now I use Qt’s strings and streams; they’re as easy to use as Python as far as I’m concerned. Don’t want Qt? Use boost::format or any other of the nice formatting libraries.
  • templates in general: I use them when needed to break dependencies, write generic code, etc. I try to keep template code manageable, without going into the metaprogramming stuff; they are one of my favourite C++ features.
  • exception rules: I don’t see any problem with exceptions in C++ as long as you’re using RAII. Other languages (e.g.: Python) use them extensively for error handling.
  • STL & Boost: I’ve used both for a lot of time and I find them very useful. Contrary to popular belief, most templates don’t use metaprogramming techniques. You don’t have to install Boost, it’s mostly headers. A large part of Boost became TR1 so it should even ship with your compiler now.
  • const: This one came from Zed, I don’t think I’ve seen that many people complain about const. Personally, I constify everything that I can, even const type* const.
  • everybody learns a different 10% of C++: strange, because I use all of it and always have. It’s not that hard either, I’m not a genius… Sane projects have coding guidelines and architectural documents. If your teammate can waltz right in with a template metaprogram or is generally macro-happy and it doesn’t raise eyebrows at code review, you have bigger problems than using C++. I’ve had to fix two C++ projects so far; my only job was to do what it takes to make the programs work and ship them to the customer. Most problems were memory leaks, superfluous use of casts, functions that didn’t compile on all platforms and so on. Fixable. What I couldn’t fix – and had to patch up as best as possible – were issues with the program logic and architecture. Those were not caused by C++.

Ok, but what about…

You probably have your favourite C++ misfeatures. Odds are that they don’t matter than much in practice, or workarounds are available. Maybe I just got used to them and consider them a C++ tax.

This article is from http://blog.codeimproved.net/2010/07/whats-wrong-with-c/

Thursday, August 13, 2009

Web Parts Layout in .NET 3.5


This image shows how a Web part layout works in .NET 3.5. Click on the image to get a larger picture.

IIS Working - Diagramatical Explanation


This diagram shows how an IIS works. Click on the image to see larger picture.

.NET 3.5 - MVC Architecture

I am here showing a simple diagram to explain how .NET MVC architecture works. May be it will help any novice users to get started with .NET MVC. You can click on the image to get a clear view.

Tuesday, August 11, 2009

Trivandrum Swine Flu Contact (Influenza H1N1) - CONTROL ROOM

Trivandrum Swine Flu Contact (Influenza H1N1) - CONTROL ROOM

Office of
Addl.DHS (Public Health),

Near Govt.
General Hospital Trivandrum

0471 2466 828

Dr. Amar

0 94474 51846

Dr. K. K
Mohammed

0 94473 27569

Dr. Shaukat
Ali (Joint Director,NICD)

0 94477 02444


AUTHORIZED HOSPITALS FOR TREATMENT OF H1N1

in TRIVANDRUM

Medical
College Hospital

0471 2444 270

General
Hospital

0471 2443 870


Other Help lines

Integrated
Disease Surveillance Program (IDSP)]

1800 11 4377

Outbreak
Monitoring Cell of National Institute of Communicable Diseases

011 2392 1401


Swine Flu:Facts to Know & Guidelines

What is swine flu?

The mutated human influenza virus emerged in April in Mexico and has spread to 168 countries. Though the virus has been sequenced fully enabling the manufacture of a vaccine, the data is still not comprehensive. Swine influenza, or ‘swine flu’, is a highly contagious acute respiratory disease of pigs, caused by one of several swine influenza A viruses that cause regular outbreaks in pigs. Morbidity tends to be high and mortality low (1-4%). The virus is spread among pigs by aerosols, direct and indirect contact, and asymptomatic carrier pigs. Outbreaks in pigs occur year round, with an increased incidence in autumn and winter in temperate zones. Many countries routinely vaccinate swine populations against swine influenza. Swine influenza viruses are most commonly of the H1N1 subtype, but other subtypes are also circulating in pigs (e.g., H1N2, H3N1, H3N2). Pigs can also be infected with avian influenza viruses and human seasonal influenza viruses as well as swine influenza viruses.

The H3N2 swine virus was thought to have been originally introduced into pigs by humans. Sometimes pigs can be infected with more than one type of virus at a time, which can allow the genes from these viruses to mix. Pigs are therefore also called as “mixing vessels”, resulting in an influenza virus containing genes from a number of sources, called a ‘reassortant’ virus. Although swine influenza viruses are normally species specific and only infect pigs, they do sometimes cross the species barrier to cause disease in humans.

So far, the recent outbreak due to the new strain of influenza virus A (H1N1) has had cases reported from North America, Mexico, Spain and UK. Suspect cases have been reported from New Zealand and France and these are being investigated.

How does it spread?

It spreads in the same way as seasonal influenza – through direct contact (being within one metre of an infected person) or indirect contact (touching a contaminated surface). People usually get swine influenza from infected pigs, however, some human cases lack contact history with pigs or environments where pigs have been located. Human-to-human transmission has occurred in some instances but was limited to close contacts and closed groups of people.

What are the clinical symptoms?

Generally clinical symptoms are similar to seasonal influenza but reported clinical presentation ranges broadly from asymptomatic infection to severe pneumonia resulting in death. Patients experience high fever, cough, and sore throat, symptoms similar to typical influenza, with some patients experiencing diarrhoea and vomiting. The cases can rapidly progress to severe and unusual pneumonia.

What are the implications for human health?

People do not normally get swine flu, but outbreaks and sporadic human infections have been reported. Swine flu viruses have been reported to spread from person-to-person, but in the past, this transmission was limited and not sustained beyond three people.

Since typical clinical presentation of swine influenza infection in humans resembles seasonal influenza and other acute upper respiratory tract infections, most of the cases have been detected by chance through seasonal influenza surveillance. Mild or asymptomatic cases may have escaped from recognition; therefore the true extent of this disease among humans is unknown.

Is it safe to eat pork meat and pork products?

Yes. Swine influenza has not been shown to be transmitted to people through eating properly handled and prepared pork (pig meat) or other products derived from pigs. The swine influenza virus is killed by cooking at 160°F/70°C, corresponding to the general guidance for the preparation of pork and other meat.

What is the prevention and treatment?

There are antiviral medicines one can take to prevent or treat swine flu. There is no vaccine available right now to protect against swine flu. The spread of the viruses that cause respiratory illnesses like influenza can be prevented by:
• Covering your nose and mouth with a tissue when you cough or sneeze. Throw the tissue in the trash after you use it.
• Washing your hands often with soap and water, especially after you cough or sneeze. You can also use alcohol-based hand cleaners.
• Avoiding touching your eyes, nose or mouth. Germs spread this way.
• Trying to avoid close contact with sick people.
• Staying home from work or school if you are sick.
Antiviral drugs for seasonal influenza are available in some countries and effectively prevent and treat the illness. Most of the previously reported swine influenza cases recovered fully from the disease without requiring medical attention and without antiviral medicines. Some influenza viruses develop resistance to the antiviral medicines, limiting the effectiveness of chemoprophylaxis and treatment. The viruses obtained from the recent human cases with swine influenza in the United States were sensitive to oselatmivir and zanamivir but resistant to amantadine and remantadine.

What is the risk of pandemic risk?

It is likely that most of the people, especially those who do not have regular contact with pigs, do not have immunity to swine influenza viruses that can prevent the virus infection. If a swine virus establishes efficient human-to human transmission, it can cause an influenza pandemic. The impact of a pandemic caused by such a virus is difficult to predict: it depends on virulence of the virus, existing immunity among people, cross protection by antibodies acquired from seasonal influenza infection and host factors.

Is there a vaccine for protecting humans?

There are no vaccines that contain the current swine influenza virus causing illness in humans. It is not known whether current human seasonal influenza vaccines can provide any protection. Influenza viruses change very quickly. It is important to develop a vaccine against the currently circulating virus strain for it to provide maximum protection to the vaccinated people.

Doctors now say, the best way to prevent deaths is to watch out for the nine key swine flu symptoms and give tamiflu at the earliest.
They are:
• Fever, which is usually high, but unlike seasonal flu, is sometimes absent
• Cough
• Runny nose or stuffy nose
• Sore throat
• Body aches
• Headache
• Chills
• Fatigue or tiredness, which can be extreme
• Diarrhea and vomiting, sometimes, but more commonly seen than with seasonal flu
What parents need to know?
• If your child has fever, throat infection, body ache, consult doctor.
• Must go to a doctor at any government facility meant for swine flu.
• Swine flu testing is done only at government hospitals.
• Nose and throat swabs will be taken and tested.
• Child will not be quarantined if there are no symptoms.
• If clinical symptoms exist, child will be hospitalised, and tamiflu will be given only if the tests are positive.
• Act early to ensure quick recovery.
• Rapid screening advised by private hospitals not legal.
• Do not go for rapid screening as it's not 100 per cent accurate.
In times of crisis the worst thing is to panic so if you or your family member is having flu-like symptoms without wasting time go to the nearest designated hospital or doctor and get tested if he advises.

If you have any queries don't listen to rumours and panic, call toll free helplines: 1075 or 1800-11-4377.

Swine flu is certainly curable with timely intervention, correct diagnosis and a five-day medication.

Some specific precautions to be taken against H1N1:
• A mask to cover your nose and mouth is a must. These are not just regular masks but a special one called N-95 which filter microbes in the air that you inhale and exhale.
• A mask is a must when you are in a high-risk situation particularly when you have to go to a hospital to get tested and you have to be in the waiting room. Also keep the mask on when you are in a crowded place.
• Cover your mouth surely while coughing and sneezing turn your head and cough into your shoulder.
• Wash your hands in case there is body contact with someone who's got cold and cough.

Following are guidelines about swine flu from the Ram Manohar Lohia Hospital in Delhi...
SWINE FLU SYMPTOMS: WARNING SIGNS IN CHILDREN
• Fast breathing or troubled breathing
• Bluish skin colour
• Not taking enough food or fluid
• Becoming irritable
• Difficulty in waking up
• Flu-like symptoms recur
• Fever with rashes

WARNING SIGNS IN ADULTS
• Difficulty in breathing
• Pain or pressure in chest, abdomen
• Dizziness
• Severe or persistent vomiting
• Not taking enough food or fluid
• Flu-like symptoms recur

TACKLING SWINE FLU: THE HOME GUIDE
• Isolate affected people, minimise contact for 7-10 days
• Stay at home, away from work, school and public places
• Frequently wash hands with soap
• Use wet cloth for cleaning, dusting
• Use disinfectants for cleaning
• Get plenty of sleep, be physically active
• Drink plenty of fluid, eat nutritious food
• Use face mask or handkerchief while coughing, sneezing

Thursday, August 06, 2009

Configuring HTC for Airtel GPRS

If you call Airtel Customer Support to get Live on your HTC Touch, they tell you that it is not supported on any Windows Mobile phone and suggest you to go for Airtel Mobile office, full GPRS service for a monthly rental of Rs. 499

After googling and fighting with Airtel, I managed to get the correct settings and I am able to run Airtel Live as well access most of the websites on standard HTTP protocol (SSL is not supported). Google Maps also works for me.

On Windows Mobile 6.x, the steps to configure are as follows:

1. Activate Airtel Live by sending the following SMS to 121: MASALA ACTIVE.
2. The service takes atleast 3-4 hours to get active. Restart the phone and resume configuring.
3. Tap Start -> Settings.
4. Select Connections Tab and tap Connections.
5. Select Advanced Tab, tap Select Networks button to bring up Network Management.
6. Under "Programs that automatically connect to the Internet should connect using:" drop down, tap the New button.
7. In the General Tab, type the name of the settings as Airtel Live
8. Select Modem tab, tap New...
9. Type the name of connection as Airtel Live, select the modem as Cellular Line (GPRS) and tap Next.
10. Type Access Point Name as airtelfun.com and tap next.
11. Leave username, password and domain blank and tap finish.
12. Select Proxy Settings tab. Tap "This network connects to the Internet". This should enable the next check box option.
13. Tap "This network uses a proxy server to connect to the Internet".
14. Type the proxy server as: 100.1.200.99 and then tap Advanced...
15. Tap HTTP, leave the server as 100.1.200.99 and change the port to 8080
16. Similarly tap WAP, Secure WAP and Socks, type the server as 100.1.200.99 but leave the port to defaults. These are optional settings.
17. Tap OK to close the Advanced proxy setup screen.
18. Tap OK to close the New connection screen.
19. The network management screen should now list the new connection you have created in the drop-down. Tap OK to close this screen
20. Tap OK to close the connection screen.

Now you are ready to fire your favourite browser. I have tested this on PIE it works for me.

Wednesday, August 05, 2009

Upload a file to SharePoint - ASP.NET

Hi,

If you all have wished you can upload a file to SharePoint programatically using ASP.NET / C#, then this is the place you need to look into. The code for doing the same is as follows,

public static bool UploadFileToDocumentLibrary(string sourceFilePath, string targetDocumentLibraryPath,
string userName, string password, string domainName)
{
//Flag to indicate whether file was uploaded successfuly or not
bool isUploaded = true;
try
{
// Create a PUT Web request to upload the file.
WebRequest request = WebRequest.Create(targetDocumentLibraryPath);
// Set credential details as entered by the user
//**********************************************
CredentialCache myCredentialCache = new CredentialCache();
// Dummy names used as credentials.
myCredentialCache.Add(new Uri(targetDocumentLibraryPath), "Basic", new NetworkCredential(userName, password, domainName));
// Call 'GetCredential' to obtain the credentials specific to our Uri.
NetworkCredential myCredential = myCredentialCache.GetCredential(new Uri(targetDocumentLibraryPath), "Basic");
// Associating only our credentials.
request.Credentials = myCredential;
//**********************************************

//Set credentials of the current security context
//request.Credentials = CredentialCache.DefaultCredentials;
request.Method = "PUT";
// Create buffer to transfer file
byte[] fileBuffer = new byte[1024];
// Write the contents of the local file to the request stream.
using (Stream stream = request.GetRequestStream())
{
//Load the content from local file to stream
using (FileStream fsWorkbook = File.Open(sourceFilePath, FileMode.Open, FileAccess.Read))
{
//Get the start point
int startBuffer = fsWorkbook.Read(fileBuffer, 0, fileBuffer.Length);
for (int i = startBuffer; i > 0; i = fsWorkbook.Read(fileBuffer, 0, fileBuffer.Length))
{
stream.Write(fileBuffer, 0, i);
}
}
stream.Close();
}
// Perform the PUT request
WebResponse response = request.GetResponse();
//Close response
response.Close();
}
catch (Exception ex)
{
//Set the flag to indiacte failure in uploading
isUploaded = false;
throw new Exception(ex.Message);
}
//Return the final upload status
return isUploaded;
}

Wednesday, July 29, 2009

Daily Expense Tracker

I have made a small daily expense tracker using excel which can be used for managing daily expenses recurred to you every month.
The main attraction of this tracker is a graph which will plot your daily expenses along with average daily expense for the month.

Hope this will be help full to at least a bunch of people who care about keeping rack of their day to day expenses.
As blogger site wont allow us to upload any files otherthan images or video i have uploaded the same in MegaFileUpload site.
Daily Expenses.xls