Skip to main content

Posts

Showing posts with the label Q and A

Dotnet, .Net 3.5, 2.0, C# Interview Questions

Few questions on dotnet, C# 2.0, 3.5 On Object oriented concepts 1)What is inheritance with e.g 2)What is polymorphism -function overloading -Function overriding -virtual keyword use -Static keyword and use -Abstract classes -Interface -Object 3)What is threading and how do we use in realtime application(cognizant) 4)What is threadpooling, lock, monitor(write code sample) 5)Architecture of current project 6)Session state, diffrent types of state management. 7)What is Application_Start, how it works. 8)Type of authentication in asp.net 9)How to configure ASP.NET application. 10) What is Impersonation. 11) What is WebService, WSDL, UDDI, Discovery, asmx files. 12) How to implement WebService and use it. 13) When to use WebServices. 14) WPF, how to implement(BOA) 15) Testing concvepts. 16) Test attributes 17) Flow of Automation Test Method execution 18) Features of dotnet 3.5 19) CLR, garbage collection 20) Finally block 21) Manifest, Metadata, MSIL 22) Assemblies, Type of assemblies, str...

How to unzip .torrent files on Windows PC?

how to unzip .torrent files? You do not need to decompress .torrent files. The .torrent will disappear from the end of the file once the file has finished downloading onto your computer. Then you can use the file as you see fit. It may be a .mp3 file, a .zip file, etc to use bittorent, you need a client. then open the .torrent file in azureus and you will download the file that the torrent is for. the .torrent isnt the file itself, it just tells the client where to get the file. Here are some popular torrent clients for windows. Download Azureus at Azureus Azureus - now called Vuze - Bittorrent Client Requires Java for Windows; if you are first time installing http://java.com/en/download/inc/windows_new_xpi.jsp Few more popular bittorrent clients for windows http://www.utorrent.com BitTorrent | BitTorrent Check out Comparison of BitTorrent clients - from Wikipedia, the free encyclopedia BitTorrent is the name of a peer-to-peer (P2P) file distribution protocol, and is the name of a f...

Creating & Working On a CVS Branch Example Usage

Example usage OF Creating & Working On a CVS Branch Tried working hard on CVs commands, here is simple example for working in branch using CVS, CVS is becoming nomore use with everyone opting for SVN, still CVS usages is wide as it is old, Lets start with CVS commands to create a branch This is done with two commands, cvs tag -b release-1 //create branch cvs update -j release-1 //merge the changes in main tot Lets see with simple example Creating and working on a branch for the existing kernel source. #cvs co kernel/linux-2.6.26 #cd kernel/linux-2.6.26/ #cvs tag -b release-1 First we created a branch to the kernel source, as we are doing first release. Continue your development work for second release. After some time, reported a problem in the first release. So you need to Get the kernel source code of first release. #cvs co -r release-1 kernel/linux-2.6.24 and fix the problems Now If you want to merge these changes in to main trunk. #cvs update -j release-1 And you are done with ...

Linux SMB write performance With Simple Tips

SMB write performance can be increased by Tuning the buffer cache. The secret to good performance is to keep as much of the data in memory for as long as is possible. Writing to the disk is the slowest part of any filesystem. If you know that the filesystem will be heavily used, then you can tune this process for Linux Samba. writing out dirty blocks to the disk until the filesystem buffer cache is 80 percent full (80). default is 40%, source = http://tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/chap29sec287.html by writing echo 80 > /proc/sys/vm/dirty_ratio I am getting around 2MB increase while write operation, tested in Xp. I have tried with this single option, as the ref source is for linux 2.2 and we are using 2.6 kernel. we can try out Linux General Optimization suggested at http://tldp.org/LDP/solrhe/Securing-Optimizing-Linux-RH-Edition-v1.3/gen-optim.html Tried with smb.conf, I am getting around 1MB gain while read and write. socket options = TCP_NODELAY I...

CROSS COMPILING X11 FOR ARM Board

STEPS FOR CROSS COMPILING X11 FOR ARM Go to /usr/X11R6/lib in my linux PC. 1) install ARM toolchain, If not installed 2) Get x11 source from http://www.x.org/ 3) extract all the tar files, using tar -xvzf 4) edit cross.def and host.def files, in cross.def set the paths of tool chain in host.def file set crossCompile to YES and DoLoadableServer to NO 5) make shadow directory "build" and link to xc "lndir ../xc" 6) run Make World error: linux_vm86.c 281 impossible constraint in 'asm' 268 res might be used uninitialized in this function. fix:comment line 281, set res=0 error: implicit decleration of function 'SET_FLAG' fix: comment line 111 in programs/Xserver/hw/xfree86/os-support/linux/int10/helper_exec.c error:Undefined reference to XF86VidModeQueryVersion in glxinfo And glxgears Undefined reference to XF86VidModeQueryVersion in xdriinfo fix:download libXxf86vm.so.1.0 into our armtoolchain lib path and make softlinks ln -s libXxf86vm.so.1.0 li...

Define:Blu-ray & About Blu-ray Movies HDTV Info

The Advancement of technology had entered into nanometer age. search in google define:Blue-ray will get wiki pages here is summary of it. Blu-ray Disc (also known as Blu-ray or BD) is an optical disc storage medium designed to supersede the standard DVD format. Its main uses are for storing PlayStation 3 games, high-definition video, and data storage, with up to 50 GB per disc. This is quite impressive, The disc has the same physical dimensions as standard DVDs and CDs. Why Blu-ray disc stores 50GB on same size of DVD/CD? Well here is advancement of laser technology, thanks to Shuji Nakamura for his invention on blue laser, The name Blu-ray Disc derives from the blue-violet laser used to read the disc. While a standard DVD uses a 650 nanometre red laser, Blu-ray uses a shorter wavelength, a 405 nm blue-violet laser, and allows for almost six times more data storage than on a DVD. check out about Blu-ray Movies - Everything about Blu-ray movies and releases .at http://www.blu-ra...

Get HyperSCSI for SAN - Storage Area Network

Get HyperSCSI for SAN - Storage Area Network SCSI (Small Computer Systems Interface) family of protocols. HyperSCSI can allow one to connect to and use SCSI and SCSI-based devices (like IDE, USB, Fibre Channel) over a network as if it was directly attached locally. Why HyperSCSI over iSCSI? The main advantage of HSCSI compared to iSCSI is especially a lower network load as well as an end system (server and client) load. TCP/IP SAN performance is still not good enough without hardware acceleration FC-based SANs cannot do Storage Wide-Area Networks Fully functional software implementation of both client and server so HSCSI can be used for a solution built on commonly available hardware, no expensive and specialized hardware is needed. Therefore, HSCSI can be used for building small and cheap SANs. HSCSI main disadvantage is this protocol has no official standard like iSCSI nd so it is unsupported in any way by manufacturers developing hardware data storage solutions. Two modes of oper...

Create File Of Any Size in Linux Using DD Command

How do I create a file of any given size on Linux? using the dd command. $ dd if=/dev/zero of=testss bs=1024 count=1048576 This will create a file of size 1024 * 1048576 bytes (or 1 GB). where if - input file of - output file or the file to be created bs - block size in bytes count - # of blocks of size bs Easiest and fasted way to create file of 250GB using DD command $ dd if=/dev/zero of=tests bs=1 count=0 seek=250G read dd(1) - Linux man page

apsscresults 10th Class results ssc 2009 of AP Board

Andhra Pradesh State Board SSC Results 2009 announced today (27-May-09) by 10.45 am. There is lot of rush for those sites, Results will be available on the following sites: I have tried to give direct links for results, good luck to students. Results direct links from manabadi ssc SSC results on SMS from manabadi results.manabadi.co.in Indiaresults Bharat student Results direct links from results.sakshi.com AP SSC REGULAR results 09 results.sakshi.com/textfile/R_PRES91.TXT AP SSC PRIVATE Results results.sakshi.com/textfile/P_PRES9.txt AP OSSC REGULAR results results.sakshi.com/textfile/OS_PRES92.txt AP OSSC PRIVATE results results.sakshi.com/textfile/OS_PRES92.txt Sakshi Results Sakshi Results. Ceep 2009 Results · Inter Second Year 2009 Results · Inter First Year 2009 Results. results.sakshi.com Results direct links from vidyavision.com Andhra Pradesh SSC 2009 Results (General) Andhra Pradesh SSC 2009 Results (Vocational) Andhra Pradesh Examination Results- Vidyavision .com ...

From Windows Vista Home Edition Access SMBD ver 2.2.12

How to Access NAS Box From Windows Vista Home Edition? Access NAS box windows vista (Ultimate editions), If you NAS box contains SMBD/ SAMBA version less than or equals 2.2.12 Steps to access NAS box from Windows Vista Home Edition 1. In the Windows taskbar, click Start and select Run. In Run window type “regedit” and press OK. 2. This will open User Account control window, here click continue. 3. Double click on the “HKEY_LOCAL_MACHINE” , “SYSTEM”, “Current Control Set” and “Control”. 4. Then click on “Lsa” then you will get some parameters in the right windowpane. 5. Find for “LMCompatibilityLevel” and double click on this item. 6. In the edit window change the “Value data” to 1 from 3. 7. Press OK then Close the Registry Editor (regedit). your Vista PC ready to access the NAS box.

Access NAS Box From Windows Vista Ultimate Edition

How to Access NAS Box From Windows Vista Ultimate Edition? Access NAS box windows vista (Ultimate editions), If you NAS box contains SMBD/ SAMBA version less than or equals 2.2.12 Steps to access NAS box from Windows Vista Ultimate Edition 1. In the Windows taskbar, click Start and select Run. In Run window type “secpol.msc” and press OK. 2. This will open User Account control window, here click continue. 3. Now double click on the “Local Policies” and click on “Security Options”. 4. Find “Network Security: LAN Manager authentication level” in right windowpane and double click on this policy. 5. Now change Local Security Setting “Send NTLMv2 response only” to “Send LM & NTLM –use NTLMv2 session security if negotiated”. 6. click “apply” and then “OK”. Now your Vista PC ready to access the NAS box. Share your tricks also.

How To Compile Tool Chain For Bootloader

For compiling Uboot 3.4.4 tool chain is required. Steps to check and change tool chain correspondingly 1) At the bash prompt of your Linux PC, execute the following command. $ tar -zxvf arm-tools.tar.gz Now you will have the "arm-tools" folder created in your current directory. 2) Copy the "arm-tools" directory to your home directory (or wherever you prefer to) $ cp -rf arm-tools ~/ 3) Modify the .bash_profile file in the home directory, by using the following steps. (Add the following lines in .bash_profile) $ vi ~/.bash_profile This will open the file for editing. Make the following changes in the file export HOME=$HOME/arm-tools PATH=$PATH:$HOME/bin:$HOME/arm-tools/arm-linux/bin:$HOME/arm- tools/image_tools/:$HOME/arm-tools/image_tools/bin export PATH Close the ".bash_profile" file. 4) Then execute the command $ source .bash_profile 5) To check whether arm-tools environment has been properly set or not type the...

How to participate in the Linux kernel community

How to participate in the Linux kernel community? check out A GUIDE TO THE KERNEL DEVELOPMENT PROCESS Jonathan Corbet has written a very interesting article on "how to participate in the Linux kernel community" Section 1 is the executive summary. Section 2 introduces the development process, the kernel release cycle, and the mechanics of the merge window. Section 3 covers early-stage project planning, with an emphasis on involving the development community as soon as possible. Section 4 is about the coding process; several pitfalls which have been encountered by other developers are discussed. Section 5 talks about the process of posting patches for review. Section 6 covers what happens after posting patches; the job is far from done at that point. Section 7 introduces managing patches with git and reviewing patches posted by others. Section 8 concludes the document with pointers to sources for more information on kernel development. Please take a look at the complete documen...

Adding Network Printer in MS windows Simplest Way

yes you can add Network Printer in MS windows in very Simplest Way . I was allocated a new windows Xp PC, I was waiting for network printer to configure on my new machine. I just tried this simplest way, rather to wait for network admin. My friend also asked me about configuration for network printer and i told him same way, which is worked for him also. Here is simplest way to configure your new printer. go to start->settings-> Printers and Faxes Here you can see the default printer name. Just ask your friend about the name of network printer, and all you have to do is rename your default printer with network printer name, your printer is on. check out this trick works for you also. Sometimes you need to select the driver for the same, from printer properties-> advanced option. comment on your tricks also.

Loop Unrolling or Loop unwinding in C

What is Loop Unrolling or Loop unwinding in C? Loop unwinding, also known as loop unrolling , is a loop transformation technique that attempts optimize a program's execution speed at the expense of its size. The goal of loop unwinding is to increase the program's speed by reducing (or eliminating) the "end of loop" test on each iteration. Loops can be re-written as a sequence of independent statements which eliminates the loop controller overhead. The major side effects of loop unrolling is The increased register usage in a single iteration to store temporary variables (though much will depend on possible optimizations), which may hurt performance. The code size expansion after the unrolling, which is undesirable for embedded applications and for purposes of code readability. Large code can also cause an increase in instruction cache misses, which may adversely affect performance. A simple example A procedure in a computer program is to delete 100 items from a collec...

Linux Essential Shortcuts and Commands

Linux essential shortcuts and sanity commands Switch to the first text terminal. Under Linux you can have several (6 in standard setup) terminals opened at the same time. (n=1..6) Switch to the nth text terminal. tty Print the name of the terminal in which you are typing this command. Switch to the first GUI terminal (if X-windows is running on this terminal). (n=7..12) Switch to the nth GUI terminal (if a GUI terminal is running on screen n-1). On default, nothing is running on terminals 8 to 12, but you can run another server there. (In a text terminal) Autocomplete the command if there is only one option, or else show all the available options. THIS SHORTCUT IS GREAT! It even works at LILO prompt! Scroll and edit the command history. Press to execute. Scroll terminal output up. Work also at the login prompt, so you can scroll through your bootup messages. Scroll terminal output down. (in X-windows) Change to the next X-server resolution (if you set up the X-server to more than o...

Gear Up for GSoC 2009 Google Summe of Code

The Google Summer of Code is a program designed to encourage college student participation in open source development. How does it work ? Students submit project proposals to the organizations, organizations rank the submissions (students paired with mentor from open source community).Google allocates a given number of slots to each organization, the students work all summer on their project in close mentored collaboration with that organization. GSoC 2009 Timeline March 9-13: Google will accept applications from open source projects. March 13-17: Google program administrators review organization applications. March 18: List of accepted mentoring organizations published on code.google.com/soc/ March 23-April 3: Student applications acceptance period. March 23: Student application period opens. April 3: Student application deadline. April 20: Accepted student proposals announced at http://code.google.com/soc/ August 24: Final evaluation deadline. September 3: Students can begin submitt...

Effective Linux Kernel Search Trick here

I was wondering how to search a big kernel source for my specific keywords. Here I found out some of the combination. Also there may be lot of ways to do the same things, that's the beauty of Linux. Here we go 1. looking for MCS8142_SPI_FLASH in kernel use find . -name "*.c" | xargs grep "MCS8142_SPI_FLASH" | more And here is the output. ./drivers/mtd/devices/mcs8142.c: mtd = mtd_concat_create(mtd_con,NO_OF_BANKS,"MCS8142 _SPI_FLASH"); similar way you can grep for a particular struct from kernel source; eg; find . -name "*.c" | xargs grep "struct jffs_node" | more 2. looking for MTD flag is set from .config file here is the command grep MTD .config | grep =y output CONFIG_MTD=y CONFIG_MTD_DEBUG=y CONFIG_MTD_PARTITIONS=y CONFIG_MTD_CHAR=y CONFIG_MTD_BLOCK=y CONFIG_MTD_MAP_BANK_WIDTH_1=y CONFIG_MTD_MAP_BANK_WIDTH_2=y CONFIG_MTD_MAP_BANK_WIDTH_4=y CONFIG_MTD_CFI_I1=y CONFIG_MTD_CFI_I2=y CONFIG_MTD_MCS8142_SPI_FLASH=y E...

CVS Short Notes And Useful Commands For Daily Usage

CVS Short Notes And Useful Commands For Daily Usage Creating a directory tree from a number of files When you begin using CVS, you will probably already have several projects that can be put under CVS control. In these cases the easiest way is to use the import command. An example is probably the easiest way to explain how to use it. If the files you want to install in CVS reside in ‘wdir’, and you want them to appear in the repository as ‘$CVSROOT/yoyodyne/rdir’, you can do this: $ cd wdir $ cvs import -m "Imported sources" yoyodyne/rdir yoyo start Unless you supply a log message with the ‘-m’ flag, CVS starts an editor and prompts for a message. The string ‘yoyo’ is a vendor tag, and ‘start’ is a release tag. They may fill no purpose in this context, but since CVS requires them they must be present Adding files and folder to CVS individually To add a folder or file to CVS repository in some existing path, follow these steps. For example, you want to create a folder “nuport”...

Data Structures Linked List Reverse

simple linked list Data Structures -- Linked List -- Reverse /* * Simple operations on linked list. If any problem */ #include /* * Data structure used, its simple :) */ Typedef struct linked_list_s { int value; struct linked_list_s *next; }linked_list_t; /* * Add a node at the end of the list. */ Linked_list_t* add_node(linked_list_t *head, int value) { linked_list_t *newNode = NULL; linked_list_t *node = head; linked_list_t *prev = head; newNode = (linked_list_t *)calloc(1, sizeof(linked_list_t)); newNode->value = value; while(node) { prev = node; node = node->next; } if(prev == node) return newNode; prev->next = newNode; return head; } /* * delete a specified node from the list. */ Linked_list_t* delete_node(linked_list_t *head, int value) { linked_list_t *node = NULL; linked_list_t *prev = NULL; for(node = head; node != NULL; prev = node, node = node->next) { if(node->value == value) { //Check for head node modification if(prev =...