ICode9

精准搜索请尝试: 精确搜索
  • Android修改编译的APK名称2022-08-01 15:32:00

    方法一: 在对应module文件夹(比如app)下的build.gradle文件中增加如下代码 applicationVariants.all { variant -> variant.outputs.all { //project.name outputFileName = rootProject.name + "szl.apk" } }   方法二: 关闭工

  • Delphi Variants-VarIsEmpty、VarIsNull 判断Variant变量是否为空、是否包含Null值2022-02-04 12:02:30

    引用单元:Variants 函数:VarIsEmpty、VarIsNull 原型: //VarIsNull 判断Variant变量是否包含一个Null值,例如数据库原始字段值Null function VarIsNull(const V: Variant): Boolean; begin Result := FindVarData(V)^.VType = varNull; end; //VarIsEmpty  判断Variant 变量是否

  • 常量的定义和使用2022-02-03 13:33:51

    1.字符型常量、整数型常量、浮点数常量的赋值; 有符号类型和无符号类型时所有的操作数都自动转换为无符号类型。 //字符型常量 char A = '\xFF'; //合格 char A = 0XFF; //不合格,因为0xff默认为int型 //整数 int i = 100; uns

  • Android指定名称和路径打包apk2022-01-27 19:35:21

    有时候会需要打包到指定的路径然后由脚本推送。打包apk时可以通过gradle指定名称和路径,并且可以配置更多信息。 def appReleaseDir = "apk输出文件夹" signingConfigs { //签名信息 可以自定义很多,以下是必须的 releaseConfig { storeFile file("jks签名文件路径"

  • 花椒Android客户端多变体构建实践,android常见面试题2022-01-20 18:30:41

    versionCode 20000 + android.defaultConfig.versionCode versionNameSuffix “-minApi23” … } } } … 这里要注意的是productflavors中配置的顺序决定了配置的优先级,如上代码,如果在demo和minApi24中同时配置了minSdkVersion,因为api在flavordimensions中靠前,所以minApi24中

  • CSS系列之字体相关的样式2022-01-18 23:34:55

    1、font-size 字体大小 ①、xx-small,x-small,small,medium,large,x-large,xx-large 绝对大小关键字定义相对于用户的默认字体大小(medium) <div>天道酬勤</div> <div style="font-size: xx-small;">追梦无疆</div> ②、larger,smaller 比父元素的字体大或小,使用与上面的关键

  • 90%不知道的Android Build Variant的使用,五面拿下阿里飞猪offer2022-01-08 12:11:41

    productFlavors{ flavorDimensions ‘isFree’,“area” free { minSdkVersion 21 applicationId ‘com.example.android.free’ resValue “string”,‘tag’,‘free’ dimension ‘isFree’ } paid { minSdkVersion 24 applicationId ‘com.example.android.paid’ resValu

  • C++语言导学 第二章 用户自定义类型 - 2.4 联合2021-12-27 10:03:12

    第二章 用户自定义类型 2.4 联合 2.4 联合 union是一种特殊的struct,它的所有成员被分配在同一块内存区域中,因此,联合实际占用的空间就是它最大的成员所占的空间。自然,在某个时刻,一个union中只能保存一个成员的值。例如,一个符号表表项结构保存一个名字和一个值,值可以是一个

  • 通过jacob实现文字转语音(附jacob-1.18-x64.dll下载地址)2021-12-22 12:35:22

    最近,遇到一个需求,将文字转化为语音并存储为文件。经过查阅大佬们的博客,采用jacob调用windows语音库合成的方式实现,后文中的代码为引用的大佬们的博客,没有具体记录采用的哪位大佬的,在此感谢各位。 写本博客的目的有二: 1、记录过程,后续参考; 2、寻找dll命令库文件比较麻烦,在

  • 【Android】生成包名称2021-11-22 17:01:00

    生成库文件 buildTypes { release { minifyEnabled false proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } libraryVariants.all { variant ->

  • 使用eclipse开发国际化程序2021-11-21 11:03:22

    1.1 什么是i18n 以下内容引自wikipedia Internationalization_and_localization The terms are frequently abbreviated to the numeronyms i18n (where 18 stands for the number of letters between the first i and the last n in the word internationalization, a usage coi

  • SQL server获取字段信息以及不支持“variant”数据类型的问题解决2021-11-16 10:31:38

    今天在开发中遇到一个需要获取SQL server数据库字段信息的需求 需要字段名称、字段类型、字段长度、字段注释等信息 经过一番搜索终于找到两个满足需求的sql,记录一下 SELECT a.name tablename, b.name colName, c.name colType, b.length colLength FROM sy

  • ARM/developmentstudio-2020.1 报错Error: C9511E: Unable to determine the current toolkit. Check that AR2021-11-15 13:03:29

    ds2020 安装license后报错,错误如下 Error: C9511E: Unable to determine the current toolkit. Check that ARM_TOOL_VARIANT is set correctly.ARM Compiler could not determine the product installation it is part of. You might be able to resolve this by reinstalling th

  • Qt元类型2021-10-31 21:01:51

    #include 1.Q_DECLARE_METATYPE 使用Q_DECLARE_METATYPE标记自定义类型,可以让QMetaType查询到类型,也可以让QVariant识别。 #include struct MyStruct { QString name; QString color; }; Q_DECLARE_METATYPE(MyStruct) MyStruct myStruct; QVariant variant; variant.setVa

  • Java语言实现文本转语音2021-10-24 18:02:43

    Java语言实现文本转语音 1. 首先需要导入jacob.jar的jar包 jar包下载地址 2.编写测试代码 import com.jacob.activeX.ActiveXComponent; import com.jacob.com.Dispatch; import com.jacob.com.Variant; import java.io.BufferedReader; import java.io.FileReader; impor

  • 安卓开发如何更改包名2021-10-16 15:31:56

    2021/10/16 安卓打包默认的是一般是 app_debug.apk, app_release.apk, 没有辨识度而且客户一般希望看见自己APP的名称,修改的方法也很简单. 1.在build.gradle(app)中,添加如下 android.applicationVariants.all { variant -> variant.outputs.all {

  • VarArrayOf函数使用详解2021-09-15 12:35:55

    VarArrayOf的主要功能是构造一个Variant数组,通过VarArrayCreate实现: function VarArrayOf(const Values: array of Variant): Variant; var I: Integer; begin Result := VarArrayCreate([0, High(Values)], varVariant); for I := 0 to High(Values) do R

  • jacob—java开发world、excel、ppt转pdf2021-09-14 15:00:00

    项目中之前用的office转pdf的插件是aspose 因为aspose无需world。所有转换操作都是在java虚拟机里边进行的。所以如果有图片特别多的文档转换的时候就会遇到oom。 而jacob是通过本地安装的office插件将文档再本地完成转换的。就不会出现oom的情况。而弊端就是项目就只能部署

  • 听书神器2021-07-16 23:32:03

    import java.awt.Toolkit;import java.awt.datatransfer.Clipboard;import java.awt.datatransfer.DataFlavor;import java.awt.datatransfer.StringSelection;import java.awt.datatransfer.Transferable;import java.awt.datatransfer.UnsupportedFlavorException;import ja

  • boost::lexical_cast模块将创建一个to_long_double方法,将 Boost.Variant 的值转换为long double2021-07-12 09:52:53

    boost::lexical_cast模块将创建一个to_long_double方法,将 Boost.Variant 的值转换为long double 实现功能 C++实现代码 实现功能 boost::lexical_cast模块将创建一个to_long_double方法,将 Boost.Variant 的值转换为long double C++实现代码 #include <boost/lexical_cast.

  • boost::variant2::variant_alternative相关的测试程序2021-06-28 14:56:48

      boost::variant2::variant_alternative相关的测试程序       实现功能 boost::variant2::variant_alternative相关的测试程序 C++实现代码 #include <boost/variant2/variant.hpp> #include <boost/mp11.hpp> #include <boost/core/lightweight_test.hpp> #include <boost

  • boost::polymorphic_get相关的测试程序2021-06-28 14:56:28

      boost::polymorphic_get相关的测试程序     实现功能 boost::polymorphic_get相关的测试程序 C++实现代码 #include "boost/variant/variant.hpp" #include "boost/variant/apply_visitor.hpp" #include "boost/variant/static_visitor.hpp" #include "boost

  • boost::make_recursive_variant相关的测试程序2021-06-28 14:56:18

      boost::make_recursive_variant相关的测试程序     实现功能 boost::make_recursive_variant相关的测试程序 C++实现代码 #include <boost/variant.hpp> #include <map> #include <memory> #include <vector> #ifdef  

  • 【李宏毅2020 ML/DL】P56 Transformer and its variant | New Architecture2021-06-22 17:04:08

    我已经有两年 ML 经历,这系列课主要用来查缺补漏,会记录一些细节的、自己不知道的东西。 已经有人记了笔记(很用心,强烈推荐):https://github.com/Sakura-gh/ML-notes 本节内容综述 本节课由助教纪伯翰讲解。本次演讲的标题为“New Architecture”。 助教建议:一般,我们不要一顿乱用 tri

  • C++ std::any、std::variant和std::optional的原位构造(In-Place Construction)2021-06-10 20:30:46

    本文翻译自 Bartlomiej Filipek 的博客文章 In-Place Construction for std::any, std::variant and std::optional,翻译已获作者授权。 当你读到关于 std::any、std::variant 或 std::optional的文章或者参考页面时,你可能会注意到它们有几个名为 in_place_* 的辅助类型可用于

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有