我搜索了很多,以删除不需要的空间,但无法找到.我只找到了可用于删除黑白背景空间的链接.但我的背景图片可以是任何东西.那么,如果我有这些图像,



如何提取我需要的图像部分.例如,

我们有现有的SQL Server数据库,我们正在使用C#.让我们说我们的移动客户端向服务器发送graphql.如何转换此SQL,以便我的客户端获得他期望的数据?
我有这个sql,
IF(@ID = '')
BEGIN
SET @ID = NULL;
END
IF(@Name = '')
BEGIN
SET @Name = NULL;
END
IF(@PhoneNumber = '')
BEGIN
SET @PhoneNumber = NULL;
END
IF(@Price = '')
BEGIN
SET @Price = NULL;
END
IF(@NewPrice = '')
BEGIN
SET @NewPrice = NULL;
END
IF(@ModelNumber = '')
BEGIN
SET @ModelNumber = NULL;
END
IF(@SKU = '')
BEGIN
SET @SKU = NULL;
END
Run Code Online (Sandbox Code Playgroud)
我正在寻找IsEmpty函数,如ISNULL.所以我可以,
ISEMPTY(@SKU, NULL)
Run Code Online (Sandbox Code Playgroud)
这在SQL中是否可行.
我有非常奇怪的行为.我有,
Directory.Delete(tempFolder, true);
if (Directory.Exists(tempFolder))
{
}
Run Code Online (Sandbox Code Playgroud)
有时Directory.Exists返回true.为什么?可能是探险家是开放的吗?
假设我在GAC中有版本1.1.1.5,1.1.5.1,1.1.6.2,1.2.1.1和2.1.2.1的程序集.我的应用程序有1.1.3.0版本的参考.哪个程序集将在运行时匹配?什么是装配匹配的实际规则?
突然,所有sql server请求显示"System.ComponentModel.Win32Exception:等待操作超时".找到问题的最快方法是什么?
Stack Trace:
[Win32Exception (0x80004005): The wait operation timed out]
[SqlException (0x80131904): Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.]
System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +1767866
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) +5352418
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) +244
System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) +1691
System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() +61
System.Data.SqlClient.SqlDataReader.get_MetaData() +90
System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) +365
System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, …Run Code Online (Sandbox Code Playgroud) 我发现创建查询有困难.假设我有一个产品和品牌表.我可以使用这个命令添加一个外键,
ALTER TABLE Products
ADD FOREIGN KEY (BrandID)
REFERENCES Brands(ID)
Run Code Online (Sandbox Code Playgroud)
但是,如果Foreign Key不存在,我只需要运行此命令.我需要的类似的事情是删除外键约束如果存在而不使用名称.
在我的服务器上,我使用SqlClient连接到SQL Server,Oledb用于连接Oracle的旧应用程序和ODP.NET用于连接Oracle的新应用程序.
我在perf计数器中看到:
但我只能为Sql Server和ODP.NET添加和查看.NET Data Provider的计数器.在.NET数据提供程序的Oracle(我的意思是System.Data.Oledb)不能正常工作.
资源:
OleDb提供程序不公开性能计数器.
那是对的吗?
我有以下JavaScript数组,
[{"unitPrice": 2499,"currency":"$","productId":1,"retailerId":1,"productName":"XX ","formattedPrice":"$ 2,499","productImage":"Images/2012_08_12_00_45_39_4539.jpg","productQuantity":"9","totalPrice":19992},
{"unitPrice": 4999,"currency":"$","productId":2,"retailerId":1,"productName":"XX","formattedPrice":"$ 4,999","productImage":"Images/2012_08_12_00_46_45_4645.jpg","productQuantity":2,"totalPrice":9998},
{"unitPrice":4555,"currency":"$","productId":1,"retailerId":1,"productName":"XXXXX","formattedPrice":"$ 4,555","productImage":"Images/2013_02_12_10_57_49_5749_9868.png","productQuantity":3,"totalPrice":13665}]
Run Code Online (Sandbox Code Playgroud)
这是相关的HTML,
<table>
<tbody data-bind="foreach: $root">
<tr>
<td><img width="45" height="45" alt="" data-bind="attr:{src: productImage}"/></td>
<td><span data-bind="html: productName"></span></td>
<td><span data-bind="html: formattedPrice"></span></td>
<td><input type="number" class="quantity" data-bind="value: productQuantity, attr:{'data-id': productId }" /></td>
<td><span data-bind="html: totalPrice"></span></td>
</tr>
</tbody>
</table>
Run Code Online (Sandbox Code Playgroud)
然后我创建了可观察数组,
observableItems = ko.observableArray(items);
ko.applyBindings(observableItems);
Run Code Online (Sandbox Code Playgroud)
现在我能够使用一个特定的元素,
var obj = ko.utils.arrayFirst(list(), function (item) {
return item.productId === id;
});
Run Code Online (Sandbox Code Playgroud)
但是,当我改变时,
item.productQuantity = 20;
Run Code Online (Sandbox Code Playgroud)
但是UI没有更新.也试过,
item.productQuantity(item.productQuantity)
Run Code Online (Sandbox Code Playgroud)
但是获取错误productQuantity不是一个功能
我正在使用以下教程远程调试android chrome浏览器上的网页.
http://www.html5rocks.com/en/tutorials/developertools/mobile/
对于已经安装的Galaxy Nexus,
http://developer.android.com/sdk/win-usb.html
http://www.samsung.com/us/support/owners/product/SCH-I515MSAVZW
当我通过USB线连接Windows 7上的移动设备,然后导航到chrome:// inspect /#devices
没有显示任何设备
c# ×4
sql-server ×4
.net ×3
sql ×3
t-sql ×2
android ×1
asp.net ×1
gdi+ ×1
graphql ×1
io ×1
javascript ×1
knockout.js ×1
odp.net ×1
oledb ×1
oracle ×1