$(document).ready(function(){ $(window).on(‘beforeunload’, function(e){ if(msg(Yes/No)){ // if Yes return ‘Click stay on this page and save the Data.”’; } }); }); Read more →
TFS Cache default directory
C:\Users\{<user_name>}\AppData\Local\Microsoft\Team Foundation\{<verssion>}\Cache Read more →
Download Visual Studio 2017 RC for offline installation
vs_Community.exe Install all languages vs_enterprise.exe –layout C:\vs2017 vs_Community.exe –layout C:\vs2017 Example B: Install one language vs_enterprise.exe –layout C:\vs2017 –lang en-US vs_Community.exe –layout C:\vs2017 –lang en-US Example C: Install multiple languages vs_enterprise.exe –layout C:\vs2017 –lang en-US de-DE ja-JP vs_Community.exe –layout C:\vs2017 –lang en-US de-DE ja-JP Read more →
Open Text file by excel macros
Call Shell(“notepad.exe “”filename with path”””, vbMaximizedFocus) Read more →
Write File from excel
Sub WriteFile() Dim strPath As String strPath = “C:\\temp\\” & “filename.txt” Dim fso As Object Set fso = CreateObject(“Scripting.FileSystemObject”) Dim oFile As Object Set oFile = fso.CreateTextFile(strPath) oFile.writeLine sInsert For i = 2 To 100 ‘#loopCount oFile.writeLine “pankaj” Next oFile.Close Set fso = Nothing Set oFile = Nothing MsgBox (“Done”) End Sub Read more →
list of filename
dir /b Read more →
How to re-position dialogbox
$(“#dialog”).dialog(“widget”).position({ my: ‘center’, at: ‘center’, of: window }); where windows is container of position Read more →
Increase Boot time for vmplayer
Open virtual machine configuration file [machinename]*.vmx and add following line bios.bootDelay = “5000” Read more →
Print All content of page
in Firfox Press SHIFT+F2 and type screenshot –fullpage It will provide you image of whole page. Read more →
Check Python version
#Python Info import sys print(sys.version) print(sys.version_info) #Django Info import django; print(django.get_version()) Read more →