码迷,mamicode.com
首页 >  
搜索关键字:up    ( 7825个结果)
解决关闭网桥接口时出现bridge br0 is still up ; can't delete it的报错
问题起因: 不小心错误地在虚拟机里开了一个桥接接口并设定了接口设备和配置文件, ...
分类:其他好文   时间:2018-09-02 21:43:36    阅读次数:3986
添加网卡的多种方法
我们向eth0中添加一块虚拟网卡: 第一种方法:快递创建\删除虚拟网卡 sudo ifconfig eth0:0 192.168.10.10 up 以上的命令就可以在eth0网卡上创建一个叫eth0:0的虚拟网卡,他的地址是:192.168.1.63 如果不想要这个虚拟网卡了,可以使用如下命令删除: ...
分类:其他好文   时间:2018-09-01 22:06:25    阅读次数:232
LeetCode 1
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:其他好文   时间:2018-09-01 20:40:03    阅读次数:156
MariaDB 脚本
研究MariaDB, 需要mock up一些假数据: 生成n个长度整型数的函数rand_num: 生成n个长度字符串的函数rand_string: 往表里批量插入数据的存储过程: 最后调用存储过程: 批量插入10条数据 CALL insert_users(10) ...
分类:数据库   时间:2018-09-01 17:26:34    阅读次数:209
1137 Final Grading
题意:排序题。 思路:通过unordered_map来存储考生姓名与其成绩信息结构体的映射,成绩初始化为-1,在读入数据时更新各个成绩,最后计算最终成绩并把符合条件的学生存入vector,再排序即可。需要注意的是,计算最终成绩时记得"G must be rounded up to an intege ...
分类:其他好文   时间:2018-09-01 14:04:38    阅读次数:191
[USACO09MAR]Look Up
嘟嘟嘟 题面说的有点问题,应该是向后看齐。 于是我们维护一个单调递减栈,如果当前a[i]比栈顶元素大,就执行pop操作,然后把pop出来的元素的答案都用 i 更新即可。 1 #include<cstdio> 2 #include<iostream> 3 #include<cmath> 4 #incl ...
分类:其他好文   时间:2018-09-01 12:08:51    阅读次数:125
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'userinfo.
安装了mysql5.7,用group by 查询时抛出如下异常: 原因: MySQL 5.7.5和up实现了对功能依赖的检测。如果启用了only_full_group_by SQL模式(在默认情况下是这样),那么MySQL就会拒绝选择列表、条件或顺序列表引用的查询,这些查询将引用组中未命名的非聚合列 ...
分类:其他好文   时间:2018-08-31 17:05:24    阅读次数:272
SQL查询
1.1. 基本查询语句 1.1.1. FROM子句 SQL查询语句的语法如下: copytextpop-up SELECT <*, column [alias], …> FROM table; SELECT <*, column [alias], …> FROM table; copytextpop ...
分类:数据库   时间:2018-08-31 15:45:04    阅读次数:204
[leetcode]binary-tree-level-order-traversal
题目:Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). F ...
分类:其他好文   时间:2018-08-31 11:47:07    阅读次数:147
128.Two Sum
题目: Given an array of integers, return indices of the two numbers such that they add up to a specific target. 给定一个整数数组,返回两个数字的索引,使它们相加到特定目标。 You may a ...
分类:其他好文   时间:2018-08-31 11:46:19    阅读次数:123
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!