Android

} } catch(IOException|InterruptedException ex){ ex.printStackTrace();} finally { try { raf.close();} catch(IOException e){ e.printStackTrace();} } } }.start();} 调用 setExternalVideoSource 取消注册外部视频接口回调。获取...

基于TairString实现高性能分布式锁

加锁 加锁方式与原生Redis相同,使用 SET 命令:SET resource_1 random_value NX EX 5 解锁 直接使用Redis企业版的 CAD 命令即可实现优雅而高效的解锁:/*if(GET(resource_1)=my_random_value)DEL(resource_1)*/CAD resource_1 my_random_...

单链接限速

} catch(Exception ex){ Console.WriteLine("Put object failed,{0}",ex.Message);} 使用签名URL方式上传和下载限速 以下代码用于使用签名URL方式上传、下载文件时设置单链接限速:using System.Text;using Aliyun.OSS;填写Bucket所在地域...

条件更新

只有当数据满足列判断条件时,才能对数据表中的数据进行更新;当数据不满足列判断条件时,数据更新失败。前提条件 已初始化OTSClient。具体操作,请参见 初始化...} catch(TableStoreException ex){ System.out.println(ex.toString());} }

.NET/C# Demo

} catch(ServerException ex){ Console.WriteLine(ex.ToString());} catch(ClientException ex){ Console.WriteLine(ex.ToString());} } } class TestTask { object o=new object();const int sleepTime=50;const long bufferTime=60*2;...

解冻文件

} catch(Exception ex){ Console.WriteLine("Create Archive bucket failed,{0}",ex.Message);}/上传文件并设置存储类型为归档类型。try { byte[]binaryData=Encoding.ASCII.GetBytes(objectContent);MemoryStream requestContent=new ...

教程:通过Java Native SDK连接并使用Lindorm时序引擎

if(ex instanceof LindormTSDBException){ LindormTSDBException e=(LindormTSDBException)ex;System.out.println("Caught an LindormTSDBException,which means your request made it to Lindorm TSDB,"+"but was rejected with an error ...

在GPU计算型实例中安装Tesla驱动(Linux)

systemctl stop nvidia-persistenced systemctl disable nvidia-persistenced(条件必选)如果您的GPU实例规格族为ebmgn7、ebmgn7e、ebmgn7ex或sccgn7ex 时,安装与驱动版本对应的nvidia-fabricmanager服务。重要 GPU实例规格族为ebmgn7、...

C#访问(2.0版)

using System;using System.Data;using MySql.Data;using MySql.Data.MySqlClient;namespace adbdemo { public class Tutorial2...} catch(Exception ex){ Console.WriteLine(ex.ToString());} conn.Close();Console.WriteLine("Done.");} } }

.NET/C# Demo

} catch(ServerException ex){ Console.WriteLine(ex.ToString());} catch(ClientException ex){ Console.WriteLine(ex.ToString());} } } class TestTask { object o=new object();const int sleepTime=50;const long bufferTime=60*2;...

超级计算集群概述

GPU计算型超级计算集群实例规格族sccgn7ex sccgn7ex的特点如下:sccgn7ex是阿里云为了面对日益增长的大规模AI训练需求开发的高带宽超算集群实例。多台裸金属服务器之间采用第三代RDMA SCC网络互联,支持800 G的互联带宽。您可以根据训练...

条件更新

} catch(TableStoreException ex){ System.out.println(ex.toString());} } 计费说明 表格存储 包括预留模式和按量模式两种计费模式。使用不同的计费模式时,计算部分的计费方式不同。计费模式 计算部分的计费说明 预留模式 以包年包月方式...

列举文件

result=await client.list({ prefix:"ex",marker:"example",});console.log(result);} catch(e){ console.log(e);} } list();body>列举指定目录下的文件和子目录 OSS没有文件夹的概念,所有元素都是以Object来存储。创建文件夹...

错误处理

else:print("error code:"+e.get_error_code())print("error message:"+e.get_error_message())print("error requestId:"+e.get_request_id())break except Exception as ex:print("unrecoverable exception when listing logstores.")...

文本反垃圾检测

} catch(Exception ex){ Console.WriteLine("Failed with error info:{0}",ex.Message);} } } } 文本反垃圾结果反馈 如果您认为文本检测的结果与您的期望不符,您可以通过文本反垃圾结果反馈接口纠正算法的检测结果。系统会将您反馈的结果...

删除对象标签

对象标签使用一组键值对(Key-Value)来标记对象。本文介绍如何删除对象标签...} catch(Exception ex){ Console.WriteLine("delete objects failed.{0}",ex.Message);} 相关文档 关于删除对象标签的API接口说明,请参见 DeleteObjectTagging。

java_io_IOException

} catch(IOException ex){ ex.printStackTrace();} } } 参考文献 https://developer.android.com/training/permissions/index.html (权限使用文档)https://developer.android.com/reference/android/Manifest.permission.html (权限分类...

收发事务消息

} } } catch(Exception ex){ Console.WriteLine(ex);Thread.Sleep(2000);} } } static void Main(string[]args){/客户端需要有一个线程或者进程来消费没有确认的事务消息。启动一个线程来检查没有确认的事务消息。Thread consumeHalfThread...

读取数据

Console.WriteLine("Get row with filter failed,exception:{0}",ex.Message);} 详细代码请参见 GetRowWithFilter@GitHub。批量读取数据 调用BatchGetRow接口一次请求读取多行数据,也支持一次对多张表进行读取。BatchGetRow由多个GetRow子...

列举存储空间

} } catch(Exception ex){ Console.WriteLine("List bucket failed.{0}",ex.Message);} 相关文档 关于列举存储空间的完整示例代码,请参见 GitHub示例。关于列举存储空间的API接口说明,请参见 ListBuckets(GetService)。

管理存储空间标签

Error info:{1}.RequestID:{2}\tHostID:{3}",ex.ErrorCode,ex.Message,ex.RequestId,ex.HostId);} catch(Exception ex){ Console.WriteLine("Failed with error info:{0}",ex.Message);} Go package main import("fmt""os""github....

查询表描述信息

使用DescribeTable接口可以查询指定表的结构、预留读/写吞吐量详情等信息。说明 API说明请参见 DescribeTable。...Console.WriteLine("Describe table failed,exception:{0}",ex.Message);} 详细代码请参见 DescribeTable@GitHub。

创建GPU实例

GPU实例在大规模并行计算或者图形渲染场景下,具有较强的计算能力和图形处理能力。使用GPU实例可以为您的业务提供更好的计算性能或者满足专业级图形设计需求,本文为您介绍如何创建GPU实例。操作步骤 前往 实例创建页。...

Ansible Inventory介绍

Ex 1:Ungrouped hosts,specify before any group headers.#green.example.com ## blue.example.com ## 192.168.100.1 ## 192.168.100.10 # Ex 2:A collection of hosts belonging to the 'webservers' group#[webservers]#alpha.example....

C#(Mac)

} catch(Exception ex){ Console.WriteLine(ex.ToString());} conn.Close();Console.WriteLine("Done.");} } } 代码修改完成后,系统提示错误,需要引入MySqlConnector包。右键单击 解决方案,选择 管理NuGet包。说明 C#连接ADB时依赖...

获取对象标签

对象标签使用一组键值对(Key-Value)来标记对象。...} } catch(Exception ex){ Console.WriteLine("get objects tagging failed.{0}",ex.Message);} 相关文档 关于获取对象标签的API接口说明,请参见 GetObjectTagging。

查询组列表

功能描述 查询所有的个体组ID。关于参数的详细说明,请参见 查询组列表API文档。您需要使用内容安全的API接入地址,调用本SDK接口。...} catch(Exception ex){ Console.WriteLine("Failed with error info:{0}",ex.Message);} } } }

.NET Demo

前提条件 使用SDK前,请先阅读接口说明,详情请参见 接口说明。...} } catch(ServerException ex){ System.Console.WriteLine(ex.ToString());} catch(ClientException ex){ System.Console.WriteLine(ex.ToString());} } } }

接口说明

处理异步写入结果 future.whenComplete((r,ex)->{ if(ex!null){/发送异常,一般都是写入失败 System.out.println("Failed to write.");Throwable throwable=ExceptionUtils.getRootCause(ex);if(throwable instanceof LindormTSDBException...

删除数据

Console.WriteLine("Delete table failed,exception:{0}",ex.Message);} 详细代码请参见 DeleteRow@GitHub。批量删除数据 根据实际选择合适的方式查询待删除数据的主键信息。如果要删除指定主键范围内的数据,请调用 GetRange 接口,查询...

管理软链接

软链接功能用于便捷访问Bucket内的...} catch(Exception ex){ Console.WriteLine("Failed with error info:{0}",ex.Message);} 相关文档 关于创建软链接的API接口说明,请参见 PutSymlink。关于获取软链接的API接口说明,请参见 GetSymlink。

android_content_ActivityNotFoundException

} catch(ActivityNotFoundException ex){ Log.e(TAG,"Error starting phone dialer intent.",ex);Toast.makeText(context,"Sorry,we couldn't find any app to place a phone call!Toast.LENGTH_SHORT).show();} } 参考文献 1....

收发普通消息

} } catch(Exception ex){ Console.Write(ex);} } } } 订阅普通消息 订阅普通消息的示例代码如下。using System;using System.Collections.Generic;using System.Threading;using Aliyun.MQ.Model;using Aliyun.MQ.Model.Exp;using Aliyun....

删除个体

功能描述 删除个体时,个体对应的图片以及信息均会被删除。关于参数的详细说明,请参见 删除个体API文档。您需要使用内容安全的API接入地址,...} catch(Exception ex){ Console.WriteLine("Failed with error info:{0}",ex.Message);} } } }

.NET Demo

前提条件 使用SDK前,请先阅读接口说明,详情请参见 接口说明。...} } catch(ServerException ex){ System.Console.WriteLine(ex.ToString());} catch(ClientException ex){ System.Console.WriteLine(ex.ToString());} } } }

卸载Tesla驱动

(条件必选)步骤1:卸载nvidia-fabricmanager服务 仅当GPU实例的规格族为ebmgn7、ebmgn7e、ebmgn7ex或sccgn7ex 时,您需要卸载nvidia-fabricmanager服务。以Tesla驱动版本为470.161.03为例,具体操作如下所示。重要 如果您创建的GPU实例的...

获取文件元数据

默认情况下,在受版本控制的存储空间(Bucket)中调用HeadObject接口...} catch(Exception ex){ Console.WriteLine("Put object failed,{0}",ex.Message);} 相关文档 关于获取文件元数据的API接口说明,请参见 GetObjectMeta 和 HeadObject。

SMTP 之 CSharp 调用示例

通过 SMTP 协议发送带附件的邮件示例 using System;using System.Collections.Generic;using System.Text;...namespace ConsoleApp { class Program { static void Main...} catch(Exception ex){ Console.WriteLine(ex.ToString());} } } }

流式下载

如果要下载的文件太大,或者一次性下载耗时太...} catch(Exception ex){ Console.WriteLine("Get object failed.{0}",ex.Message);} 相关文档 关于流式下载的完整示例代码,请参见 GitHub示例。关于流式下载的API接口说明,请参见 GetObject。

创建存储空间

存储空间(Bucket)是存储对象...} catch(Exception ex){ Console.WriteLine("Create bucket failed.{0}",ex.Message);} 相关文档 关于创建存储空间的完整示例代码,请参见 GitHub示例。关于创建存储空间的API接口说明,请参见 PutBucket。
共有31条 < 1 2 3 4 ... 31 >
跳转至: GO
产品推荐
云服务器 安全管家服务 安全中心
这些文档可能帮助您
阿里邮箱 弹性公网IP 数字证书管理服务(原SSL证书) 商标服务 短信服务 人工智能平台 PAI
新人特惠 爆款特惠 最新活动 免费试用