自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(128)
  • 收藏
  • 关注

原创 01世界的电脑

电脑想必大家都不陌生,都知道它只识别0、1(没错电信号只有高低电频),但你是否真的思考过电脑是怎么诞生的,以及如何只用0和1实现了如此复杂的功能的,这个问题我也挺好奇,虽然计算机专业毕业的,但也不是太清楚,不知道是不是大学里没认真上课的原因。 于是我大胆猜了一下,最初出现电脑的时候,就有了扬声器、显示器这类电子产品,那么既然是电子产品必会用到电信号的0和1,以扬声器举例,声音的组成由:响度、音调、音色三者的参数来确定的,那么就能用固定长度的0和1表示出所有可能出现的声音了,这...

2021-07-18 22:42:34 344

原创 电磁波、无线通信

最近对无线传输特别好奇,于是重新认识了下电磁波,真的太神奇了。之所以有无线设备的存在几乎都离不开它,如果没了电磁波,手机应该是费了,然后退回到有线电话时代。蓝牙、wifi 、基本所有无线设备都没法使用了。 其实手机通话的每一句内容,都是以电磁波的形式向周围传播,只是应该都被加密处理过了。这个很好理解,就好比用收音机听电台样,你能实时听到电台的内容,只是区别就在于,电台采用的广播模式,所有人都能收到。手机也是用的广播,但却带了目标手机信息,然后被基站接收,再发射出去,而目标手机...

2021-07-18 22:49:55 954

原创 gitlab常见配置及命令

常见配置及命令配置、服务gitlab配置文件:/etc/gitlab/gitlab.rb重新加载配置:gitlab-ctl reconfigure重启服务:gitlab-ctl restart启动服务:gitlab-ctl start停止服务:gitlab-ctl stop日志位置日志路径: /var/log/gitlab查看所有日志:gitlab-ctl tail查看ngin...

2018-12-05 23:04:17 6785

原创 修改postgresql存储目录

修改postgresql存储目录:sudo rsync -av /var/opt/gitlab/postgresql /data/gitlab/修改 /etc/gitlab/gitlab.rbpostgresql[‘data_dir’] = “/data/gitlab/postgresql/data”postgresql[‘dir’] = “/data/gitlab/postgresql”...

2018-12-05 23:03:29 4734

原创 rsync主备同步服务脚本

服务端(备份机器)rsync --daemon 守护进程vim /data/auto_back/start_rsyncd.sh#!/bin/shmobile='******'IP='192.168.143.144'pid_file='/etc/rsyncd/rsyncd.pid'rsync_start_log='/data/log/start_rsyncd.log'sms_url='...

2018-12-05 22:55:46 897

原创 rsync自动备份配置

自动备份配置方案:采用gitlab备份方案备份配置信息、rsync远程同步版本库信息,以及生成的配置信息。(每天凌晨两点备份)线上机备份机都安装 rsync:yum install rsync开放防火墙873端口firewall-cmd --zone=public --add-port=873/tcp --permanentfirewall-cmd --reload备份模式:备...

2018-12-04 23:38:06 405

原创 gitlb 备份与恢复

备份与恢复gitlab备份:gitlab-rake gitlab:backup:create CRON=1过滤版本库gitlab备份:gitlab-rake gitlab:backup:create SKIP=repositories CRON=1执行命令从备份文件中恢复Gitlab:停止相关数据连接服务gitlab-ctl stop unicorngitlab-ctl stop ...

2018-12-04 23:30:30 344

原创 postgresql数据库配置

1、设置postgresql数据库密码:su - gitlab-psqlpsql -h /var/opt/gitlab/postgresql -d gitlabhq_production\password gitlab编辑 /etc/gitlab/gitlab.rb 修改下面内容gitlab_rails[‘db_password’] = ‘这个就是你刚刚在Postgresql中设置的密码...

2018-12-04 17:47:57 1363

原创 gitlab 配置修改

配置修改修改git创库位置:sudo rsync -av /var/opt/gitlab/git-data /data/gitlab/修改备份路径位置:sudo rsync -av /var/opt/gitlab/backups /data/gitlab/修改配置文件:vim /etc/gitlab/gitlab.rb (如下配置内容)external_url 'http://192...

2018-12-04 17:44:35 15133 1

原创 gitlab汉化

gitlab汉化下载汉化包git clone https://gitlab.com/xhang/gitlab.git -b v10.1.0-zh汉化版本信息cat gitlab/VERSIONgitlab-ctl stopcd gitlab(汉化包目录)git diff v10.1.0 v10.1.0-zh > …/10.1.0-zh.diffyum install patc...

2018-12-04 17:38:24 630

原创 大一生活

  时间真是不等人,这么快大一的生活就结束了,这一年里开心过,也伤心过。有过成功也过失败。宿舍朋友这一年里我认识了很多朋友,有我们宿舍的室友,我们都相处的很好,虽然偶尔会开开玩笑,但从没有闹过。不过我真心希望你们能和我一起好好认真读出,毕竟大学是个最好学习不过的地方了,可以任你自由发挥只要你能努力,能坚持,我相信在你们身上什么都有可能发生。希望你们好好加油!学霸姐妹在这年里...

2018-12-04 15:55:04 810

原创 rmp安装gitlab10.1.0

rmp安装gitlab10.1.0sudo yum install curl policycoreutils policycoreutils-python openssh-server openssh-clientssudo systemctl enable sshdsudo systemctl start sshdsudo yum install postfixsudo systemc...

2018-12-04 15:35:57 216

原创 防火墙安装配置

防火强安装配置安装firewalldyum install firewalld firewall-config运行、停止、禁用firewalldsystemctl start firewalldsystemctl status firewalld 或者 firewall-cmd --statesystemctl disable firewalldsystemctl stop fir...

2018-12-04 15:28:04 2054

原创 2016年总结

2016年对我来说或许是个不平凡的一年,这一年经历了很多也成长了很多。本命年的我除夕那晚就有些不同或许所有人都是笑着过的,我却哭泣到凌晨四点,老爸也跪在家门口好长时间,第二天我嗓子都哑啦,朋友还问我怎么啦,我也没怎说。年前准备:    从一月低寒假开始后我就开始计划这一年该怎么走。大三下一个非常重要的阶段,不论是选择找工作还是考研都得开始努力了。我选择的找工作,不过原本刚来大学的时

2017-01-08 11:37:16 680

原创 两年大学的一个小小总结

两年大学的一个小小总结 获奖任职记录:获“蓝狐网络杯”湖南省第十届大学生计算机程序设计竞赛二等奖获“蓝狐网络杯”湖南省第十一届大学生计算机程序设计竞赛应用开发类三等奖“乐意考杯”湖南省“互联网+”大学生创新创业大赛校赛二等奖获 2014年度湖南科技大学生科研创新计划SRIP重点项目获 2013-2014 学年校级特殊贡献奖获 2014-2015 年度湖南

2015-10-09 10:41:34 986

原创 Range

http://202.197.224.59/OnlineJudge2/index.php/Problem/read/id/1205RangeAccepted : 81 Submit : 467Time Limit : 1000 MS Memory Limit : 65536 KBPr

2015-06-05 17:34:16 515

原创 Prime Bases

Problem DescriptionGiven any integer base b >= 2, it is well known that every positive integer n can be uniquely represented in base b. That is, we can writen = a0 + a1*b + a2*b*b + a3*b*b*b +

2015-06-02 18:29:26 575

原创 Factorial Factors

/**题目:Factorial Factors 链接:http://acm.hust.edu.cn/vjudge/contest/view.action?cid=79877#problem/F题意:输出N!的不同的素数的个数,以及素数约数的总个数;思路:找N!不同素数约数的个数,即找出1到N素数的个数,可以通过筛法处理,同时可以记录非素数对应的最大素数约束,然后

2015-05-31 17:45:28 578

原创 Optic Communication

/* *题目:Optic Communication *链接:http://acm.hdu.edu.cn/diy/contest_showproblem.php?pid=1008&cid=27417 *题意:给出一些关键单词  VISIBLE A B  代表  A B 可以互相获取对方的发出的消息,OBSTACLE A B  与 WEATHER A B   都代表  A B 之间不

2015-05-31 00:39:07 773

原创 最少拦截系统

Problem Description某国为了防御敌国的导弹袭击,发展出一种导弹拦截系统.但是这种导弹拦截系统有一个缺陷:虽然它的第一发炮弹能够到达任意的高度,但是以后每一发炮弹都不能超过前一发的高度.某天,雷达捕捉到敌国的导弹来袭.由于该系统还在试用阶段,所以只有一套系统,因此有可能不能拦截所有的导弹.怎么办呢?多搞几套系统呗!你说说倒蛮容易,成本呢?成本是个大问题啊.所以俺就到这里来求

2015-03-06 04:30:27 495

原创 Java 大数学习之旅

/*****大数阶乘*****/import java.io.*;import java.math.*; // 包含大数类的包 import java.util.*;  // 包含输入头的包public class Main{         public static void main(String args[])         {              

2014-10-04 16:35:50 673

原创 First Date

http://acm.hnu.cn/online/?action=problem&type=show&id=12952

2014-09-02 00:31:14 922

原创 Tree of Tree

Tree of TreeTime Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 37   Accepted Submission(s) : 19Problem DescriptionYou're given a tree

2014-08-29 23:03:11 522

原创 Abs Problem

Abs ProblemTime Limit: 2 Seconds      Memory Limit: 65536 KB      Special JudgeAlice and Bob is playing a game, and this time the game is all about the absolute value!Alice has N different p

2014-08-25 02:06:01 502

原创 Fruit

Fruit Time Limit : 1000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 14   Accepted Submission(s) : 12Font: Times New Roman | Verdana | Georgia Font Size:

2014-08-24 10:35:43 567

原创 Coin Change

Coin Change Time Limit : 1000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 20   Accepted Submission(s) : 11Font: Times New Roman | Verdana | Georgia Font

2014-08-24 10:32:21 475

原创 Square Coins

Square Coins Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 17   Accepted Submission(s) : 15Font: Times New Roman | Verdana | Georgia Fon

2014-08-24 10:31:44 403

原创 Big Event in HDU

Big Event in HDU Time Limit : 10000/5000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 24   Accepted Submission(s) : 15Font: Times New Roman | Verdana | Georgia

2014-08-24 10:29:15 392

原创 The Balance

The Balance Time Limit : 1000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 14   Accepted Submission(s) : 11Font: Times New Roman | Verdana | Georgia Font

2014-08-24 10:23:25 544

原创 Ignatius and the Princess III

Ignatius and the Princess III Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 16   Accepted Submission(s) : 16Font: Times New Roman | Verdan

2014-08-24 10:22:49 393

原创 Party All the Time

Party All the Time Time Limit : 6000/2000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 72   Accepted Submission(s) : 31Problem DescriptionIn the Dark forest,

2014-08-24 10:13:57 509

原创 Sub Sequence

Sub Sequence Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 19   Accepted Submission(s) : 9Problem DescriptionRecently, YCC is studying s

2014-08-24 10:06:38 736

原创 Error Curves

Error Curves Time Limit : 4000/2000ms (Java/Other)   Memory Limit : 65536/65536K (Java/Other)Total Submission(s) : 28   Accepted Submission(s) : 21Problem DescriptionJosephina is a clever girl

2014-08-24 10:06:00 595

原创 Light Bulb

Light Bulb Time Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 63   Accepted Submission(s) : 38Problem DescriptionCompared to wildleopard's we

2014-08-24 10:04:08 477

原创 漫步校园

漫步校园Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2988    Accepted Submission(s): 902Problem DescriptionLL最近沉迷于AC不能自拔,每天寝室、机房两

2014-08-16 21:22:00 644

原创 Pebbles

PebblesTime Limit : 3000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 21   Accepted Submission(s) : 16Problem DescriptionYou're given an unlimite

2014-08-16 21:13:17 521

原创 单词数

单词数Time Limit: 1000/1000 MS (Java/Others)    Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 28880    Accepted Submission(s): 6935Problem Descriptionlily的好朋友xiaoou333最近很空

2014-08-14 20:04:05 442

原创 神奇的魔法数

神奇的魔法数Time Limit: 1000msMemory Limit: 32768KBThis problem will be judged on FZU. Original ID: 189664-bit integer IO format: %I64d      Java class name: MainPrev Submit Status Stati

2014-08-13 00:49:12 1352

原创 Corn Fields

Corn FieldsTime Limit : 4000/2000ms (Java/Other)   Memory Limit : 131072/65536K (Java/Other)Total Submission(s) : 17   Accepted Submission(s) : 13Problem DescriptionFarmer John has p

2014-08-13 00:35:33 493

原创 Doing Homework

Doing HomeworkTime Limit : 2000/1000ms (Java/Other)   Memory Limit : 65536/32768K (Java/Other)Total Submission(s) : 30   Accepted Submission(s) : 21Problem DescriptionIgnatius has just

2014-08-13 00:33:23 492

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除