बुधवार, 26 मई 2010

LG GM200




In a market where big competitors like Nokia and Sony Ericsson are providing users with music playing handsets of every kind. They have missed out on making one that has a good set of loudspeakers. LG’s GM200 is here to save users the trouble of listening through a headset all the time with its excellent 2.1-channel loudspeaker setup. Read the rest of this review if you like the sound of it already.

Design and Looks
The LG GM200 looks a lot like her Nokia sister, the 5310. But the LG phone is not as hot as the Nokia model. Atleast not from the front (and strangely that’s where the resemblance comes from.) but maybe that’s because the Nokia XpressMusic handset is slim at the waist and has nice accents to add to her looks. What makes the GM200 look like the 5310 is they both share a similar looking keypad and form-factor. The display stands at 2.0 inches and produces 256K colours over a dismal resolution of 176 x 220 pixels. The pictures definitely look grainy but LG has intelligently covered this up with simple looking themes. Apart from this little blurb, the front is really nothing to talk about.

At either side of the phone are good quality speakers, a standard 3.5mm headset, a volume rocker and other vital ports. Thanks to good design sense, LG have managed to make the GM200’s derriere look chic. The back is black and to add to the bling is a large sub-woofer to complement the already awesome dual side speakers. The output coming from this 2.1 channel arrangement is out of this world. It’s loud and does not distort even at its maximum volume. The sub-woofer helps take care of the bass frequencies and the side speakers accentuate the mids and highs offering users with wholesome sound.

But let’s not forget that this is a phone first. And the phone’s user-interface is just as important as its speakers. Sadly, in this case the Java based UI is laggy and slows down noticeably when typing long drawn out messages or when accessing an overloaded memory card (even if the card has a capacity lesser than 2GB.) There are also many smart features included in this phone like the Smart profile which adjusts the volume depending on the surrounding environment. But this in no way makes this phone a smartphone!

The sound quality, as we already mentioned is great the way it is. But that’s also because the phone incorporates Dolby Mobile sound engine to give that crystal clear sound. On the flip-side, there are no customizable equalizer presets so users will have to make do with the ones that are already available with the phone. The GM200 is also equipped with a radio that boasts of good reception. There is also an internal antenna on the phone that LG calls ‘intenna’ which offers users true wireless radio enjoyment. Finally, users can also record broadcasts playing in real-time off the radio for later playback.

The phone’s camera is a 2MP unit. It performs average for its pixels count but since this is a dedicated music phone and a relatively inexpensive one at that, that’s more than we could ask for. The phone’s UI has some other interesting applications like Data Wallet, a document viewer and the usual suspects like the organizer with calendar, memo pad, To Do list (all of which can be password protected by the way.) The phone’s battery life is also good and LG did wise to incorporate a long-lasting Li-Ion 1100 mAh battery to complement the phone’s energy demanding loudspeakers. In practice this could give users several hours of non-stop loudspeaker playback on a full battery.

To conclude, LG’s GM200 fills a void that no other handset manufacturer has every filled before. Surely, there will be many takers for a handset with good loudspeaker (and in this case there are three of them!) It’s competitive pricing and decent feature set is also worth looking forward to. Here’s a handset that’s both novel and reliable. Now there aren’t many of those around, wouldn’t you agree?

Features
  • First-of-a-kind 2.1 channel loudspeaker set up
  • Dual side and sub-woofer speakers with crystal-clear clarity and loud output
  • FM Radio with inbuilt antenna
  • Dedicated FM Radio launch key
  • Standard 3.5mm handset of good quality
  • 1GB memory card with package
  • Good powerful battery with great life
  • 2.0-inch TFT screen capable of 262K colours over 176 x 220 pixels
  • 2MP camera





Price: Rs. 4000
Warranty (years): 1
Color Options: Black, Silver, Gold
 

Technical Specifications of LG GM200
Overview Body Type Bar
Battery Life/Talk time 8.3 Hours
Standby Talktime 450 Hours
Dimensions Width 48 mm
Depth 14 mm
Length 106 mm
Weight 85 g
Camera Camera Yes
Secondary Camera NO
Camera Resolution 2 MP
Camera Flash No
Auto Focus NO
Display Display Size 2.0 inches
Display Resolution 176 x 220 pixels
Dispaly Type TFT LCD
Colours 262K
Memory Internal Memory 14MB
Card Slot Yes
Complimentary Card 1GB
Expandable Memory 2 GB
Multimedia Features FM Radio Yes
MMS Yes
MP3 Player Yes
Connectivity Options Wi-Fi NO
Bluetooth Yes
Infrared NO
USB Connector Yes
GPRS Yes
EDGE Yes
HSCSD Yes
WAP Yes
Technology Cellular Network GSM
3G NO
SIM Type Single SIM
Operating System Operating System Java based UI
Features Input Type Alphanumeric Keypad
Handsfree Speaker Yes
Flight Mode Yes
Inbulit Dictaphone Yes
GPS NO
Flashlight NO

मंगलवार, 25 मई 2010

vc++ interview Questions

What API used to hide window
--------------------------------------------------------------------------------

ShowWindow(SW_HIDE);

How can we limit the size of window


void myclass::OnSizing(UINT fwSide, LPRECT pRect)
{
CDialog::OnSizing(fwSide, pRect);
if ((pRect->right - pRect->left) <= MIN_WIDTH)
pRect->right = pRect->left+MIN_WIDTH;


if ((pRect->bottom - pRect->top)<= MIN_HEIGHT)
pRect->bottom = pRect->top+MIN_HEIGHT;
}



What is the function to repaint a
UpdateWindow() will immediately send WM_PAINT message.


What is the Function entry for DLL
BOOL WINAPI DllMain(
HINSTANCE hinstDLL, // handle to DLL module
DWORD fdwReason, // reason for calling function
LPVOID lpReserved ) // reserved

Note that this is optional,DLL can optionally specify an entry-point function. If present, the system calls the entry-point function whenever a process or thread loads or unloads the DLL. It can be used to perform simple initialization and cleanup tasks. For example, it can set up thread local storage when a new thread is created, and clean it up when the thread is terminated.

If you are linking your DLL with the C run-time library, it may provide an entry-point function for you, and allow you to provide a separate initialization function.



What is Win32
Win32 is the 32-bit API for the 32 bit versions of Windows


Win 3.1 supports which type of multi

Explain the System call executable binary file into a process ?


Write About send message and post message ?


Explain about GDI object?


What Message displayed when a window is destroyed ?


What are all the situations where the /GS compiler is not applied. 
 Explain about InitApplication()? 
 What is CArchive class does? 
 Explain the program flow for a MFC based application ? 
 SAVING WINDOWS AS BITMAP 
 HOW to Make ActiveX controls Safe for scripting/ Safe for Initialization 
 Explain about regex_search function? 
 Discuss about the stack based buffer over run detection in VC++? 
 Can we declare a static function as virtual? 
 Explain about VC++? 
 State some new features which are incorporated into Microsoft visual C++ 2008? 
 what is the use of AFX_MANAGE_STATE ? 
 Visual C++ 
 Redirecting Console Output 
 Explain about VC++? 
 Discuss about the stack based buffer over run detection in VC++? 
 Array Variable 
 Explain about CWinThread class? 
 Export Restrictions
 Explain about functional? 
 Explain about the function regex? 
 Describe about unordered_map? 
 How to handle Varinat passed to COM components? 
 What is the difference between struct and class? 
 What is the disadvantage of a template function? 
 Describe the role of envelope and letter classes. 
 Describe the role of envelope and letter classes. 
 Explain about frames? 
 : Are there any new intrinsic (built-in) data types? 
 Explain about CFrameWnd? 
 What problem does the namespace feature solve? 
 Explain about CWinThread class? 
 What problem does the namespace feature solve? 
 Explain about functional? 
 Describe about unordered_map? 
 Explain about type_traits? 
 Explain about utility?
 Explain about tuple in visual c++? 
 What Is CMutex ? 
 How to make the Activex auto download on the browser via cab file ? 
 Name some important features of VC++? 
 What are all the situations where the /GS compiler is not applied. 
 Explain about the function regex? 
 Name some important features of VC++? 
 How to Killi an Object Prematurely.. 
 Explain about regex_search function? 
 Explain about frames? 
Explain about CFrameWnd? 
 Explain about InitApplication()? 
 Explain about tuple in visual c++? 
 Explain about typedef? 
  SAVING WINDOWS AS BITMAP 
 HOW to Make ActiveX controls Safe for scripting/ Safe for Initialization
 Explain about typedef? 
 Explain about InitApplication()? 
 Cmd Line Processing 
 What is CArchive class does? 
 Explain the program flow for a MFC based application ?

शुक्रवार, 21 मई 2010

ग़ूगल चाट वर काय बोलतात ... ?


मी: नमस्कारसुमित : आरे तुम्ही तर नाशिक ला जाणार होता ना?
 मी: cancel
 सुमित : का?
 मी: अचानक एक जरूरि काम याद आ गया
 सुमित : :)
  क्या है वो काम?
 मी: symantec  ने verisign  acquire केली
सुमित : सही ए. कधी?
 मी: आज
 सुमित : मस्त
 मी: मस्त मस्त मस्त
सुमित : Veri वल्या सग्ळ्या company symantec acquire  करते का?
 मी: ह्म्म
 सुमित : Veritas, Verisign etc ..
 मी: verifast?

मी: ♫
नचिकेत.मेहेन्दले@अतोसोरिगिन.com
 सुमित : तो गाणे ऐक्तोए का?♫
 मी: बहुतेक
सुमित :  तो लयी १२ चा आहे
सुमित : :D
मी: तू मुलगी बघायला गेला होतास ना?   काय झाल?
आवडीची नव्हती का तिथे एक पण?
 सुमित :
नाही रे ग़ेलोच नाही
 मी: साल्या , मग कधी जाणार?
 सुमित : आजुन वेळ अहे
 मी: घरचे काही हालचाल करत नाहिएत का?  मी पत्र लिहू का तुमच्या तिर्थरुपान्ना?
सुमित : ते करत आहेत ... पण मीच हाकलवुन लावतो स्थळ ..
 मी: परिस्तिति अवघड होइन चालली आहे तरी त्वरित व सत्वर निर्णय घ्यावा
सुमित : आवघड का होते आहे?
 मी: तुमचे आजचे वय पहाता तुम्हाला उद्या कोण मुलगी देणार ?
सुमित : आमचे वय फ़क्त २६ अहे
 मी: हा हा हा सकाळी सकाळी जोक बरे जमतात तुम्हाला
  मजा आली. खूपच मज्जा आली
  आहो २/३ वर्षापुर्विचे वय आज सान्गुन काय उपयोग
 सुमित : नही हो. आम्ही जोक नाही मारत.  हे तर सत्य आहे.
मी: तसे तर तुम्ही आजच ३२/३३ चे दिसताय ,   २६ सान्गुन कोणाला पटणार?   :D :D :D
सुमित : तस कहिही नहिए. तुम्हालाच द्रुष्टी दोश झाला आहे ...
चालयचच  तुमच्या वया प्रमाणे ते होणारच ...
 मी: अमच काय घेउन बसलात
  अमचे झाले आत सगळे
तुमची काळजी वटते हो
  म्हणुन हा प्रपन्च
  बाकी दुसरे काही नाही
सुमित : खरंच काळजी  वाटतेय तर सान्गा की तुमच्या बाघण्यातली एखादी चान्गली मुलगी ...
  ज़ी नोकरी करतेय
  ज़ी सुन्दर अहे
  ज़ी माज़ करत नाही

 मी: एवढ्या अपेक्षा ?
यातील एक तरी गोश्ट कमी करवीच लागेल
फ़ार तर  दोन गोश्टी असणरी मिळेल
सुमित : ह्म्म ..
 मी: आणी हल्लिचे मुलिंचे घटते प्रमाण पहाता
  तुम्ही त्वरा करवी हेच उत्तम
अन्यथा कहीही सम्भवू शकते
 सुमित : ह्म्म.. तुम्ही उगाच घाबरवण्याचा प्रयत्न करीत अहात
मी: नाही हो... तुम्हास घाबरवुन आम्हास काय साध्य व्हावे?
  अर्थात तुमची स्वत:चीच मनसीक तयारी झाली नसेल तर
आजुनही थांबणेच इष्ट ठरेल.
सुमित : मानसिक तयारी चा वैगेरे काहिही प्रौब्लेम नाही ..
पण आपल्याला आजुन Bachelor's life enjoy  करायचे आहे..

मी: मनसीक तयरीचा प्रौब्लेम नाहीए म्हणता.. ???
  माग तसलं वगैरे कही ????

 सुमित : हा हा .. तुम्ही पण चांगले विनोद करता
 मी: हो.. हो , हा विनोदच असावा अशी आमचीही मनापासुन इच्छा आहे हो...
 पण कसए...



 मी: कोणाबरोबर चल्लात
  फ़िरायला?
 सुमित : Office  मधले मित्र
 मी: अच्छा अच्छा असए तर...
तरीच मी म्हणतोए तुम्हि लग्नाच विचार का टळताये
 सुमित : १५-१७ दिवसान्ची ट्रिप असेल .. Bike  ने जायचे ..
 मी: आहो कोणाबरोबर फ़िरयचे वय तुमचे
आणि कोणबरोबर फ़िरताय?
  अरेरे काय हे ?
आसो
  आमच्या इथे पन एकाच जमलं
आत्ताच news  आलीय
  उद्या sweets  मिलणार
सुमित : चांगल आहे .. आम्ही पण देवू जामल्याची news  पण १-२  वर्षात ..












शुक्रवार, 14 मई 2010

FOR loops

Batch files - FOR loops


Basic syntax:

 Batch files - FOR loops
FOR %A IN (list) DO command [ parameters ]
list is a list of any elements, separated by either spaces, comma's or semicolons.
command can be any internal or external command, batch file or even - in OS/2 and NT - a list of commands
parameters contains the command line parameters for command.
In this example, command will be executed once for every element in list, using parameters if specified.
A special type of parameter (or even command) is %A, which will be substituded by each element from list consecutively.

Full syntax

MS-DOS and PC-DOS
(incl. Win95's MS-DOS 7.*)  
as specified under basic syntax, plus VFAT/FAT32 long file name handling with LFNFOR in MS-DOS 7.*
OS/2 Warp as specified under basic syntax, though unlike in DOS, you may use redirection and conditional execution in the command string specified after DO
Windows NT 4/2000/XP as specified under basic syntax, plus many new options

Notes

1. %A vs. %%A
%A is for use on command lines only.
In all examples and syntax lines shown %A should be substituted with %%A when used in batch files.
2. %a vs. %A
The A in %A may be replaced by any character, either upper case or lower case, except numbers. Note, however, that variables ar case sensitive, so be consistent:
FOR %A IN (1 2 3) DO ECHO %a
will not work.
FOR %? IN (1 2 3) DO ECHO %?
on the other hand, will.
3. Nesting FOR commands
In DOS (COMMAND.COM), nesting FOR commands is not possible.
However, by using a second command processor you may still be able to nest them:
FOR %A IN (1 2 3) DO COMMAND /C FOR %B IN (A B C) DO ECHO %A%B
Note that you cannot replace COMMAND /C with CALL

In NT (CMD.EXE) nesting is possible.
Note that to nest FOR loops, each loop requires its own variable; i.e.
FOR %A IN (1 2) DO FOR %A IN (A B) DO ECHO %A
will lead to undesired results:
A
B
A
B


FOR %A IN (1 2) DO FOR %B IN (A B) DO ECHO %A%B
will work as planned, and display:
1A
1B
2A
2B
4. Commands in list
list may not only contain a list of parameters, it may even contain a list of commands that can be executed consecitively with the same parameters. a.k.a. command may also be %A:
DIR > tempfile.txt
FOR %A IN (TYPE DEL) DO %A tempfile.txt

This FOR loop will first type the temporary file and then delete it.
5. list delimiters
The "elements" in list can be delimited (separated) by spaces, tabs, commas or semicolons.
As of MS-DOS 7, doublequoted strings are treated as a single element, wether they contain delimiters or not.

In NT, it is possible to define your own delimiters with FOR /F.
6. Forward slashes in list
If list starts with a forward slash, COMMAND.COM (except MS-DOS 7) will split the string in list into its first character following the forward slash and the remainder of the string.
This is demonstrated in the interactive FOR examples
7. Conditional manipulation of variables in command
The following does not work:
FOR %%A IN (1 2 3) DO IF "%VAR%"=="" SET VAR=%%A
sets VAR to 3, not 1
The %VAR% in the comparison (IF "%VAR%"=="") is interpreted immediately, and thus empty, and then the FOR loop is started.
From the FOR loop's point of view, the command issued was:
FOR %%A IN (1 2 3) DO IF ""=="" SET VAR=%%A
The following construction can be used as a workaround:
FOR %%A IN (1 2 3) DO CALL TEST2.BAT %%A
If TEST2.BAT looks like this:
IF "%VAR%"=="" SET VAR=%1
then VAR is set to 1
In NT a CALL to a subroutine could be used instead.
8. Jump using GOTO in command
FOR %%A IN (1 2 3) DO GOTO=%%A
:1
ECHO 1
GOTO End
:2
ECHO 2
GOTO End
:3
ECHO 3
:End

will display different results for different command interpreters:
  • CMD.EXE (NT and OS/2) will jump to label 1
  • COMMAND.COM (DOS) will jump to label 1, then 2, then 3, without executing any of the following commands, and then execute the ECHO 3 and following commands

Examples

Interactive examples Shows the different ways in which different OSs handle "lists".
WHICH UNIX-like WHICH utility for Windows NT (2 batch files), OS/2 (Rexx, also searches for DLL's) and a severely limited version for DOS (batch file)
Errorlevel Show error level of previous command using FOR and redirection
RestHome Restore all homedir shares on an NT Server
SCList lists the properties of all shortcuts in an NT machine's Start Menu
DiskUse Version 5 lists the disk usage for every subdirectory (Windows 2000)
DiskUse Version 4.01 the same for NT 4

How To setup a DHCP for PXE protocol?

PXE Setup without RIS on Windows 2000 ServerHow To setup a DHCP for PXE protocol
It is possible to setup a PXE server on Widows 2000 server without installing RIS. Do all of this on whatever machine is serving DHCP.

  FAQ:

Does PXE need DHCP?
PXE does not come with a dedicated boot protocol. ... The DHCP server can send out the DHCP offer containing the clients IP address and the PXE server can send out the DHCP offer containing the option 60. The PXE client will wait for all needed information up to 60 seconds.
  

How do I enable DHCP service?
Right-click on Local Area Connection and select Properties. Highlight the Internet Protocol (TCP/IP) option and click the Properties button. If you want to enable DHCP, make sure Obtain an IP address automatically is selected, as well as Obtain DNS server address automatically.


How do you force a PXE boot?
How to Boot Into PXE
Power on or restart your computer. Press the hotkey to enter the BIOS. ...
Navigate to the network card settings with the keyboard. ...
Toggle the "LAN BOOT ROM" option to "Enabled." ...
Navigate to the boot settings with they keyboard. ...
Press "F10" to save the settings and exit the BIOS.

How do I boot from network?
Make sure networking booting is enabled. This setting can be named "Boot from the network" or "Boot from PXE". Then, start the computer and press the required key to bring up the Boot Menu. On most computers, you need to press F12 or F8, depending on the BIOS version.Mar 14, 2013


What is PXE and how it works?
PXE - Pre-Boot Execution Environment
It allows a workstation to boot from a server on a network prior to booting the operating system on the local hard drive. A PXE-enabled workstation connects its NIC to the LAN via a jumper, which keeps the workstation connected to the network even when the power is off.


What ports does PXE use?
Listening ports used during client network boot (PXE/TFTP protocols):
DHCP : port 67 UDP.
PXE BINL : port 4011 UDP.
TFTP : port 69 UDP.

What is the DHCP server?
A DHCP Server is a network server that automatically provides and assigns IP addresses, default gateways and other network parameters to client devices. It relies on the standard protocol known as Dynamic Host Configuration Protocol or DHCP to respond to broadcast queries by clients.


How does PXE boot work with DHCP?
When the client initiates a PXE boot (by traditionally pressing F12) however the process is changed slightly: The client sends out a DHCP broadcast and states that it needs to PXE boot. The DHCP server picks up this broadcast and replies with a suggested IP address to use



How do I change my DHCP settings?
To enable DHCP or change other TCP/IP settings
Do one of the following: ...
Right-click the connection that you want to change, and then select Properties. ...
Select the Networking tab. ...
To specify IPv4 IP address settings, do one of the following: ...
To specify IPv6 IP address settings, do one of the following:


What is default gateway IP?
A default gateway is the node in a computer network using the internet protocol suite that serves as the forwarding host (router) to other networks when no other route specification matches the destination IP address of a packet.

How do I find my DHCP?
Displaying a DHCP Lease
Open the Command Prompt: Windows 10: Open the Start Menu, type cmd and press Enter. (+) ...
In the Command Prompt, type ipconfig /all and press Enter. Your IP Address is listed to the right of IPv4 Address while your MAC Address is listed to the right of Physical Address. (+)


  1. Open the DHCP control panel from administrative tools.
  2. Expand the server you are wanting to configure. Expand the "Scope" folder. Right click on "Scope Options" and select "Configure Options".
  3. Put a check mark in "013 Boot File Size" and enter the file size in 512 octet blocks. Example, your boot image file is 12 KB (kilobytes). Convert 12 KB to bytes (12288). This must be exact, don't just multiply 12 by 1000. Divide the file size in bytes by 512 (12288 / 512). Enter the resulting number (24) in the text dialog that is enabled when you put a check in 013.
  4. Put a check mark in "043 Vendor Specific Info" and enter the following binary value: 01 04 00 00 00 00 ff.
  5. Open a command window and type the following:
    c:\>netsh
    netsh>dhcp
    netsh dhcp>server \\server_name
    netsh dhcp server>add optiondef 60 ClassID String 0
    netsh dhcp server>set optionvalue 60 STRING PXEClient
    
  6. Put a check mark in "066 Boot Server Host Name" and enter the IP address of the server.
  7. Put a check mark in "067 Bootfile Name" and enter the name of the boot image file.
  8. (Thanks to Me for this step.)
    If you use the Linux-based boot disk, you can set the boot disk's defaults (user name, password, share) via DHCP option 233. Open a command prompt and type:

    netsh dhcp server add optiondef 233 Unattended String 0 comment="Unattended dhcp info"
    
    Go back to "Scope Options", select configure options, put a check mark next to the new entry, and fill in the boot disk options you want to use (e.g., z_user=username z_pass=sekrit z_path=\\myserver\myshare).
  9. Right click on the server name in the DHCP control panel, go to all tasks, and select "restart".
  10. Go back to scope options and verify that all the information is there. You should see the five entries on the right. They should look like this:
    013  Boot File Size             Standard        0x18
    043  Vendor Specific Info       Standard        01 04 00 00 00 00 ff
    060  ClassID                    Standard        PXEClient
    066  Boot Server Host Name      Standard        Server IP address
    067  Bootfile Name              Standard        bzImage (boot file name)
    
    If any of the options do not match these, double-click on the option and change the value. More than likely option 060 will be wrong. Change it so it looks like above.
You are now ready to set up tftp.

TFTP Configuration

  1. Copy "tftpd.exe" from "c:\winnt\system32\dllcache\tftpd.exe" to "c:\winnt\system32\tftpd.exe"
  2. Get a copy of "sc.exe" from the system32 folder on any windows xp box and place it in "c:\winnt\system32"
  3. Open a command window and type "sc create tftpd binpath= c:\winnt\system32\tftpd.exe "
  4. The service "tftpd" is now available in the service control panel. Open the control panel, find the service, and start it. (If you want it to start automatically, you can set it to do so from the control panel.)
  5. Open the registry to the following key. \\hkey_local_machine\system\currentControlSet\services\tftpd. Add a subkey "parameters" to the tftpd folder. Add a string value "Directory" to the "parameters" key. Give "Directory" the path location where your boot image file is located. (example c:\tftpd).
Much of this is adapted from Willis Doiron's nice document.
Thanks to Tyler Hepworth for the original version of this document.

fly