Monday, December 31, 2018

Scheduling of Linux threads based on priorities.

Thread priorities do work on most OS's but they often have minimal effect. Priorities help to order the threads that are in the run queue only and will not change how often the threads are run in any major may unless you are doing a ton of CPU in each of the threads.
Unless you have fewer cores than there are threads, you may not see any change in output order by setting your thread priorities. If there is a free CPU then even a lower priority thread will be scheduled to run.
Also, threads are never starved. Even a lower priority thread will be given time to run quite often in such a situation as this. You should see higher priority threads be given time sliced to run more often but it does not mean lower priority threads will wait for them to finish before running themselves.
Even if priorities do help to give one thread more CPU than the others, threaded programs are subject to race conditions which help inject a large amount of randomness to their execution. What you should see, is the max priority thread is more likely to spit out its message more often than the rest.

In modern computers, many processes run at once. Active processes are placed in an array called a run queue. The run queue may contain priority values for each process, which will be used by the scheduler to determine which process to run next
To ensure each program has a fair share of resources, each one is run for some time period (quantum) before it is paused and placed back into the run queue. When a program is stopped to let another run, the program with the highest priority in the run queue is then allowed to execute.

Processes are also removed from the run queue when they ask to sleep, are waiting on a resource to become available, or have been terminated.

In the Linux operating system (prior to kernel 2.6.23), each CPU in the system is given a run queue, which maintains both an active and expired array of processes. Each array contains 140 (one for each priority level) pointers to doubly linked lists, which in turn reference all processes with the given priority. The scheduler selects the next process from the active array with the highest priority. When a process' quantum expires, it is placed into the expired array with some priority. When the active array contains no more processes, the scheduler swaps the active and expired arrays, hence the name O(1) scheduler.



In UNIX or Linux, the sar command is used to check the run queue.

The vmstat UNIX or Linux command can also be used to determine the number of processes that are queued to run or waiting to run. These appear in the 'r' column.


There are two models for Run queues: one that assigns a Run Queue to each physical processor, and the other has only one Run Queue in the system


Why do we get random results (every time I run it changes):
The output from a threaded program is rarely if ever "perfect" because by definition the threads are running asynchronously. We want the output to be random because we want the threads to be running in parallel independently from each other. That is their power. If you expecting some precise output then you should not be using threads. Still, the following program will give you the desired result every time you run it.
#define _GNU_SOURCE // must be placed prior to sched.h
#include <stdio.h>
#include <linux/errno.h>
#include <pthread.h>
#include <sched.h>
#include <unistd.h>
#include <stdio.h>

void *thread1(void *null)
{
  int policy;
  struct sched_param param;

  pthread_getschedparam(pthread_self(), &policy, &param);
  // 0 - SCHED_OTHERS     1 - SCHED_FIFO          2 - SCHED_RR
  printf("\n thread 1 Current Thread Policy : %d Priority : %d\n", policy,
         param.sched_priority);

  sleep(5);
  pthread_getschedparam(pthread_self(), &policy, &param);
  // 0 - SCHED_OTHERS     1 - SCHED_FIFO          2 - SCHED_RR
  printf("\n thread 1 Current Thread Policy : %d Priority : %d\n", policy,
         param.sched_priority);
  __fpurge();
  pthread_exit(NULL);
}
void * thread2 (void *null)
{
  //printf("i am thread 2\n");
  int policy;
  struct sched_param param;

  pthread_getschedparam(pthread_self(), &policy, &param);
  // 0 - SCHED_OTHERS     1 - SCHED_FIFO          2 - SCHED_RR
  printf("\n thread 2 Current Thread Policy : %d Priority : %d\n", policy,
         param.sched_priority);
  sleep(5);
  pthread_getschedparam(pthread_self(), &policy, &param);
  // 0 - SCHED_OTHERS     1 - SCHED_FIFO          2 - SCHED_RR
  printf("\n thread 2 Current Thread Policy : %d Priority : %d\n", policy,
         param.sched_priority);
  __fpurge();
  pthread_exit(NULL);

}
int main()
{
  int inherit, policy, rc , status;
  pthread_t t1,t2;
  pthread_attr_t attr;
  struct sched_param param;

  pthread_attr_init(&attr);
  /* switch off sched inheritence from parent */
  pthread_attr_setinheritsched(&attr, PTHREAD_EXPLICIT_SCHED);

  /* Set processor affinity */
  cpu_set_t mask;
  CPU_ZERO(&mask); // Clears set, so that it contains no CPUs.
  CPU_SET (1, &mask);  /* use only 1 CPU core */
  unsigned int len = sizeof(mask);
  status = sched_setaffinity(0, len, &mask);
  if (status < 0) perror("sched_setaffinity");
  status = sched_getaffinity(0, len, &mask);
  if (status < 0) perror("sched_getaffinity");


  /* Assign Sched policy and priority */
  policy = SCHED_FIFO;
  pthread_attr_setschedpolicy(&attr, policy);

  param.sched_priority = 10;
  pthread_attr_setschedparam(&attr, &param);

  /* create thread with choosen attribs */
  pthread_create(&t1, &attr, thread1, NULL);// t1 ie thread object gets initialised here
  pthread_create(&t2, &attr, thread2, NULL);
  /* destroy attribute object */
  pthread_attr_destroy(&attr);
  sleep(2);

/* FOR thread 2 */
  param.sched_priority = 17;
  policy = SCHED_RR;
  pthread_setschedparam(t2, policy, &param);

  /* FOR thread 1 */
  param.sched_priority = 16;
  //policy = SCHED_RR;
  pthread_setschedparam(t1, policy, &param);

  pthread_exit(NULL); // wait for all threads to terminate.

}


References:
1. http://www.informit.com/articles/article.aspx?p=101760&seqNum=2
2. https://en.wikipedia.org/wiki/Run_queue

Tuesday, January 2, 2018

Taxation on Debt and Liquid Funds

Example:
I am coming under tax bracket of 20per cent. If I invest R10 lakh in a liquid or ultra short term debt fund for 4 or 5 years how much tax do I have to pay? Please give your answer with numerical example.
- Ramesh M

If you sell them within 3 years, capital gains on debt funds are treated as short term. It will be added to your income and taxed as per your applicable tax slab. Long term capital gains (if exit is after 3 years) are taxed at 20 per cent with an indexation benefit on your cost.

Investment holding period Taxation
Short Term Capital Gain 36 months or lesser added to income and taxed as per applicable slab rate
Long Term Capital Gain more than 36 months                 20% with indexation

Let us take an example, Since we do not have the Cost Inflation Index for future years, we will take an example of past. Say you invested R10 lakhs in 2010-2011. Assuming the fund returned 9 percent a year, and you redeem it for R15,38,624 in 2016-17, your long term capital gain would be R5,38,624.

However, if you index the cost with the Cost Inflation Index (provided by the IT department) for 2010-11 and 2015-16, then the cost would be R1,52,0393 (R10 Lakh * 1081/711). Then the long term capital gain would be R18231 (1538624-1520393). A 20 percent tax on this would be R3646.

So, as per this example, your capital gains tax for this financial year will be R3646.


I want to know the taxation on liquid fund. If I sell liquid fund and generate gain, is it taxable?
- Vinod Mehra

Yes, capital gains on liquid funds are taxable.

If you sell your funds before three years (36 months), you will have to pay short-term capital gains tax. Short-term capital gains are added to your income and taxed as per the income tax slab applicable to you. If funds are held for more than three years, your gains will qualify for long-term capital gains tax of 20 per cent with indexation benefit on your original investment.

Links: http://cafemutual.com/news/guestcolumn/51-how-to-calculate-tax-on-mutual-funds

Saturday, March 25, 2017

How can I install Red Hat Enterprise Linux (RHEL) 7 in Windows 7 with a dual boot option?



Installation will be simple, like others has already mentioned it.
Few Important Points before you install Red Hat Enterprise Linux 7 on a system already installed with Windows 7 and want to have it dual boot.
1. First and foremost thing, take a backup of your Windows MBR :D , I know few non-Linux people wants to install Linux/RHEL with Windows dual boot but after few days, they want to remove Linux and just want to keep Windows. So after dual boot, one has to repair Windows in order to correct the MBR which gets replaced by RHEL MBR.
To take backup of MBR, boot your machine with RHEL DVD and go into rescue mode, once in rescue mode, choose shell, and in the shell, run the commands as follows.
# fdisk -l
This should show what is your disk name, I suppose it’s /dev/sda.
Take backup of first 512 bytes as follows. The following command is very critical, one shouldn’t mess it up.
# dd if=/dev/sda of=/tmp/WindowsMBR.backup bs=512 count=1
Then scp this /tmp/WindowsMBR.backup to some safe location from where you can download/take it at any point of time.
So, once you want to remove Linux, just come back again in rescue mode and remove Linux Partitions and just restore the MBR as follows.
# dd if=/path/to/WindowsMBR.backup of=/dev/sda
And simply reboot. You won’t need to repair Windows at all.
2. Don’t ever touch the Windows partitions while doing the RHEL7 installation.
3. If you are using UEFI mode in your System, then don’t even worry about MBR backup. UEFI maintains separate bootloader entries on first sector of the bootable PARTITION instead of the Bootable disk. The MBR is stored with the EFI files so win win situation in UEFI mode.
4. If you have already three primary partitions created in your Windows machine, and are in use, then even if your remaining disk space is 1000GB, you won’t be able to create two partitions (1 primary and another primary/extended) RHEL requires at least two partitions, 1 primary for /boot and another primary/extended for further filesystem. So if three consumed by Windows at this moment, only /boot creation is possible, extended won’t be created.
So, keep in mind, Windows must have maximum of two primary partitions. Again this applies only for Legacy Boot mode, not for UEFI mode. In UEFI mode, to store the partition table, we have a lot of disk space available, so doesn’t even matter how many primary partitions you are creating.
I think rest is fine :)

Tuesday, October 25, 2016

Affiliated Links

Excellent product. Due to High Ampere output, mobile gets charged quickly without heating it. Good Choice for Sony ,HTC,Samsung and other mobile&nbsp  

Link to sony earphones
WD My Passport 2 TB Wired External Hard Disk Drive
Lenovo PA13000 PowerBank 13000 mAh Power Bank
Healthy Buddha Organic Amla Honey (500GR)

One Plus 5 Updated Price
 




if you have any queries regarding the product i would be happy to answer your question if like the product you can purchase it from amazon from the link
Link to Windows Activators


OnePlus 5 (Slate Gray 6GB RAM + 64GB memory) Moto G5s Plus (Lunar Grey, 64GB) Shop now

Wednesday, April 27, 2016

CDAC Hyderabad DESD Study Material

Click on the following link as per your requirement 

1.For ARM material-------------------------------->  click here
2.For Device Drivers material ---------------->       click here
3.For OS material ---------------------------------->  click here
4.For Aptitude material ----------------------------> click here
5.For GSM material --------------------------------> click here
6.For JAVA material ------------------------------->  click here
7.For Rtos material -------------------------------->  click here
8.For DCN material --------------------------------> click here
9.For DSP material --------------------------------> click here

Other Important links which will add-on to your knowledge 
1.For OS Tutorials in Hindi -----------------------> click here
2.For Pre-Dac Queries  ----------------------------------> click here
3.For installing arm tool chain --------------------------> click here

if you like this post you can join my blog , by clicking on join this site also you can like my page on facebook by clicking here My Journey.
For further queries you can mail me at - kapil0123@gmail.com.

Tuesday, April 5, 2016

Installing ARM Tool Chain

Steps:-
1.  Copy ARM folder to desktop.
2. Open Terminal do cd Desktop/ARM/arm_tool_chain then press enter.
3. Type chmod 777 arm_install.sh  (Changing the permissions of arm_install.sh .). press enter.
4. Type sudo apt-get install arm_install.sh (press enter and type your password this will install your arm tool chain).
5. If above step doesn’t work use ./arm_install.sh or sudo ./arm_install.sh.  (press enter and type your password).Restart your PC.
6.To check whether arm tool chain is installed or not in command prompt type arm and press two time tab arm tool chain related file if shown means tool chain is installed otherwise it is not there.
7. If you face an error like libtercap.so.2 permission denied or something similar to that  while compiling then you just need to trace this file and change its permssions. 
8.You will find this file in filesystem/user/lib go there and search and change the permission using chmod libtercap.so.2

to download setup and respective material click here Arm tool chain and Material.
if you like this post you can join my blog , by clicking on join this site also you can like my page on facebook by clicking here My Journey.

Sunday, March 6, 2016

Acess Windows Drive on Ubuntu

Suppose i want to access the software drive as shown above in ubuntu. For that 
 


1- Open Terminal using ctrl+alt+t
2- Type cd  /media then press enter.
3- Then type cd  username/drivename. for example in my case it is cd  innovative/Softwares.
4-You can now type ls  to view files in that drive. see the screen shots for better understanding.

Please note that if you have dual boot Windows 8 or higher and Ubuntu then remember that before using above method .Your windows must be in non hibernation mode. When you restart your PC windows it is in non - Hibernation mode. if you simply shutdown windows then it always remain in hibernation.

Saturday, March 5, 2016

My Pre-Dac/C-Cat Journey

Pre-DAC FAQs??

1- Should i join Pre-DAC ?
Go to the cdac.in and check the syllabus, if you can Prepare the syllabus For C-CAT given in that then you can avoid taking tutions form any institute , but if you take you have better chance to choose your dream place and center. Also you are more aware about the exam pattern level of exam , which center are good for which course, and an slight overview of basic idea of how cdac training goes on, even you get a chance to meet seniors they can share there experience and guide go further.

2-From where i should plan to do Pre-DAC?
From my view http://www.sunbeaminfo.com/ ,market yard,gultekdi, pune is best for taking Pre-DAC coaching , they have expert faculties , but note that they will cover the syllabus very fast , from my view you should have done C earlier ,because the c module is for about 10 days only . as i was new to C and from ECE backgroud i was having problem in understating, how ever the teachers will taught you from root but i was unable to grab at that speed. so its better to have basic C knowledge. Avoid joining the part time session for Pre-DAC in sunbeam , i was in that module 1 faculty was not good in that module.

3-Duration and Fess for Pre-DAC?
Duration depends on the institute providing coaching to you , in sunbeam i had done an 2 months course . the fees for Pre-DAC was 11000Rs . That is much but if you can afford i will suggest you to join it. once you pay the fees sunbeam will mail you near by PG List via mail . you can contact them and you can also book room at phones but i advice you to go there. Book a hotel for 1 day before going there and search best room for 1 day and then join any PG.

4-What is the Food and Its cost??
Food near sunbeam is good , there is an samarth snack center near sunbeam that provide good quality snacks. i recommend you have an try there. note most of the MESS do not provide breakfast there and also on sundays most MESS are closed. choose accoding to that. It cost around 50Rs for one time ,on monthly bases the charges vary from 2400Rs to 2800Rs , i recommend you join any mess instead of taking food at hotels or restaurant. if you need a change you can go to hotel fluora's mini restro during Lunch and Dinner its not the best but it is good.  

Dear friends i am sharing my experience individual experience may vary:

Tuesday, February 2, 2016

Can I Install OS (or make Bootable on) a password featured Hard Disk

I am trying to install multiple OS on a single Hard Drive since i met Dr. Gokhale , But failed in two experiments , i want to share some information it may help you .

1- I had made Bootable my san disk ultra 3.0 Pendrive via Wintobootic. Software, with WIN 7 ISO.














2- Then try to install on my password Featured WD My Passport Hard Disk . Even i have unlocked it even then also i was unable to install Win 7 on it. The reason that i know is that my Hardisk 1st 1024 Mb has a autorun program installed by WD which restricts me installing me any Operating System.











3- However i found an website which may be helpful to you http://www.intowindows.com/how-to-install-windows-7-to-usb-external-hard-drive-must-read/
also there is another link to install WIN 7 on USB via Portable Virtual Box. http://www.intowindows.com/install-windows-7-on-usb/

although i am trying for an another method that is by using GRUB. because that allows me to use full computer resources.

Wednesday, January 27, 2016

Paying 2nd Installment for C-DAC through BANK

Paying 2nd Installment for CDAC through bank Comprises of following steps:-

1- Click on NEFT for 2nd Installment and Take print of your details.
2- Go your respective bank (Take your passbook and check book you may require) and fill NEFT form as per details in print and your account details.
3- After this done ask for UTR number by the NEFT doing agent , or you may get UTR number by Updating your passbook.
4- Log in to cdac.in and Fill your NEFT details at the botom and and click on Submit
5- Wait for 48hrs for update and then check. for any queries regarding your payment you can contact your respective allocated center , for other queries post here i will try to answer you. you can also join my blog for further updates kapil0123.blogspot.in you can like my page at facebook My Journey.

I have discussed Cdac Hyderabad on Telephone they said that payment of 2nd installment Payment status after successful NEFT done will be update in about 10 to 15 days . For further details you can contact CDAC Hyderabad at 04023737127

Fig: Take print of  your respective page like this






Thursday, January 14, 2016

Number of ways to Swap Numbers in Programs.....!



1.     Simple Method:-
By using temp. Let a = 10, b=20;
temp = a; //temp =10
a = b; // a=20
b = temp ; // b = 10
Earlier a = 10, b = 20;
Now    a = 20, b = 10;

2.     Using Addition and Subtraction:-
Let a = 10, b=20;
a = a + b Ã  10 + 20 = 30 // a = 30
b = a – b Ã  30 – 20 = 10 // b = 10
a = a – b Ã  30 – 10 = 20 // a = 20

Another Method
1. b = (a + b) - (a = b)
2. *b = (*a + *b) - (*a = *b)

3.     Using Multiplication and Division:-
Let a = 10, b=20;
a = a * b = 10 * 20 = 200 // a = 200
b = a / b = 200 / 10 = 20 // b = 20
a = a / b = 200 / 20 = 10 // a=10 

4.     Using Bitwise XOR:-
Let a = 2, b = 3;
a = a ^ b Ã  2 ^ 3 Ã  1 // a = 1, b = 3
b = a ^ b Ã  1 ^ 3 Ã  2 // a = 1, b = 2
a = a ^ b Ã  1 ^ 2 Ã  3 // a = 3, b = 2

Another way of writing
1. a^ = b^ = a^ = b
2. *a^ = *b^ = *a^ = *b







Wednesday, September 30, 2015

How should I plan my final year of BTech / Carrer ahead to get a core job in electronics?


The following skills are must to get into Electronics Core companies

        1. C Programming - Must
        2. C Language - Basics
        3. Electrical Fundamentals
                  a. V = IR   b. P=VI   c. Voltage Divider  d. AC/DC
        4. Analog Electronics Fundamentas
                  Ic = Î² * Ib / Simple Regular Circuits
        5. Digital Electronics Fundametals
                  Combinational Logic/ Sequential Logic/ Microprocessors/Micro controller
        6. Number Systems
        7. Good Communication skills
           

Monday, September 28, 2015

9 OS 1 PC ......... Interesting ,Must Attend “Multi-OS Installation Workshop”


 “Multi-OS Installation Workshop” is On 3rd And 4th Of October, ( Saturday and Sunday ).
Venue : “SunBeam” C Bldg
 Fees : Rs-1500/- including service tax
Time : Saturday 3rd Oct : 2 pm to 8.15 pm , Sunday 4th Oct : 11 am to 8.15 pm
Speaker Details : Dr.Vijay Gokhale Sir. He has been conducting this workshop for last 10 years .His practical experience & eminent style of teaching has made this workshop highly successful & popular in student community.
Process of Payments & Registration: Students of Sunbeam’s full time courses needs to register by signing registration sheet available with their group leaders. Rs.1500 will be deducted from caution deposit. Last date of registration is Tuesday 29th Sept 2015.  Other students need to register online on sunbeam website & pay in ICICI Bank. There are limited seats & admissions are on First Come First Serve Basis.
Please Read The Following Carefully To Avoid Misunderstandings And Losses :
==========================================================
[ Please be patient while reading this content. I assure, you will not regret ]
This  “Multi-OS Installation Workshop” is not only about installing 9 Operating Systems on 1 machine but about many other things like :
01) Why : Necessity/Benefits,
02) BIOS With Respect To OS Installation,
03) EMT64/i386/x86/IA64/x64/x86_64 Terminology.
04) EFI/UEFI,
05) Boot Sector With Respect To OS Installation,
06) MBR/EPBR,
07) Partition Table,
08) MBR Partitioning Scheme,
09) GUID Partition Table (GPT) Partitioning Scheme, Supported OSs
10) Disk Cylinder/Head/Sector/LBA/LVM,
11) Partitioning Commands, Tools,
12) Capacities And Limitations Of Hard Disks,
13) Booting ( Live CD/LiveUSB )
14) Seven Boot Loaders And Ram-Disks.
15) GRUB/NLDR Tweaking, Chain-loading, Configurations And Installations,
16) File Systems And Their Identifiers,
17) Quick Format And Low Level Or “0” Level Format Of Disks,
18) Specialities Of Operating Systems With Respect To Their Order Of Installations,
19) Flavours/Distros Of Unix/Linux.
20) ACPI Tables/DSDT/SSDT/BUS Ratio,
21) System Files Of All 9 Operating Systems,
22) Types Of GUIs,
23) Linux And Other OS Terminology Of Disk,
24) Mounting,
25) GRUB2 Configuration,
26) Hibernation Of New Windows OS,
27) MBR/NTLDR/BoottMGR/GRUB/GPT Troubleshooting Commands.
28) Virtualisation – Concepts, Types, Examples.
29) Emulator/Simulator Difference And Examples.
30) Apple Mac OS X : Macintosh/Hackintosh,
Following 9 Operating Systems will be used for installations :
[ I will tell you why I particularly chose these 9 OS ]
7 for native installation + 2 for virtual machine installation ( VirtualBox )
01) Microsoft Windows 7 – 32 Bit
02) Open Solaris – 64 Bit
03) PC-BSD – 64 Bit
04) Microsoft Windows 8.1 – 64 Bit
05) Open SuSE Linux – 64 Bit
06) Red Hat Fedora Core – 64 Bit
07) Apple Mac OS X – 64 Bit
08) Ubuntu – 64 Bit
09) Microsoft Windows 2012 Server – 64 Bit
* DEMOS :
=========
At the end of workshop there will be DEMOS of my Mult-OS laptop and applications :
[ Few attend this workshop again-and-again just to see this ]
Rarely seen OSs :
~~~~~~~~~~~~~~~~~
Which are “unthinkable” for many people to have on laptop
01) MS-DOS 6.22
02) Windows 3.1
03) SCO UnixWare ( The actual PC Unix )
04) Novel Netware
05) Full featured Mac OS X without Mac
OpenGL-CUDA Demos : “Graphics Programming of Realism”
~~~~~~~~~~~~~~~~~~~
Something that IT people say “impossible” for one person to do.
* Prerequisites :
=================
– Brain with full of whys and hows about computers.
– Mind with passion and patience of learning.
– A notebook and a pen.
– It is recommended but not must to have “Computer Fundamentals Workshop” already attended.
* Notes/CDs/DVDs :
==================
Installation notes with few CD/DVDs will be provided to you
* What it is NOT about :
========================
– Network Installation/Administration ( PXE Boot ) :
Topic of a separate workshop.
– Post-OS Troubleshooting :
So many troubles are there and you can not make everybody happy at all times.
Although some vital tips are given in workshop.
– Laptop Installation :
Whose warranty period is still going on.
I found that Laptop service centre people complain about this.
Usually Laptop is much expensive and bought by parents’ money.
– Cloud OS/Distributed OS :
This is matter of multiple machines/nodes/clusters.
– Embedded/Mobile OS :
I have separate workshop for this, which includes
Kernel Customisation And Cross-Compile Toolchain Programming.
* Who should NOT attend :
=========================
– Those who are Syllabus/Examination/Job oriented.
– Those who are unable to sit/see/hear for long time ( I mean it ).
– Those who are unable to put their mobiles/facebook/whatsapp “SWITCH-OFF”.
– Those who are ALWAYS busy for weekends.
– Those who are tired/bored of learning ( Really I mean it ).
– Those who are market driven rather than passion driven.
– Those who are managing doers rather than being a doer.
Special Precaution :
~~~~~~~~~~~~~~~~~~~~
Workshop may end around 9-00 PM. ’WOMEN SAFETY’ is at utmost priority.
So please reconsider in case of time and pickup constraints.
* Certificate :
===============
A duly signed certificate of attendance of this workshop will be given.
* NEWS/RUMOUR :
===============
I heard from many students that they get good jobs by understanding and doing Multi-OS installation on their laptops.


Source: http://www.sunbeaminfo.com/



Wednesday, September 16, 2015

Check Out Your B.Tech 8th Semester Result For Branches ECE ,CS,IT


Guru Jambeshwar University of Science and Technology , Hisar

Result notification B.Tech 8th Semester: Click on the respective links  


Tuesday, September 15, 2015

How do I find out the MAC address of your computer

Follow the following steps:
  • Click the Start icon
  • Click Control Panel
  • Select Network and Internet
  • Click Network and Sharing Centre
  • Select Change Adapter Settings from the list on the left hand side
  • You may have a separate icon for your Wireless connection, Ethernet (Wired) and a Virtual WiFi MiniPort. Each has its own MAC address.
  • Right click on the connection you are trying to find the MAC address for and select Properties
  • Hover your mouse over the text box underneath connect using . Your MAC address will appear in the tooltip and is made up of 12 characters e.g. 00:11:22:AA:66:DD

  • To use your computer on the Authorised network you will need to register this MAC address.

Sunday, September 13, 2015

Activate Windows 8.1 Pro ............ Effective and working method

Activate your windows Step by Step


Win 8.1 pro Activation Step by Step

KMS Activator



Note: Please note down that disable your internet connection while activating your windows.

Do hit the like button or subscribe my channel , and you can join my blog kapil0123.blogspot.com



Saturday, September 12, 2015

How to Enable Delete Confirmation Dialog Box in Windows 8 or 8.1

If you also want to re-enable delete confirmation dialog in Windows 8, following steps will help you:
1. Right-click on Recycle Bin icon on Desktop and select Properties.
2. Now enable "Display delete confirmation dialog" option and apply the changes.
Enable_Delete_Confirmation_Dialog_Windows_8.png
3. That's it. It'll re-enable the confirmation dialog box and now Windows will always ask for your confirmation before moving a file or folder to Recycle Bin.

Monday, September 7, 2015

KTechlab: An Integrated Development Environment

KTechlab: An Integrated Development Environment

Being an integrated development environment (IDE) for PIC microcontrollers and electronics, KTechlab essentially enables you to do design and simulation tasks. It is an open source software released under the terms of General Public License v2 (GNU GPL).

Sneha Ambastha 


KTechlab presents an integrated environment for electronic design and automation (EDA) tasks. It is considered to be an educational tool to design and simulate circuits related to PIC microcontrollers and other electronics. KTechlab features an extensive circuit designer that helps auto-routing along with simulation of logic elements and common electroniccomponents.
KTechlab features include:
1. Allows auto-routing and supports real-time simulation and debugging
2. Enables use of C, Assembly and high-level programming languages
3. Provides a pictorial format for microcontroller programming

 
 Fig. 1: KTechlab 

Many-in-one design tool
KTechlab has several components well integrated to help designers. Some of these are described below:

Circuit Simulator. It can simulate linear devices, non-linear devices and logics too. KTechlab can further be integrated with external simulators like gpsim so as to allow in-circuit simulation of PICs.

Editor. It can act as a schematic editor to provide a rich and real-time feedback of the simulation.

 
 Fig. 2: Visual Editor

Visual Editor. It has a flowchart editor that allows KTechlab to construct PIC programs visually. This makes it easy to program a microcontroller. The editor provides a microcontroller with all its ports defined as input or output. A designer can easily program that microcontroller by dragging arrows from those ports or by drawing a flowcode for those ports.

For example, let us program a PIC16F84 microcontroller to blink an LED. To do that, we will have to set any one port as output. Let us do that for PORTB,0 pin. The two ways in which it can be programmed are:

 
 Fig. 3: Compilation and simulation side by side

1. Click the arrow on the PORTB,0 pin and drag it to the left.

2. Click ‘advanced’ on the microcontroller and set PORTB,0 pin as output by resetting last bit te of te tris register of port B. Then draw the flowcode and save it.

Compiler. KTechlab has a high-level programming language called Microbe. It is basically a compiler for the PIC microcontrollers. Due to its similarity to Basic language, it is also called MicroBasic. It acts as a companion program to KTechlab. PIC16F84, PIC16F628, PIC16F627 and PIC16F877 are the microcontrollers’ Microbe supports.

Assembler and disassembler. KTechlab can integrate both an assembler and a disassembler via gpasm and gpdasm.

What users think about this tool

  
Every designer reviews a tool before using it, in order to check if it would be of any use to him. No one can get a better review than from the users and the developers themselves. Following are the remarks from sourceforge.net, kde-apps.org and edaboard.com communities:

1. “This is terrific program. Comparable to MultiSim by National Instruments. I use it on Kubuntu 9.04 AMD64. I plan on installing it on my laptop with Kubuntu 10.4 to see how it works. Thanks for a great program. Keep up the good work.”

2. “Great application that’s a pleasure to use! It compiled and ran perfectly on SUSE 10.2. Now if we can just get PCB design support, that would be fantastic!”

Download latest version of the software: click here
How to install KTechlab
Following is the way to compile and then install KTechlab on Linux:
1. Use a terminal and navigate to the top-level source directory
2. Run the shell script:

simple-setup.sh

This command compiles KTechlab into the directory simple-build, installs it into the directory simple-install and sets up the user-specific settings (syscoca, mime database) for the current user.

sh simple-setup.sh3. Launch KTechlab by running the script simple-launch.sh

sh simple-launch.sh

KTechLab should start running at this point.

 
Installing KTechlab on Ubuntu. We can also install this tool on the latest version of Ubuntu. However, we need to use the Debian version:

http://launchpadlibrarian.net/
50881922/ktechlab_0.3.7-9ubuntu1_
i386.deb


To download this package we have to install wget:

apt-get install wget

Then we can download ktechlab_0.3.7-9ubuntu1_i386.deb using the command:

wget-http://old releases.ubuntu.com/
ubuntu/pool/universe/k/ktechlab/
ktechlab_0.3.7-9ubuntu1_i386.deb


Enter the following command to install ktechlab_0.3.7-9ubuntu1_i386.deb:

dpkg -i ktechlab_0.3.7-9ubuntu1_i386.
deb


A claim of dependence will appear as libpopt0, but we can ignore it.
After the installation, exit the Ubuntu Lucid:

exitNow, to run KTechlab enter the command:

schroot p Ktechlab

Allowing multiple users on same build. An already compiled and installed version of KTechlab allows multiple-user access. In order to do this, run the script:

ktechlab-user-setup.shfrom the simple-install/bin/ directory:

sh simple/install/bin/ktechlab-user-
setup.sh
Then you can launch KTechlab as usual:

sh simple-launch.sh


Source : http://electronicsforu.com/electronicsforu/circuitarchives/view_article.asp?sno=2451&title%20=%20KTechlab%3A+An+Integrated+Development+Environment&id=13868&article_type=15&b_type=new