Monday, March 26, 2012
Source Insight Replace Tabs with 4 spaces
1) Set Tab width to 4
2) Select Expand Tabs
Thats it you are game!!
To verify if its set properly, you can always select "Visible Tabs", this will show the tab with visible symbol.
Source Insight Braces How to Control
Select Simple and check both of the check boxes.
Go to Options>Document Option>Auto Ident
Auto Indenting
The auto-indenting feature controls the level of indentation as you type new text. Source Insight supports Simple and Smart types of auto-indentation. Not all languages support the Smart level.
Auto Indent Type
Specifies the type of auto-indenting. Automatic indenting occurs when you insert new lines.
• None No special indenting occurs. Source Insight will return the insertion point to the very beginning of the next line when you insert a new line or word wrap.
• Simple Source Insight will automatically indent text to line up with the previous or following line.
• Smart Source Insight will automatically increase or decrease the indentation level when you insert new lines. Not all languages support smart indenting. If this button is selected, then the Smart Indent Options are applied.
These check boxes determine how the smart indenting affects open and closing curly braces.
Desired Indent Style | Check box setting |
if (x) { } | Clear both boxes. |
if (x) { } | Select both boxes |
if (x) { } | Select Indent Open Brace; |
Wednesday, December 21, 2011
Visual Studio Project Settings/What Macros are defined/ Where is my output/ What are my project configurations
- Click on Project -> Project Name Properties
- Configuration Properties
- General -> here you will define the output or out, intermediate directories.
- C/C++ -> preprocessor Here you can check the Preprocessors which are defined for your project
- Linker-> General Here you can check the output file name. e.g dll file location and its name. Out directory as I already told is defined in the general macro
What all happens when I press F5
- Go to Configuration properties -> Debugging
- Command will tell you what paths you are setting
- Command arguments what all program you wan to run and what are the arguments
- It can be python script you want to pick with some arguments
Wednesday, June 1, 2011
how to create a visual studio Normal C/CPP project
Wednesday, March 16, 2011
Reverse the Linked List in K pairs
http://geeksforgeeks.org/?p=8014
Main points here.
1)reverse the first K pairs by normal reverse technique.
2)one pointer will contain last element of the reversed list
3)special check for first time.. to change root and master prev node.
4) special check to end the list
Tuesday, March 15, 2011
Monolithic and microlithic kernel
http://welovec.blogspot.in/2011/04/difference-between-monolithic-and.html
Nothing to cram, funda is simple as their names. Mono means everthing in kernel space.
Micro means very minimal in kernel space.
Mono what goes into the kernel (kernel space)
Process management, memrory management, file system, i/o services etc. e.g Linux kernel;
Micro Kernels what goes into the kernel
very minimal support for the process management goes into the kernel, everything else all above mentioned things are implemented in user space.
These services in user space are called as servers. kernel communicates with them with message passing(IPC). e.g QNX
The main disdvantage of monolithic kernels is the dependency between system components - a bug might crash the entire system - and the fact that large kernels also
become difficult to mantain.
Other disadvantages are the kernel size, lack of extensibility and the bad maintainability. Bug-fixing or the addition of new features means a recompilation of the whole
ernel. This is time and resource consuming because the compilation of a new kernel can take severalhours and alot of memory. Everytime someone adds a new feature or
xes a bug, it means recompilation of the whole kernel.
Monday, March 14, 2011
Copy a linked list with next and arbit pointer
Look at method Number 3.
The funda here is to insert new node in between the nodes of original ist in way like this
1-2-3-4-__
1-1-2-2-3-3-4-4__
The new node instered have random pointer as zero.
Now in second pass we will link the arb pointer as this
copyList->arbit = org->arb->next. this would work and we would reach to the replica of org node. as in our new node orgList next pointer is the node which will be our final node in the new list.
not in third pass. to modify correct the next pointer
like cop->next = copy->next->next
and org ->next = org->next->next.
set the last pointer of the org list to the zero.