- 博客(122)
- 收藏
- 关注
原创 Processor Error Reporting Banks And MSR Addresses
Processor Error Reporting Banks和MSR Addresses在现代计算机体系结构中扮演着重要角色,通过提供详细的硬件错误信息和灵活的配置接口,帮助系统管理员快速定位并解决问题,从而提高系统整体可靠性和性能。这些机制对于保障服务器、数据中心等关键应用场景下的稳定运行尤为重要。
2024-12-20 15:46:47
514
原创 Quadrant Mode、NUMA和SNC的概念及其区别
在NUMA架构中,内存被分成多个节点,每个节点由一个或多个处理器管理。每个处理器访问本地节点的内存速度更快,而访问其他节点的内存速度较慢。SNC是NUMA的一种改进版本,它将每个NUMA节点进一步细分为多个子节点(子NUMA节点)。这种配置可以进一步优化内存访问,减少延迟,提高性能。Quadrant Mode是一种内存控制器的配置模式,通常用于多核处理器。它将处理器的所有内存控制器分为四个象限,每个象限负责管理一部分内存。这种配置可以减少内存访问延迟,提高内存带宽。
2024-12-19 15:43:30
500
原创 解决复杂问题心得
分解问题至可以解决的多个小问题,再一个问题一个问题解决。每次仅关注当前问题,避免因进度缓慢而产生畏难心理。 每个任务都设置Deadline。
2023-11-06 18:03:16
111
原创 时间和目标管理技巧总结
每天设置一个基础目标和一个挑战目标。基础目标必须完成,挑战目标尽力达成。 梳理自己每天的时候花费。除去必要支撑时间外,有多少时间可以用来完成自己的需求,问题单,和总结。 每天花半个小时简单总结一下输入和输出。如果需要发布,就在简单总结的基础上继续细化,补充细节再发表即可。 确保有效投入。超过10分钟没有任何进展的问题,直接挂起,切换到别的事务,再慢慢思考解决方法,等有思路了再切换到这个问题继续攻关。
2023-11-04 12:03:00
239
原创 将EFI打包成ISO启动项
编译或者下载EFI文件,例如:https://gitee.com/mirrors/edk2/blob/UDK2018/ShellBinPkg/UefiShell/X64/Shell.efi 新建目录efi,子目录boot。将Shell.efi重命名为bootx64.efi,移动到boot目录下。 打开UItraISO,文件-新建-硬盘映像 选择映像格式,确定。 本地目录打开efi的上级目录,将efi文件夹拖动或添加至光盘目录。 保存 新建启动光盘映像 选择刚刚保存的软盘映像文件 保存成I
2021-08-17 00:22:17
3405
原创 Django删除MySQL数据库表格后如何重建
(1)删除数据库表(2)数据库里有一个记录生成表格记录的django_makemigrations表删除创建表的记录,app字段值为对应appname,例如myapp(3)删除项目里migrations文件夹下除_init_.py的所有文件(4)然后重新执行命令,表就重新生成了python manage.py makemigrationspython manage.py m...
2020-05-03 20:16:06
613
原创 华为2016校园招聘上机笔试题-最高分是多少
#include<bits/stdc++.h>using namespace std;int FindMax(vector<int>& vec,int A,int B){ int MaxValue=vec[A-1]; for(int i=A;i<B;i++) { if(vec[i]>MaxValue) ...
2020-03-18 17:06:00
422
原创 华为2016校园招聘上机笔试题-简单错误记录
#include<bits/stdc++.h>using namespace std;class ErrorRecord{ public: string name; int lineNum; int times; int order; ErrorRecord() { ...
2020-03-18 17:00:36
204
原创 切图并动画化
切图工具:http://renderhjs.net/shoebox/安装完成后,将图片拖拽到此处,save切割完成动画化看教程:https://docs.cocos.com/creator/manual/zh/video-tutorial/index.htmlsample设置为12第一个动画完成。其他动画类似。...
2019-07-24 10:56:26
385
转载 Socket通信原理
对TCP/IP、UDP、Socket编程这些词你不会很陌生吧?随着网络技术的发展,这些词充斥着我们的耳朵。那么我想问:1.什么是TCP/IP、UDP?2.Socket在哪里呢?3.Socket是什么呢?4.你会使用它们吗?什么是TCP/IP、UDP?TCP/IP(Transmission Cont...
2019-06-16 11:11:48
335
原创 桂电免出校器实现自动宽带拨号,免除你每天拨号的烦恼——路由器以斐讯K2为例
注:本文方法已失效。因校园网进行升级改造正式启用了新认证系统,停用了原有PPPoE拨号(IPClient客户端)认证系统。 众所周知,在桂电,你在宿舍想用宽带通常要使用出校器进行拨号。这导致了每天上网前,你都不得不将你的电脑电源和鼠标键盘HDMI线以及网线拔掉,然后将3kg的笔记本移动到3米外,再将接路由器WAN口的网线拔掉,插到电脑的网线接口里,打开电脑,登录出校器,完了再将网线插...
2019-04-09 23:03:08
1911
2
转载 Xftp不能打开远程文件夹
问题:Xftp无法打开Ubuntu的需要权限的目录,会显示“不能打开远程文件夹”。解决方案:用root登录。Tips:权限过大,慎用。开启root远程登录见:Ubuntu-18.04 下修改root用户密码,安装SSH服务,允许root用户远程登录,安装vsftp服务器...
2019-04-02 21:19:39
2191
原创 蓝桥杯第九届省赛JAVA真题7——螺旋折线
标题:螺旋折线如图p1.pgn所示的螺旋折线经过平面上所有整点恰好一次。 对于整点(X, Y),我们定义它到原点的距离dis(X, Y)是从原点到(X, Y)的螺旋折线段的长度。 例如dis(0, 1)=3, dis(-2, -1)=9 给出整点坐标(X, Y),你能计算出dis(X, Y)吗?【输入格式】X和Y对于40%的数据,-1000 <= X, ...
2019-03-20 12:07:47
463
2
转载 eclipse连接mysql-8.0.12-winx64
转载博客:https://blog.youkuaiyun.com/fanjianwucmx/article/details/54882044结合博客:https://blog.youkuaiyun.com/weixin_37577564/article/details/80329775 进行了修正利用eclipse连接数据库 第一步:安装mysql参考博客:https://www.cnblogs.com/l...
2018-08-19 17:32:21
4355
转载 完美解决 未能打开编辑器:Unmatched braces in the pattern.
原文地址:http://blog.youkuaiyun.com/hytdsky/article/details/4736462Eclipse出现这个问题而不能查看源代码 原因就是语言包的问题 出现这个问题了 一定是安装了中文或者多国语言包下面我就来交大家解决的办法 超简单的第一步配置自己Eclipse的启动参数 eclipse.ini 在最后面加入这段代码 -Duser.langua...
2018-08-05 09:21:25
374
转载 hdu6185 Covering (递推+矩阵快速幂)
转载地址:https://blog.youkuaiyun.com/elbadaernu/article/details/77825979Problem Description Bob’s school has a big playground, boys and girls always play games here after school.To protect boys and girls from g...
2018-05-24 23:40:11
211
转载 欧拉函数与原根
#include <cstdio>#include <cstring>#include <vector>using namespace std;//奇素数的原根个数=phi(phi(n))=phi(n-1);//大佬的代码const int kMax = 100000 + 10;int n;int num[kMax];vector<i...
2018-05-10 23:14:20
283
转载 埃氏素数筛法模板
#include <iostream>#include <cstdio>#include<algorithm>using namespace std;const int Kmax=8000005;bool is_prime[Kmax];int main(){ //begin fill(is_prime,is_prime+Kmax,1)...
2018-05-07 22:17:03
264
转载 GCD之更相减损术
#include <iostream>#include <cstdio>#include<algorithm>using namespace std;/*algorithm内置了最大公约数模板__gcd(a,b),注意gcd前面有两道下划线。*//*提示说是欧几里得,坑我看了老半天,结果发现是更相减损术*/int main(){ int t...
2018-05-07 21:40:01
551
转载 Trouble of Tyrant
题意:1到i有直达的边,i到i-1也有连接的边,问每条边加d后的最短路径的长度。#include <iostream>#include <cstdio>#include <cstdlib>using namespace std;/*代码来自tangent(谭)*//*最小加长距离必然是从最短距离路径的转折点往后移动而增加的,每次扫描当前转折点到最后一...
2018-05-04 23:29:43
229
转载 线扫描之面积并
#include <cstdio>#include <map>#include <algorithm>using namespace std;/*代码来自大佬*/typedef long long ll;const int kMax = 50000 + 10;struct P { int x, p, v; P(int _x =...
2018-05-01 21:35:01
210
转载 线扫描法之周长并
#include <cstdio>#include <map>#include <algorithm>using namespace std;/*代码来自大佬*/typedef long long ll;const int kMax = 50000 + 10;struct P { int x, p, v;//坐标,序号,+1或-1 ...
2018-05-01 16:41:33
415
转载 数据的离散化(排序)
#include<cstdio>#include<map>#include<algorithm>using namespace std;const int Kmax=500000+10;//数组开小了,尴尬int num[Kmax];int temp[Kmax];int sum[Kmax];int n;map<int,int> mp...
2018-05-01 12:51:53
965
原创 The 15th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple-A
题意:判断是否满足严格的先增后减#include<cstdio>#include<string>using namespace std;int main(){ long long t; long long n,m1,m2,flag,dir; scanf("%lld",&t); while (t--) { flag=1;//...
2018-04-30 21:42:50
210
原创 The 15th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple - B
#include<cstdio>#include<algorithm>#include<map>using namespace std;const int Kmax=1e5+50;int a[Kmax];int b[Kmax];map<int,int> mp;int main(){ int t,n,len; scan...
2018-04-30 21:41:07
273
原创 The 15th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple - L
题目很长,题意很简单:计算出H,对preference排序,取前m个输出即可。注意数据类型,被卡了一下。#include<cstdio>#include<iostream>#include<algorithm>#include<string>using namespace std;string str1,str2;struct node...
2018-04-30 21:36:07
253
原创 The 15th Zhejiang Provincial Collegiate Programming Contest Sponsored by TuSimple - J
PS:服气,居然能爆int。#include<cstdio>#include<string>using namespace std;const long long Kmax=1e5+10;long long num[Kmax];void init(){ num[0]=0; for(long long i=1;i<Kmax;i++){ ...
2018-04-30 21:19:15
189
转载 树状数组维护区间最值
#include<iostream>#include<algorithm>using namespace std;const int Kmax=2e5+10;typedef long long ll;ll a[Kmax],c[Kmax];int index=0;inline int lowbit(int x){ return x&-x;}...
2018-04-26 17:35:34
976
转载 二维树状数组之模板2
#include <cstdio>#include <algorithm>using namespace std;/*代码来自大佬。*/const int kMax = 1000 + 10;int n;int num[kMax][kMax];inline int lowbit(int x) { return x & -x; }int gets...
2018-04-24 22:01:49
135
转载 二维数组数组之模板1
#include <cstdio>#include <algorithm>using namespace std;/*代码来自大佬*/const int kMax = 1000 + 10;int n;int num[kMax][kMax];inline int lowbit(int x) { return x & -x; }int getsu...
2018-04-24 21:58:01
355
转载 树状数组之较复杂的题(较抽象,需要较强的逻辑思维能力)
#include <cstdio>using namespace std;/*本来我想全部置1,取了的序号置零来着,但是大佬复杂度这么低的算法都快要超时了,我的大概率会超时*//*这道题看了好久*/const int kMax = 500000 + 10;int n;int sum[kMax];//下标前有几个人inline int lowbit(int x) { ...
2018-04-24 13:23:50
263
转载 树状数组之暂时不想注释
#include<cstdio>#include<algorithm>#include<vector>using namespace std;/*犯了一个很低级的错误。代码参考大佬*/const int Kmax=1e5+10;int n;int sum[Kmax];struct node{ int a,b,ord,res; no...
2018-04-23 19:49:14
114
原创 E. Copy and Submit II (推出递推公式)
#include<cstdio>#include<algorithm>#include<vector>using namespace std;/*刚开始被吓到了,其实很简单,将递归呈现在纸上就很显然了。*/typedef long long ll;const ll M =1000000007;int main(){ int n; whil...
2018-04-23 18:50:30
185
转载 B. Goldbach(快速判断大素数)
#include<iostream>#include<cmath>#include<cstdlib>#include<ctime>#include<cstdio>using namespace std;/*枚举两个奇数加数,直接套用米勒罗宾素数测试方法模板判断是否是素数。模板地址在另一个博客里。*/typedef unsig...
2018-04-23 18:50:05
630
转载 Reversion Count(打表找规律)
#include<iostream>#include<cstdio>#include<string>using namespace std;/*判断该数字除首尾后是否构成回文*/string s;int main(){ while(cin>>s){ bool flag=true; for(int i=1;i<s...
2018-04-22 16:16:30
239
转载 (模板)米勒罗宾素数测试(大数素数判断)
转载地址:https://blog.youkuaiyun.com/u013654696/article/details/40056179[cpp] view plain copy// 18位素数:154590409516822759 // 19位素数:2305843009213693951 (梅森素数) // 19位素数:4384957924686954497 LL prime[6] = {2, 3, ...
2018-04-22 16:09:00
1198
转载 树状数组之较复杂的区间统计(校长的问题)
#include <cstdio>#include <vector>#include <algorithm>using namespace std;/*代码是大佬的。*/const int kMax = 1e5 + 10;struct node{ int a, b, ord, res; node(int _a, int _b, i...
2018-04-21 22:05:44
197
转载 XTU 1236 Fraction
纯转载,转载地址:https://www.cnblogs.com/pshw/p/5572749.htmlFractionAccepted : 168 Submit : 1061Time Limit : 1000 MS Memory Limit : 65536 KB FractionProblem Description:Everyone has silly periods, especially ...
2018-04-21 21:46:37
182
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人