预览模式: 普通 | 列表

chrome应用商店搜索“New tab URL”,安装设置即可。

将新标签重定向到给定的URL。
这是一个简单的扩展,可将Chrome的新标签页(chrome:// newtab)重定向到您选择的网址。 默认情况下,它会重定向到一个或多或少的空白页面,但您可以在扩展程序的选项页面上更改。 该扩展被写为一个超简单,轻量级的“新标签重定向”的替代品。
 
其中一个用途是使用Vimium,其中Vimium在Chrome的内置新标签页上不可用。
 
请报告项目的Github页面上的问题:https://github.com/smblott-github/chrome-new-tab-url。

Tags: chrome

分类:业界文摘 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 822

sqlserver查看数据库编码

原标题:数据库排序规则是Chinese_PRC_CI_AS,怎么看对应字符集编码

我数据库排序规则是Chinese_PRC_CI_AS,那么对应的中文字符集编码是什么??比如gbk?gb2312?到底怎么看啊。然后咋么修改对应中文字符集。求解
 
Select COLLATIONPROPERTY( 'chinese_prc_ci_as', 'codepage' )
查看代码页如果是936代表gbk 20936 代表gb2312 

Tags: sqlserver

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 679

webbrowser浏览器版本设置

 Browser Emulation

Windows Internet Explorer 8 and later. The FEATURE_BROWSER_EMULATION feature defines the default emulation mode for Internet Explorer and supports the following values.

 

Value Description
11001 (0x2AF9 Internet Explorer 11. Webpages are displayed in IE11 edge mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directive causes the page to load in Quirks.
11000 (0x2AF8) IE11. Webpages containing standards-based !DOCTYPE directives are displayed in IE11 edge mode. Default value for IE11.
10001 (0x2711) Internet Explorer 10. Webpages are displayed in IE10 Standards mode, regardless of the !DOCTYPE directive.
10000 (0x02710) Internet Explorer 10. Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode. Default value for Internet Explorer 10.
9999 (0x270F) Windows Internet Explorer 9. Webpages are displayed in IE9 Standards mode, regardless of the declared !DOCTYPE directive. Failing todeclare a !DOCTYPE directive causes the page to load in Quirks.
9000 (0x2328) Internet Explorer 9. Webpages containing standards-based !DOCTYPE directives are displayed in IE9 mode. Default value for Internet Explorer 9.
Important  In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode.
 
8888 (0x22B8) Webpages are displayed in IE8 Standards mode, regardless of the declared !DOCTYPE directive. Failing to declare a !DOCTYPE directivecauses the page to load in Quirks.
8000 (0x1F40) Webpages containing standards-based !DOCTYPE directives are displayed in IE8 mode. Default value for Internet Explorer 8
Important  In Internet Explorer 10, Webpages containing standards-based !DOCTYPE directives are displayed in IE10 Standards mode.
 
7000 (0x1B58) Webpages containing standards-based !DOCTYPE directives are displayed in IE7 Standards mode. Default value for applications hosting the WebBrowser Control.

Tags: webbrowser ie

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1390

MySQL正则表达式查询

正则表达式作用是匹配方本,将一个模式(正则表达式)与一个文本串进行比较。

MySQL用Where子句对正则表达式提供了初步的支持,允许你指定用正则表达式过滤Select检索出的数据。

MySQL仅支持多数正则表达式实现的一个很小的子集。

----------------------

查看更多...

Tags: mysql

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1690

css3背景图片全屏显示

如何用css背景图片拉伸 以及100% 满屏显示呢?这个问题听起来似乎很简单。但是很遗憾的告诉大家。不是我们想的那么简单。
比如一个容器(body,div,span)中设定一个背景。这个背景的长宽值在css2.1之前是不能被修改的。
所以实际的结果是只能重复显示,所以出现了repeat,repeat-x,repeat-y,no-repeat这些属性。就是用来控制背景图片的显示的。所以一般用作背景图片的有2类:

1.是一整张大图,尺寸和区域大小刚好吻合
2.一个很小的条状图,通过repeat后,形成一个很规则的大图背景。

但是css3出现以后,这个情况被改善了。background-size 属性可以让我们之前的希望成真。
而且这个属性在firefox,chrome,以及ie9上都可以使用。

背景图尺寸(数值表示方式): 

CSS代码
  1. #background-size{   
  2. background-size:200px 100px;   
  3. }   

查看更多...

Tags: css3

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1799

用命令实现Win7远程桌面关机和重启

 今天远程桌面到Windows7上,需要远程重启,可是发现没有重启的选项,还是和XP一样,在Windows7中没有加入远程重启或关机的功能,无奈还是只能通过命令来重启了,具体方法如下:

如果你要远程重启Windows7,只需要在运行框中输入shutdown -r -t 0后回车即可;
如果你要远程关闭Windows7,只需要在运行框中输入shutdown -s -t 0后回车即可。

当然需要先打开运行框(Win+R键),输入上述命令即可,后面的数字表示关机/重启延迟的时间

关机 shutdown -s -t 0
重启 shutdown -r -t 0

打开运行框(Win+R键),输入上述命令即可,后面的数字表示关机/重启延迟的时间
at 12:00 shutdown -s
在运行里输入这个然后敲回车
他就会在12点种的时候关机

Tags: win7 windows7

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2226

Visual Studio

在实际的应用程序开发中,我们可能会在程序里查找另一个程序是否已打开,如果查找的程序已打开就把它激活成当前的窗口。这里分别用C#.NET和VB.NET两种程序来实现了这个功能,这两个程序里都可以打开一个标题是"我的电脑"的窗口:

-------------------C#.NET的实现---------------
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern bool OpenIcon(IntPtr hWnd);
private static extern bool OpenIcon(IntPtr hWnd);
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern bool IsIconic(IntPtr hWnd);
[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern int SetForegroundWindow(IntPtr hWnd);[System.Runtime.InteropServices.DllImport("user32.dll")]
private static extern IntPtr FindWindow(string strclassName, string strWindowName);
void FindAndOpenWindow(string Title)
{
IntPtr hWnd = FindWindow(null, Title);
if (hWnd != IntPtr.Zero)
{
bool isIcon = IsIconic(hWnd);
if ( !isIcon )
{
SetForegroundWindow(hWnd);
}
else
{
OpenIcon(hWnd);
}
}
}
private void button1_Click(object sender, System.EventArgs e)
{
FindAndOpenWindow("我的电脑");
}
-------------------VB.NET的实现---------------
Private Declare Function OpenIcon Lib "user32.dll" (ByVal hWnd As IntPtr) As Boolean
Private Declare Function IsIconic Lib "user32.dll" (ByVal hWnd As IntPtr) As Boolean
Private Declare Function SetForegroundWindow Lib "user32.dll" (ByVal hWnd As IntPtr) As Integer
Private Declare Function FindWindow Lib "user32.dll" Alias "FindWindowA" (ByVal strclassName As String, ByVal strWindowName As String) As IntPtr
Sub FindAndOpenWindow(ByVal Title As String)
Dim hWnd As IntPtr = FindWindow(Nothing, Title)
If Not hWnd.Equals(IntPtr.Zero) Then
Dim isIcon As Boolean = IsIconic(hWnd)
If Not isIcon Then
SetForegroundWindow(hWnd)
Else
OpenIcon(hWnd)
End If
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
FindAndOpenWindow("我的电脑")
End Sub

分类:技术文章 | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 1946

 广告位

↑返回顶部↑