Quantcast
Channel: 技术笔记 –龙堂
Browsing all 40 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

Create a warning confirmation when send out email to certain contacts in...

I made a mistake today that put “everyone@example.com” in CC field, I am glad that I didn’t write anything stupid in it , and here is the thought: create a warning/confirmation popup if we’re going to...

View Article


Image may be NSFW.
Clik here to view.

How to configure custom screenshot annotation tool as Greenshot in Microsfot...

In Microsoft Test Manager 2012(MTM 2012) there is a pretty good feature that you can change the default screenshot annotation tool(mspaint.exe) to a custom one(which in this case will be Greenshot, my...

View Article


Image may be NSFW.
Clik here to view.

View the column design for a table by using T-SQL in Microsoft SQL Server

Sometimes I want to check the column design for a certain table but don’t want to click the table in object explorer window, then we can use “sp_help ‘SchemaName.TableName” to view all details of the...

View Article

Image may be NSFW.
Clik here to view.

Clean up Windows Updates leftover

In case I forgot, here are the steps to clean up the windows update leftover(Make sure you know what you’re doing!! After you done the following, no updates can be uninstalled!!) Run “cmd” as...

View Article

Image may be NSFW.
Clik here to view.

SQL Server Data Tools 2012 installation

Download the Tools from here: http://msdn.microsoft.com/en-us/data/hh297027 During the installation, if you encounter the following error message: [1644:1654][2013-02-27T12:35:02]: Registry key not...

View Article


Image may be NSFW.
Clik here to view.

Example: Python connect to Microsoft SQL SERVER 2012 on Windows

Preconditions: Python 2.7.3 (32bit) installed Pymssql win32 module 2.0.0b1 module installed Microsoft® SQL Server® 2012 Native Client installed(search for “sqlncli.msi”) Assuming that you have a table...

View Article

Image may be NSFW.
Clik here to view.

Create an Excel Report from Microsoft Query by execute the SQL Query directly...

Recently I was required to provide an excel report related to Microsoft Team Foundation Server workitems, but the requirement is kind of hard to get from Microsoft Visual Studio 2012 Queries directly,...

View Article

Image may be NSFW.
Clik here to view.

Ubuntu/Xubuntu adjust guest screen resolution with Oracel VirtualBox

Add graphic virtualization support to the vm Need to run the following command: sudo apt-get install virtualbox-ose-guest-utils virtualbox-ose-guest-x11 virtualbox-ose-guest-dkms Restart the vm

View Article


Image may be NSFW.
Clik here to view.

Add Customized Workitem(like: Change Request) to Requirement Category in Team...

By default, After you created a project in Microsoft Team Foundation Server 2012, “Requirement Categor” only contains “User Story” as its member, then when you attempt to “Add existing requirements to...

View Article


Image may be NSFW.
Clik here to view.

Config sharing clipboard between guest Ubuntu 13.04 (Raring Ringtail) and...

After finished installation of Ubuntu 13.04(Raring Ringtail) in VirtualBox, found out that by default the clipboard is not shared between the host(Windows Server 2008 R2) and the guest(Ubuntu 13.04...

View Article

Image may be NSFW.
Clik here to view.

Selenium Tips

Mark a few Selenium tips: Generate and Store current date in “YYYYMMDD” format And the javascript code is here: javascript{ d=new Date();...

View Article

Image may be NSFW.
Clik here to view.

Cool website(regexper.com) can transfer regex to graphic chart

I used to create a test case related a US SSN text field data validation, there is a Regex(Regexp or Regular Expression): "^(?!000)([0-6]\d{2}|7([0-6]\d|7[012]))([ -]?)(?!00)\d\d\3(?!0000)\d{4}$" which...

View Article

Image may be NSFW.
Clik here to view.

Unable to start VirtualBox after upgraded from 4.1.12 to 4.2.18

I have a Ubuntu virtualbox vm which is on virtualbox version 4.1.12, today I have upgraded to the newest version 4.2.18, and then the vm won’t be able to start, check the VBoxSVC.log(at...

View Article


Image may be NSFW.
Clik here to view.

Microsoft Pairwise Testing Tool: PICT

When a massive conditions combined together and impossible to test all combinations, there is a testing method called pairwise testing(also known as All-pairs testing) we can use to test these possible...

View Article

Image may be NSFW.
Clik here to view.

Very useful windows shortcuts which can run from command line or explorer

Run commands Calc – CalculatorCfgwiz32 – ISDN Configuration WizardCharmap – Character MapChkdisk – Repair damaged filesCleanmgr – Cleans up hard drivesClipbrd – Windows Clipboard viewerCmd – Opens a...

View Article


Image may be NSFW.
Clik here to view.

GitHub Tips

Config GitHub with Putty/Pageant Install Putty from here, run PuTTY.exe and create a new SSH session to “github.com’ and save it Run PUTTYGEN.EXE generate a pair of public/priviate key pair, copy the...

View Article

Image may be NSFW.
Clik here to view.

Microsoft SQL Server – Search specified column or table in all database at a...

In a development environment normally there are multiple databases installed at one DB Server, and there is a system store procedure called: “sp_msforeachdb” can help us to search a specified column or...

View Article


Image may be NSFW.
Clik here to view.

TSQL: Search keyword in XML Column

Sometimes you would need to search certain keyword inside a XML column using a like clause, here is a simple example: SELECT XmlColumn, OtherColumns FROM TableWithXmlColumn WHERE cast(XmlColumn as...

View Article

Image may be NSFW.
Clik here to view.

TSQL: Search keyword in XML Column

Sometimes you would need to search certain keyword inside a XML column using a like clause, here is a simple example: SELECT XmlColumn, OtherColumns FROM TableWithXmlColumn WHERE cast(XmlColumn as...

View Article

Image may be NSFW.
Clik here to view.

TSQL: Search keyword in XML Column

Sometimes you would need to search certain keyword inside a XML column using a like clause, here is a simple example: SELECT XmlColumn, OtherColumns FROM TableWithXmlColumn WHERE cast(XmlColumn as...

View Article
Browsing all 40 articles
Browse latest View live