ICode9

精准搜索请尝试: 精确搜索
  • 【leetcode】227. Basic Calculator II2021-12-27 20:37:20

         Given a string s which represents an expression, evaluate this expression and return its value.  The integer division should truncate toward zero. You may assume that the given expression is always valid. All intermediate results will be in the ran

  • CentOS 8 上设置 Nginx 服务器配置块2021-12-24 19:31:54

    本文来自于【阿里云官方镜像站:阿里巴巴开源镜像站-OPSX镜像站-阿里云开发者社区 】 一个服务器配置块是一个 Nginx 指令,它定义了对于一个指定域名的设置,允许你在一个单机服务器上运行多个网站。对于每一个网站,你可以设置网站文件根目录(包含网站文件的目录),创建一个独立的安全策略

  • css动画效果2021-12-24 14:04:37

    @keyframes规则 如果您在 @keyframes 规则中指定了 CSS 样式,动画将在特定时间逐渐从当前样式更改为新样式。 要使动画生效,必须将动画绑定到某个元素。 将 "example" 动画绑定到 <div> 元素。动画将持续 4 秒钟,同时将 <div> 元素的背景颜色从 "red" 逐渐改为 "yellow": <!DOCTYPE

  • acme证书的更新和安装2021-12-23 21:04:06

    仓库地址 GitHub - acmesh-official/acme.sh: A pure Unix shell script implementing ACME client protocol 安装方法(git安装) git clone https://github.com/acmesh-official/acme.sh.git cd ./acme.sh ./acme.sh --install -m my@example.com  acme证书申请 ./acme.sh

  • Hive基本概念和安装2021-12-21 19:58:31

    目录 一、Hive的基本概念 1.Hive简介 2.Hive的优缺点 3.Hive架构原理 工作机制: 二、Hive安装 1.安装地址 2.安装部署 3.mySQL安装 4.Hive元数据配置到MySql 配置Metastore到MySQL 5.使用元数据服务的方式访问Hive 6.使用JDBC方式访问Hive 7.Hive常用交互命令 8.Hive其他命令操作

  • service2021-12-21 15:01:26

    illega--------------------> IllegalHomeActivity package com.example.smartcity1.service.illegal; import androidx.appcompat.app.ActionBar; import androidx.appcompat.app.AppCompatActivity; import android.os.Bundle; import com.example.smartcity1.R; pub

  • Koltin24,flutterpageview预加载2021-12-20 18:33:46

    jcenter() } 接下来在build.gradle(app)下添加 apply plugin: ‘kotlin-kapt’ 添加依赖: //dagger框架 //dagger2 support begin implementation “com.google.dagger:dagger-android:$dagger_version” implementation “com.google.dagger:dagger-android-support:$dagger

  • 关于nginx中proxy_set_header的设置2021-12-20 16:31:57

    昨天一个开发找我帮忙配置一个nginx的转发,本来很容易的配置,但是坑了我好久才解决。。。需求大致是: nginx上配有aaa.example.com的虚拟主机,现在需要将访问http://aaa.example.com/api/x.x/client/的请求转到http://bbb.example.com/api/x.x/client/,bbb.example.com的虚拟主机在

  • SpringBoot使用@Configuration、@Bean给容器添加组件2021-12-20 16:00:17

    新建Maven项目:helloworld。修改pom.xml,添加依赖。 修改后的pom.xml内容如下。 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  • Spring使用xml给容器添加组件2021-12-20 14:01:49

    新建Maven项目:spring项目。修改pom.xml,添加依赖。 修改后的pom.xml如下所示。 <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

  • ES6 之 Class 类2021-12-20 09:34:17

    在ES6中,class (类)作为对象的模板被引入,可以通过 class 关键字定义类。 class 的本质是 function。它可以看作一个语法糖,让对象原型的写法更加清晰、更像面向对象编程的语法。 基本用法 类定义 类表达式可以为匿名或命名。 // 匿名类 let Example = class { constructor(a

  • 【leetcode】394. Decode String2021-12-19 13:01:22

    Given an encoded string, return its decoded string. The encoding rule is: k[encoded_string], where the encoded_string inside the square brackets is being repeated exactly k times. Note that k is guaranteed to be a positive integer. You may assume that

  • 部署K8s2021-12-17 22:59:14

    部署K8s 准备工作所有节点安装Docker/kubeadm/kubelet 实验环境: 角色IP系统master192.168.164.141centos8node1192.168.164.143centos8node2192.168.164.144centos8 准备工作 1、设置主机名、关闭三台主机的防火墙和selinux、还有swap分区空间 这一步的操作是三台主机都

  • HDFS优化操作2021-12-17 19:07:02

    目录 一、HDFS的多目录操作 1.NameNode多目录的配置 2.DataNode多目录配置 3.集群数据均衡之磁盘间数据均衡 二、HDFS集群的扩容与缩容 1.添加白名单 2.添加新服务器 3.服务器间数据均衡 4.黑名单退役服务器 三、HDFS故障的排除 1.NameNode故障处理 2.集群安全模式&磁盘修复 一

  • 【You can‘t specify target table ‘student‘ for update in FROM clause】2021-12-17 10:58:19

    业务需求 编写一个 SQL 查询,来删除 Person 表中所有重复的电子邮箱,重复的邮箱里只保留 Id 最小 的那个。 +----+------------------+ | Id | Email | +----+------------------+ | 1 | john@example.com | | 2 | bob@example.com | | 3 | john@example.com |

  • CGBitmapContextCreate函数参数详解2021-12-16 15:02:12

    函数原型: CGContextRef CGBitmapContextCreate (    void *data,   size_t width,   size_t height,   size_t bitsPerComponent,   size_t bytesPerRow,   CGColorSpaceRef colorspace,   CGBitmapInfo bitmapInfo ); 参数: data               

  • Android JNI 进阶(含完整 Demo),flutter蓝牙2021-12-16 12:00:46

    // jsize GetArrayLength(jarray array) jsize j_size = env->GetArrayLength(arg5); for (int i = 0; i < j_size; i++) { //jobject GetObjectArrayElement(jobjectArray array, jsize index) jstring j_string2 = static_cast(env->GetObjectArrayElement(arg5, i

  • 1446. Consecutive Characters2021-12-15 22:33:35

    /** 1446. Consecutive Characters https://leetcode.com/problems/consecutive-characters/ The power of the string is the maximum length of a non-empty substring that contains only one unique character. Given a string s, return the power of s. Example 1: Inp

  • Quartz 持久化到MySQL 并创建触发器2021-12-15 10:58:21

    示例:     pom.xml <!-- quartz --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-quartz</artifactId> </dependency>    实现步骤:     1. 

  • LeetCode题解(八)0700-0799,Android攻防实战电子书2021-12-14 15:05:53

    709. To Lower Case [Description] Implement function ToLowerCase() that has a string parameter str, and returns the same string in lowercase. [Example] Example 1: Input: “Hello” Output: “hello” Example 2: Input: “here” Output: “here” Example 3: In

  • 实验第七节——用户chaincode相关操作2021-12-13 10:03:07

    一、编写一个转账的合约 创建合约文件,命令:touch /home/test_fabric/chaincodes/test.go编写内容 package main import ( "fmt" "github.com/hyperledger/fabric-chaincode-go/shim" "github.com/hyperledger/fabric-protos-go/peer" "strconv" ) //

  • Nginx区分PC和手机2021-12-12 16:00:43

    目录一.简介二.配置nginx识别手机端跳转到wappc端跳转移动端 一.简介 有时候需要当手机访问PC站页面时自动跳转到对应的手机站页面。 二.配置 nginx识别手机端跳转到wap 即手机打开web时,默认打开wap server { listen 80; server_name www.52wiki.cn;

  • 【Example】C++ Vector 内存预分配的良好习惯2021-12-12 15:03:41

    为什么要对 Vector 进行内存预分配? 1,Vector 本身是一个内存只会增长不会减小的容器。 2,Vector 存在 size 和 capacity 两种计数,size 即元素个数,capacity 则是容量即 vector 在内存当中的大小,理论上始终 capacity >= size。 3,Vector 的 push_back 函数逻辑是,当 capacity 不够的

  • 【quartz】quartz的基本使用2021-12-12 08:31:40

    一、快速开始: Springboot方式: pom引入quartz包 <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-quartz</artifactId> </dependency> 写一个类,继承QuartzJob

  • 【Example】C++ Vector 的内存强制回收2021-12-12 01:33:09

    为什么要对 Vector 进行内存强制回收? 1,Vector 的 clear() 函数仅仅是将 vector 的 size 设置为0,所存储的对象占用的内存并没有被回收。 2,Vector 本身是一个内存只会增长不会减小的容器。 3,最根本目的是减低内存占用、优化内存使用率避免浪费。   什么样的 Vector 应当进行手动内

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

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

ICode9版权所有