Gain & Share Knowlege

Tuesday, July 14, 2009

Allocation of Memory in C

Let us understand the layout of Memory in C. There are basically 4 main segments in a C Program:
  • Data Segment

  • Code Segment

  • Stack Segment

  • Heap Segment

Data Segment: The data segment is to hold the value of those variables that need to be available till the end of the program or throughout the lifetime of the program. The Global variables whose life span is complete program will definitely be allocated in Data Segment. Then comes the local variables but declared as static. The lifetime of a local static variable is that of the lifetime of the program they also come in data segment. So we can say that all the:

1) Global Variables
2) Local static variables

Are allocated in Data segment

Code Segment: The program code is where the executable code is available for execution. This are is also known as the ‘text segment’ and is of fixed size. Another important piece of information to take note of here is that the system may consider this area as a ‘read only’ memory area, and any attempt to write in this area can lead to undefined behavior.
The C complier converts executable statements in a C program- such as printf(“C Program”);- into machine code, they are loaded in the code segment.

Stack and Heap Segment: Stack frames are created in the stack for functions and in the heap for dynamic memory allocation.
The stack and heap are uninitialized areas. The local variables are function arguments are allocated in the stack.
When we do dynamic memory allocation such as the use of the malloc function, memory is allocated in the heap are.

Labels:

Thursday, June 25, 2009

Microsoft Office 2010

Largest change to Office 2010 is the availability of both a 32- and 64-bit version of the suite. The leaked CTP’s SKU is Office 2010 Professional, which comes with the basic apps (Word, Excel, Outlook, PowerPoint, Publisher) and other more advanced apps (Access, SharePoint, Visio, Groove).

On start up, there are new animated splash screens for each application. The start up times are also remarkably faster than previous versions of the Office suite. Opening Word or Excel can be done in around 2 seconds and Outlook in 4-5 seconds, which is extremely fast (depends upon PC configuration) .


The ribbon menu which was introduced in office 2007 is continued in all of the Office 2010 applications. Some alteration is done to look and feel of ribbon so that it can blend nicely with the upcoming Windows 7 operating system. You can now hide the bulk of the ribbon menu by clicking a small arrow button on the right side of it, which is useful for users with a smaller screen space due to the use of a small screen resolution.

Another major change in the ribbon menu, that is Office application’s menu button, which was formerly round, has been replaced with a colored tab that appears first on the ribbon. The tab’s color depends on the Office program (ie: blue for Office, green for Excel, and yellow for Outlook).
By clicking it will open whole interface transforms into a new menu-window. Along the left side of the window there is a column of options that are specific to the program that’s open. For example, Word’s options include Save/Open/Close, Print, and Share.

Print feature is no longer appears in a new window, but rather a new column where all the various print features can be adjusted. Microsoft has removed one features of Office 2007, the Quick Print button, which used the default print settings and sent the document to the printer in only one click.

Microsoft has added a few security features to Office 2010. The one that users will mostly often come across is when they open a downloaded document in Word 2010. When you do so for the first time, the ribbon is hidden and all editing is also disabled. A red Protected View notification appears letting you know the file was downloaded from the Internet and may not be safe to open. You can then click on "enable editing" and Word will return to normal.



Microsoft will also be debuting its new Office Web, which are online versions of Word, Excel, PowerPoint, and OneNote.

It should also be noted that if you have a previous Microsoft Office suite installed on your PC, such as Office 2007, you can keep them installed alongside Office 2010 (with the exception of Outlook, which it will uninstall for you). If you elect to install Outlook 2010 and you currently use an older version of Outlook, it will move all of your e-mails, contacts, and calendar items to the new version...but export your data to a .PST anyway just to be safe.

If you would like to sign up for the Office 2010 Consumer Technical Preview wait-list, you can visit Microsoft's Web site to sign up. They say that not everyone on the list will be invited to the CTP preview, but it doesn't hurt to sign up now.

Wednesday, June 10, 2009

gOS Good OS

gOS or "good OS" is an Ubuntu-based Linux distributed created by 'Good OS LLC', a Los Angeles-based corporation. It is OS with Google Applications and other Web 2.0 base applications.

Good OS is an operating system software company based in Silicon Valley, California, USA an Taipei, Taiwan.


http://www.thinkgos.com/company/goodos2.jpg

This first version gOS (1.0.1_386) was based on Ubuntu 7.10. On December 1, 2008 Good OS announced its next operating system, Cloud. Cloud can be described as an "instant on browser based application environment".

With Cloud users can browse the Internet seconds after turning on their computer, and can also use it to run applications, like Skype, or a media player. Cloud shows a Dock similar to gOS 3 in the browser window, and will keep loading the main operating system (Windows, Linux, OSX) in the background. An icon in the Dock will tell the user when the main OS has finished booting in the background, and can be used to switch instantly to the main OS, when tasks not (yet) supported under Cloud are needed. A beta test program for Cloud version 1.0 was announced January 30, 2009.


System Requirements:

• Standard x86 Processor
• 128 MB RAM
• 35 MB Storage
• Preloaded in HDD/SSD of PC
• Preloaded in on board flash storage of MB
• Preloaded in CD as Windows Installer
• Cloud does not require additional hardware and is compatible with any operating system

More details please vist: http://www.thinkgos.com/index.html

Tuesday, June 9, 2009

Get ready for Google Wave!

Google Wave is a new model for communication and collaboration on the web, coming later this year. Here's a preview of just some of the aspects of this new tool.



A " Google Wave" is basically a single place where you will be able to check the mails, chat with friends, have access to Video, Google Map and Google Documents all in one in single place. You can say Google mashup using Google Apps. A "wave" is equal parts conversation and document, where people can communicate and work together with richly formatted text, photos, videos, maps, and more.

Here's how it works: In Google Wave you create a wave and add people to it. Everyone on your wave can use richly formatted text, photos, gadgets, and even feeds from other sources on the web. They can insert a reply or edit the wave directly. It's concurrent rich-text editing, where you see on your screen nearly instantly what your fellow collaborators are typing in your wave. That means Google Wave is just as well suited for quick messages as for persistent content — it allows for both collaboration and communication. You can also use "playback" to rewind the wave and see how it evolved.

To get the complete idea we have to wait. Google Wave official website: http://wave.google.com/


Firefox 3.5 Beta 4

Please note: Firefox 3.5 Beta 4 is a public preview release intended for developer testing and community feedback. It includes many new features as well as improvements to performance, web compatibility, and speed. We recommend that you read the release notes and known issues before installing this beta.

Firefox 3.5 Beta 4 is now available for download. It is focused on testing the core functionality provided by many new features and changes to the platform scheduled for Firefox 3.5.

New features and changes in this milestone that require feedback include:

* This Beta is now available in 70 languages.

* Better performance and stability with the help of new TraceMonkey JavaScript engine.

* The ability to provide Location Aware Browsing using web standards for geolocation.

* Support for new web technologies such as: HTML5 and elements, downloadable fonts and other new CSS properties, JavaScript query selectors, HTML5 offline data storage for applications, and SVG transforms.

Testers can download Firefox 3.5 Beta 4 builds for Windows, Mac OS X, and Linux in 64 different languages. Developers should also read the Firefox 3.5 for Developers article on the Mozilla Developer Center.

Note: Please do not link directly to the download site. Instead we strongly encourage you to link to this Firefox 3.5 Beta 4 milestone announcement so that everyone will know what this milestone is, what they should expect, and who should be downloading to participate in testing at this stage of development.

Monday, June 8, 2009

Introducing iPhone 3G S

The Fastest iPhone Ever

The National Geographic site on iPhone 3G S, with a 2x faster badge.


The first thing you’ll notice about iPhone 3G S is how quickly you can launch applications. Web pages render in a fraction of the time, and you can view email attachments faster. Improved performance and updated 3D graphics deliver an incredible gaming experience, too. In fact, everything you do on iPhone 3G S is up to 2x faster and more responsive than iPhone 3G.

Video

Images of the iPhone 3G S camera's tap to focus feature and the video camera interface. Now you can shoot video, edit it, and share it — all on your iPhone 3G S. Shoot high-quality VGA video in portrait or landscape. Trim your footage by adjusting start and end points. Then share your video in an email, post it to your MobileMe gallery, publish it on YouTube, or sync it back to your Mac or PC using iTunes.

Voice Control

Voice Control recognizes the names in your Contacts and knows the music on your iPod. So if you want to place a call or play a song, all you have to do is ask.

The Voice Control screen and a call screen.

Compass

With a built-in digital compass, iPhone 3G S can point the way. Use the new Compass app, or watch as it automatically reorients maps to match the direction you’re facing.

A map on iPhone 3G S rotated to show the correct direction and the Compass application.

Cut, Copy & Paste

Cut, copy, and paste words and photos, even between applications. Copy and paste images and content from the web, too.

Landscape Keyboard

Want more room to type on the intelligent software keyboard? Rotate iPhone to landscape to use a larger keyboard in Mail, Messages, Notes, and Safari.


And many more.......

Images of the iPhone 3G S Home screen, call screen, iPod now playing screen featuring The Killers, Safai featuring the New York Times, and the Facebook application. For more details please visit: http://www.apple.com/iphone/

Labels: ,

Wednesday, June 3, 2009

Microsoft Bing

Bing Microsoft’s new search engine. Now that Bing is available for use outside Microsoft, here are some quick tips and tricks that will help you do more with Bing.com.

1. Use the full version of Bing

If you are using Bing outside North America, chances are that you seeing a localized version of Bing that may be missing some features. For instance, the Indian version of Bing.com doesn’t have search history and the image on the Bing home page here is not interactive as in the US version.

To explore the full version of Bing, go to this page and set English - US as your default region. You can now enjoy all the Bing features from anywhere.

2. Track Companies from the IE Favorites Bar

If you search for a company stock (e.g. GOOG or MSFT), Bing will automatically create a web slice for that company which you may then add to IE 8 and track the performance directly from the favorites bar. You need Internet Explorer 8 to try this feature.

3. Watch Preview of Hulu Videos outside US

Hulu hosts some popular popular TV shows but the problem is that you can only watch these videos if your computer has US based IP address.

However, Bing lets you watch shot previews of Hulu video even outside US. Just search for any TV show episode on Bing Videos (see example) and hover the mouse over any of the video thumbnail to watch a short clip.

4. Save and Email search results

With Bing, you can save your search history on to a local folder inside Bing or to your Windows Skydrive account. Alternatively, you may send your search queries to a friend via email or publish them on your Facebook wall via Bing. You’ll need Silverlight to share queries in Bing.

5. RSS Feeds of Search Results

Unlike Google or Yahoo, Bing offers RSS feeds for their web search results that you can subscribe to inside any feed reader. Your browser should be able to auto-detect the RSS feed of Bing pages or you can append &format=rss to any Bing search URL and convert it into a feed.

This RSS feature is not available for Image or Video search in Bing.

6. Find Pages That Link to MP3 Files or Documents

Bing (and Live Search) supports a unique "contains" search operator that lets you find web pages that contain links to particular file types.

For instance, a search like susan boyle contains:mp3 will show pages that are about the British singer and that also link to MP3 files. Replace mp3 with doc to search pages that contain links to Word Documents.

Labels: , ,