[En] Enable or disable IE proxy using Powershell

I’m currently working in a company where I have to set up a proxy to connect my laptop to the Internet. Because I’m fed up to enable it each morning and disable it each evening, I found two Powershell scripts to do these operations :

EnableProxy.ps1 :

set-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' 
-name ProxyEnable -value 1

DisableProxy.ps1 :

set-itemproperty 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Internet Settings' 
-name ProxyEnable -value 0

Et voilà !

Hope this helps Winking smile

Who restarted my server / troubleshoot unplanned events

Although the Windows Server 2012 “auto update” was configured to only check and download the updates, there was an unplanned server reboot.

An issue also arises when multiple administrators are administering servers..  trying to blame each other who restarted/shutdown/applied updates.

Well, from event logs its easier to identify who rebooted server and also can add custom view to event diagnosis to filter unplanned events.

To identify who restarted server:

Goto event viewer, Windows Logs, Systems and choose “Filter Current Log..”  from actions pane, search for event ID# 1074

Create custom event to troubleshoot unplanned server reboot events:

follow this link (Create a Custom View in Event Viewer to show Reboot Events)

Import standalone VM to Hyper-V Cluster

Today i encountered an requirement to import NSVPX appliance into Hyper-V cluster.

The step are basically few and easy as follows:

  1. Through Hyper-V manager, in the “Actions” pane right hand side, select “Import Virtual Machine”
  2. Follows the steps and select the CSV (clustered shared volume)
  3. Once the import process is completed, do not start the VM
  4. Through “Failover Cluster Manager”, in the “Actions” pane right hand side, select “Configure role”
  5. Click next, in the “Select Role” step, scroll down and select “virtual machine”
  6. Upon clicking next the VM which was imported in step 1 & 2 & which is in offline state is listed.
  7. Select the VM for high availability configuration and click finish


Glad I survived for 9 hrs.

Salam, Good Evening.
Alhamdulillah am glad that I survived today … “9 hrs”

Well no need to worry, just read ahead a bit lengthy but vital…

Which gave me opportunity to think n recall those G-olden days. No internet, No mobile phones, No social media yet people were in touch.

This morning forgot to take my incredible iPhone with me, the device which had become integral part of my life, used for taking pictures, reading Quran, ebooks, playing games (temple run,angry birds) making gsm calls, VoIP calls, morning alarm, adhan, SMS, GPS, tweeting, whatsapp, Facebook, email checking various news updates and host of other useful features. Can’t imagine life without the smart device & it’s connected world.

The moment I realized that iPhone is left @home, instead of rushing back, the beautiful thought & immediate self smile to leave it alone for the day triggered and continued happily.. 🙂

Although I knew that I would miss those important calls, status updates , remainders, just smiled and patted my own back, Man ‘today’ will test your patience & life that’s has become dependent on technology.

And this evening here am back with my iPhone spilling those beans about My S-eXperience without iPhone.

Baby’s day out.

Called umpteen times to my wife instead of whatsapp, not to know is there any missed call or important msgs, but to speak to her, the essence which made me realize that I have long lost that magic of speaking to her while in office how romantic. 😉

Infact in those 9 hrs I panicked twice “oh… Where is my iPhone” my hands searching for it on my desk & in my pockets. Soon smiled again.. Thinking It’s safe there @HomeSweetHome – Where #Life begins & #Love never ends.

Got urged to check twitter, FB from my office desktop PC, but resisted.

Other than few (finger count) important phone numbers I don’t even remember my friends n emergency contact numbers such as close neighbors, sons school etc.

That led me to call those long last friends whom I might have not spoken In last few months. No prize for guessing from where did I get the contact number, they all are still available in my outlook contacts. 🙂

Technology is a boon to an extent, at the same time it’s a bane too.

Hope that I forget at least once or twice a month my iPhone to office & intend to keep it away on weekends.

Twitter ne neendh churayee…
FB has become refrigerator, I know that nothing is there, still keeps peeping.
Texting has become a way of life…

How nostalgic it would be to return to those non-internet days.

Glad I survived for 9 hrs.
Disconnect to connect…

Congratulations ! to me..

Well, a bit late due to traveling and last minute rush.

During my three weeks vacation to Bangalore, i attended a professional training course VMware vSphere: Install, Configure, Manage [V5.1], a full five day training from GT Enterprise from 13th – 17th May 2013. The next five day armed with home based lab setup and wading & waning through lots of internet based articles, this one helped me lot,  go there, and find lots other references.

Not to forget the official “Exam Blue Print”, note: create your account at mylearn.vmware.com and download the latest exam blue print from there.

Above all, the instructor led class too helped in gaining lots of information, thank to the qualified, technically sound instructor (Mr. Wais Ahmed), helped me gain the additional information required.

Caution: Know the core concept and full hands on experience before attempting the exam, if you know the subject, you can pass in the fly.

on 22nd May 2013 i scheduled my exam through authorized Pearson Vue test center CertAspire and passed with flying colors 433 score.

Following the exam (once passed) your will receive email from VMware to complete a task confirming your certificate shipping address, permission to release your online transcript and official agreement with respect to certification along with complementary VMware workstation license.

Finally received email from VMware to complete the task, was completed on 28th May 2013 after requesting twice for name correction. and the official transcript was released.

Happy me 🙂 !!!!!


13 hot new open source projects

Open source projects are a great barometer of the tech industry. While companies take time to establish themselves and venture capitalists take months to decide where to place their bets, open source software takes just one programmer and a public repository. If the programmer has a fast Internet connection and the project is small, it only takes seconds for the world to see yet another possible branch in technology’s evolution.



1.    ProjectLibre project management software emulates Microsoft Project and complements LibreOffice to provide a full collection of tools for the team manager.

2.    OpenBravo is a longtime popular open source tool for managing the flow of inventory in businesses, aka ERP. The constellation of tools now includes a Point Of Sale companion for running cash registers at stores and restaurants.

3.    Impress.js, an open source version of the commercial package Prezi.

4.    Reveal.JS is another great HTML-based presentation system that rolls through the data and animates the transition in three dimensions.

5.    If you’ve always felt that Facebook is just a good precursor to a distributed social network that puts control back in the hands of the user, then Diaspora may be your open source project

6.    Pictures may not always be worth a thousand words, but they’re almost always more visually attractive. If you believe that data should be displayed in gorgeous, interactive diagrams — and who doesn’t? — then D3.js is the latest collection of irresistible JavaScript routines.

7.    Developers are some of the last people still clinging to their desktops and laptops because they want the faster connection and control that desktops and laptops provide. That is slowly changing as development is moving into the cloud. Soon big, integrated development environments will be living in the cloud where they can build faster and store more code. One of the crucial parts of the equation is CodeMirror, a browser-based code editor with highlighting and customization for dozens of the most popular languages.

8.    Testing your code with unit tests is easy when you’re working inside the code base and it’s not too hard to jump outside if you’re writing a command-line tool. It’s a bit different if you’re creating a website — it’s just not so easy to simulate a user browsing and clicking. CasperJS offers a collection of helpful functions that make it simpler to browse through a website, fill out forms, click on links, and capture screenshots as you’re doing it. CasperJS does all of this with PhantomJS, a headless Webkit engine in the core, so you know it’s going to come close to emulating Chrome, Safari, and an iPhone. Both are released with the MIT license.

9.    The average database has always been ready to store geographic information: Just stick the latitude in one column and the longitude in another. That works fine until you want do anything beyond just fetching those values. GeoServer is a database tuned for geographic data, so you can let GeoServer check the validity of the data, search it, and deliver answers in a format that the mapping layer can readily understand. Written in Java and covered by the GPL 2.0.

10. Many programmers treat Cascading Style Sheets as a static list of aesthetic choices about fonts, colors, and border sizes. The values are cast in stone by some designer in another cubicle, and the programmers never think about it. Less CSS is a project designed to change that mindset by mixing in variables, operations, and functions into the development of CSS.

11. Sure, it looks like a game. Sure, it’s similar to SimCity. But Simutrans is really an addictive simulator for testing how different transportation options can get people where they need to go.

12. If you play music, you’ll want to record it. And if you record your music, you’ll want to fiddle with the tracks for hours until you get as close as you can to creating the right sound. The LMMS (Linux MultiMedia Studio) lets you mix samples, add beats, and experiment with hundreds of other audio blending techniques before producing the final song. Distributed under the GPL 2.0; also built for Windows despite the name.

13. The great sea of humanity may love WYSIWYG editors, but serious people like scientists and programmers continue to enjoy the power and programmability of TeX, the original great typesetting language. TeXnic is the latest client for the code that creates an integrated development environment for writing and editing papers.

 reblogged from source here

Miswak A Forgotten Sunnah

Virtues of Miswak

Usage of Miswak
The use of Miswak is a means of purifying the mouth and is pleasing to Allah (The Exalted). 

Sunnah of All The Prophet’s (upon them all be peace)

The Miswak is a stick by which a person cleans the mouth. This is a great Sunnah of the Messenger of Allah (may Allah bless him and grant him peace). It is also a Sunnah of all the Messengers of Allah (upon them all be peace), for they used the Miswak. 

Abu Ayyub Ansari (may Allah be pleased with him) narrates that four things are the Sunnahs of all the prophets (upon them all be peace) 1) Circumcision, 2) To apply fragrance (Itr), 3) To use Miswak, 4) Marriage. 

Seventy Extra Rewards For One Salaah

‘Aisha (may Allah be pleased with her) has reported that,

“The prayer before which the Miswak is used is seventy times more excellent than that before which it is not used.”

Ibn Abbas, ‘Ali and Ata (may Allah be pleased with them all) state that, 

“But it increases to 99 or 400 times.”

This reward is based on sincerity, the more sincerity you have the more reward you get, it may be that you can get 70, 99 or even 400. Subhanallah! 

Many Other Benefits

Abu Darda (may Allah be pleased with him) states that, 

“Make Miswak a must do not be headless as there are twenty four benefits in Miswak, the greatest benefit is that Allah (swt), becomes pleased, there is increase in wealth, it freshens the breath, it strengthens the gums, it relieves headaches, it relieves toothache and due to the light from the face and teeth the angles shake hands.”

Ali, Ata and ‘Abdullah ibn ‘Abbas (may Allah be please with them all) state that Miswak strengthens a person’s memory, cures headaches, relieves the veins in the head, it gets rid of phlegm, strengthens the eye sight, keeps the liver healthy and helps digest food, increases intelligence, helps increase in family, lineage stays healthy in an old age, strengthens the stomach, purifies the heart, when exiting the Mosque the angles walk behind the person, the Prophets’ make supplication of forgiveness for the person, the Shaytan is displeased, the difficulties of death become easy and one remembers the Shahadah, when the angel of death comes to take the soul he will come as one of your friends and in some narrations it states he comes in the form when he takes the soul of a Prophet, you will get the book of deeds in the right hand, cross the bridge of Pul-Sirat with the speed of lightening, peace in the grave, if a person forgets to use the Miswak who has a habit will still be rewarded, and the doors of paradise are opened for that person. 
‘Ali (may Allah be pleased with him) states that,

“The Miswak increases the memory and rids phlegm.”

The doctors say that the reasons for spots in the mouth are due to heat and acid from the liver and bacteria that is created in the mouth. One should use a Miswak as the saliva that is created from using the Miswak rids the illnesses.

On Awakening

‘Aisha (may Allah be pleased with her) narrates that the Messenger of Allah (may Allah bless him and grant him peace) said, 

“Never woke from sleeping at any time of the day or night without cleaning his teeth with a Miswak before performing ablution.”
To perform Miswak after sleeping when one awakes is a Sunnah. Whilst asleep the bad odours from the stomach comes towards the mouth which is why the mouth smells. With the blessings of this Sunnah the mouth will be cleansed.

On Entering The House

When the Messenger of Allah (may Allah bless him and grant him peace), intended to recite the Qur’an or sleep, he would use a Miswak. He did the same when entering the house. ‘Aisha (may Allah be pleased with her) said that,

“The first thing that the Messenger of Allah (may Allah bless him and grant him peace) did on entering the house, was Miswak.”

Part of Ablution
Hassan bin ‘Atiyya (may Allah be pleased with him) states that, 

“Ablution is part of faith and using a Miswak is part of ablution.”

The Emphasis 

Abu Hurayrah (may Allah be pleased with him) narrates the Messenger of Allah (may Allah bless him and grant him peace), said that, 

“If I had not found it hard for my followers or the people, I would have ordered them to clean their teeth with Miswak for every prayer.”

Importance of Miswak

Allama Sha’rani (may Allah have Mercy upon him) states that, 

‘Once Abu Bakr Shibli (d.334 A.H.) (may Allah have Mercy upon him) was in need of a Miswak at the time of wudhu, he looked for one but could not find one. He spent a Dinar and bought one and used it, people said, ‘You have over spent, can you buy a Miswak this expensive?’ Abu Bakr Shibli (may Allah have Mercy upon him) replied, ‘This world and all its contents in front of Allah (The Exalted) is not even compared to a mosquito, what answer will I give on the Day of Judgement when Allah (The Exalted) asks me, “Why did you leave the Sunnah of my beloved? The wealth that I gave you which (in front of me) is not equivalent to a mosquito, you did not spend it for this Sunnah?””

Miswak a Great Sunnah
‘Aisha (may Allah be pleased with her) said that, 

“He passed away in my house, on my day, between my chest and throat. And at death Allah (The Exalted) joined my saliva to his. For when my brother ‘Abd al-Rahman entered carrying a Miswak in his hand, he (the Prophet) began to look at it, and I knew that it pleased him, so I said; “Shall I bring it to you?” Yes, he nodded, so I handed it to him. He put it into his mouth, but it was too hard for him. “Shall I soften it for you?” I asked. Yes, he nodded, so I made it soft. And by him there lay a leather vessel containing water into which he started dipping his hand, saying, “No deity is there except Allah! (The Exalted) truly death has agonies!” then he lifted up his hand and said, “The Highest Companion! The Highest Companion!” and I said, “So by Allah! (The Exalted) he will not prefer us.”” ‘Inna Lil-La-hi Wa-inna Ilay-hi Ra-Jioon.’

Even on the death bed the Miswak was a beloved Sunnah of the Prophet (may Allah bless him and grant him peace), because it pleases Allah (The Exalted). Let us grasp hold fast to this Sunnah, we brush our teeth anyway, why not use the Miswak too as you can carry the Miswak with you as there is no need for paste, as the Miswak comes form a tree which has natural benefits and you can use it whenever you want, after eating, before entering the house, etc.

Cure For Illness

‘Aisha (may Allah be pleased with her) states that,

“There is a cure for every illness in Miswak besides death.”

Allama Amjad ‘Ali writes in Bahar-e-Shariat that, “The scholars state whosoever has a habit of using the Miswak, then at the time of death they will (be blessed with the) reciting of the Shahadah”

How to hold the Miswak

According to ‘Abd Allah ibn Mas’ud (may Allah be pleased with him) hold the Miswak in the right hand so that the small finger is below the Miswak and the thumb is below the tip and the other fingers are on top of the Miswak. Do not hold it in the fist as there is a chance of illness. 

Shaykh Ahmad Raza Khan writes; “To keep the teeth healthy, a deed has been practised by the scholars, that is in the first cycle of the Witr prayer recites Surah Nasr , in the second Surah Lahab and in the third Surah Ikhlas .” 

Manners of Miswak

1. The Miswak should not be too hard nor too soft. 
2. It be from trees such as Zaytoon, Peelu or Neem and not from a fragrant tree. 
3. Rub the Miswak on the gums at least three times and dip it in water each time. 
4. If the finger is to be used instead of the Miswak, then the upper and lower jaws on the right side are cleaned with the thumb and the left side is cleaned similarly with the index finger. 
5. Put the Miswak upright when not in use. 
6. There is a chance of becoming insane if placed on the floor. 
7. The Miswak should be no thicker than the little finger and longer than the hand span as the devil sits on the end if longer. It is not a problem if less than a hand span but not too short that it is difficult to use.
8. Imam Shafi said, ‘cleansing the teeth increases wisdom’. 
9. Use the right hand to perform the Miswak. 
10. Clean at least three times. 
11. Do not perform the Miswak in a up/down motion but use it from right to left as there is a chance of damaging the gums. 
12. It is disliked to use the Miswak in the toilet. 
13. Do not use it whilst lying down as there is a chance of bad temper. 
14. To perform Miswak in wudhu is an emphasized Sunnah (Sunnat-e-Muakeda). 
15. Miswak is Sunnah for ablution and not for Salaah. 
16. Do not throw away the Miswak or the bristles away but bury them. 
17. Use the Miswak from one end and not both. 
18. Women can also use the Miswak. 
19. One who uses the Miswak gets five rewards for each tooth. 
20. The companions would keep the Miswak on their ears even at the time of journey.
21. Cut the bristles (tip) of the Miswak every 1-2 days and start fresh by biting to make it soft.
22. It is permissible to use Miswak whilst fasting. However, it is not permissible to use a flavoured Miswak nor is it permissible to use toothpaste, when the taste enters the throat breaking the fast and it is wajib (necessary) to be made up. However, if it does not go down the throat it is Makrooh (disliked), but one should abstain if there is no need to do so. 
23. It is Sunnah to use a Miswak on the day of Jumu’ah. 
24. According to a hadith, the use of Miswak will gain a person the reward equivalent to the number of new Muslims that revert until the day of judgement. 
25. To use the Miswak after eating, one will gain the reward of freeing two slaves. 

Other times when the usage of Miswak is Sunnah

1. For the recitation of the Holy Qur’an.
2. For the recitation of Hadith.
3. When the mouth emits bad odour.
4. For teaching or learning the virtues of Islam.
5. For making remembrance of Allah (The Exalted).
6. Before intercourse.
7. After entering one’s home.
8. Before entering any good gathering.
9. When experiencing pangs of hunger or thirst.
10. After the time of Suhoor. 
11. Before meals.
12. Before and after a journey.
13. Before and after sleeping.

May Allah (The Exalted) give us the ability to practise this beautiful Sunnah with sincerity, Ameen


Original Source: http://www.ummah.com/forum/showthread.php?300501-Virtues-of-Miswak