- linux简单安装gcc和gdb
chn-zgq
Linuxlinuxubuntu
linux安装gcc以及环境配置和gdb安装gcc-10.0添加源:sudoadd-apt-repositoryppa:ubuntu-toolchain-r/ppa更新源:sudoaptupdate下载gcc:sudoaptinstallgcc-10g++-10默认GCC版本设置为gcc-10.0:sudoupdate-alternatives--install/usr/bin/gccgcc/us
- Orange Pi编译脚本的分析
点点吃得太多了
linuxlinuxbash
脚本的运行流程/scripts/main.sh变量设置DEST=“${SRC}”/outputREVISION=“2.2.2”DOWNLOAD_MIRROR==“china”NTP_SERVER=“cn.pool.ntp.org”通过网络校准您计算机上的时钟BUILD_ALLCOLUMNS,LINESTTY_X,TTY_YLANGUAGE=“en_US:en”CONSOLE_CHAR=“UTF-8
- SQLServer2022新特性 GENERATE_SERIES函数
zxrhhm
sqlserver数据库
SQLServer2022新特性GENERATE_SERIES函数,在给定间隔内生成一系列数字。序列值之间的间隔和步骤由用户定义。参考官方地址https://learn.microsoft.com/en-us/sql/t-sql/functions/generate-series-transact-sql?view=sql-server-ver161、本文内容语法参数返回类型权限示例相关内容适用于
- 简易版ts+axios封装
谷神神神
typescript
用到了VITE变量,可以参考VITE变量使用方式importaxios,{AxiosRequestConfig}from"axios";constinstance=axios.create({baseURL:import.meta.env.VITE_DEVSERVER,});//在header中添加本地存储的token//其他操作同理instance.interceptors.request.us
- Zoom使用的基本步骤和注意事项
MAMA6681
zoom
Zoom是一款功能强大的视频会议软件,广泛应用于远程办公、在线教育、团队协作等多个场景。以下是Zoom使用的基本步骤和注意事项:一、注册与登录注册Zoom账户:访问Zoom官方网站(如zoom.us),点击“注册”按钮。填写必要的注册信息,如姓名、电子邮件地址等。完成注册后,您将收到一封包含激活链接的电子邮件。点击该链接以激活您的Zoom账户。注意:目前Zoom可能不支持国内用户注册免费账号,如有
- 思科协作2018-IPT大项目随想
taoza
今年还有IPT的大项目,不容易。呵呵。CiscoIPPhone8800SeriesAdministrationGuideforCiscoUnifiedCommunicationsManagerhttps://www.cisco.com/c/en/us/td/docs/voice_ip_comm/cuipph/8800-series/english/adminguide/P881_BK_C13678
- centos7安装node.js
0981b16f19c7
安装step1:下载node.jswgethttps://npm.taobao.org/mirrors/node/v8.0.0/node-v8.0.0-linux-x64.tar.xzstep2:解压tar-xvfnode-v8.0.0-linux-x64.tar.xzstep3:配置环境变量,便于全局使用ln-s/usr/opt/node-v8.0.0-linux-x64/bin/node/us
- linux-性能优化命令
码农小伙
Linuxlinux性能优化服务器
top我们先来说说top命令用法,这个命令对于我们监控linux性能是至关重要的,我们先来看看展示结果。top-15:20:23up10min,2users,loadaverage:0.39,0.53,0.35Tasks:217total,1running,216sleeping,0stopped,0zombie%Cpu(s):0.0us,0.0sy,0.0ni,100.0id,0.0wa,0.0
- [rk3588 ubuntu20.04]移植ROS2
嵌入式成长家
linux内核的系统实战ubuntuROS2ROS2移植
目录1使用命令行安装ROS21.1设置语言1.2添加源1.3安装ROS21.4设置环境变量2在编译源码阶段安装ROS22.1调整roofts.img大小2.2安装ROS23ROS2功能测试1使用命令行安装ROS21.1设置语言设置语言为UTF-8。sudoaptupdate&&sudoaptinstalllocalessudolocale-genen_USen_US.UTF-8sudoupdate
- 关于centos7下的nginx配置https
因帅被判入狱
前段时间配备https,在网上找了很资料,结合自己的实际需求,在这分享一下配备https的一些步骤①.下载好所需要的https证书,笔者用的是阿里云,所以直接在上面下载nginx的证书,然后把下载好的证书上传到安装nginx目录里面的conf目录,笔者的是:cd/usr/local/nginx/conf/②.进入自己安装nginx的文件目录进入配置文件,由于笔者是源码安装,所有我的目录是vi/us
- 【STM32项目设计】STM32F411健康助手--MPU6050陀螺仪驱动(6)
嵌入式crafter
STM32F4健康助手stm32嵌入式硬件单片机
硬件设计软件设计此项目使用的是软件I2C,MPU6050的SCL连接到STM32的PB10,SDA连接到STM32的PB9mpuiic.c#include"mpuiic.h"#include"delay.h"//MPUIIC延时函数voidMPU_IIC_Delay(void){delay_us(2);}//初始化IICvoidMPU_IIC_Init(void){GPIO_InitTypeDef
- Linux中区域设置
Java小白笔记
Linux相关linux运维服务器
Linux中区域设置sudolocale-genen_US.UTF-8sudoupdate-localeLANG=en_US.UTF-8如果您的系统提示locale-gen命令未找到,这可能是因为某些发行版的Linux系统默认没有安装这个工具确认Linux发行版本->找到对应的系统安装对应的插件->重新执行命令1.对于Debian/Ubuntu系统如果您使用的是Debian或Ubuntu系统,可以
- Unity技巧:轻松实现鼠标悬停文本时的动态变色效果
adogai
unity游戏引擎
文章目录前言一、Text二、TMP_Text二、颜色转换总结前言在游戏或应用中,给用户的界面添加一些小的互动效果能让它们更加吸引人。比如,当策划要求你这样做的时候,当用户将鼠标悬停在文字上时,文字颜色改变,这样的效果会让界面看起来更有趣。本文将教你如何在Unity中实现这个效果,将写好的脚本挂载到按钮上即可。一、TextusingUnityEngine;usingUnityEngine.UI;us
- 使用Process Explorer来查看句柄泄露
weixin_30823001
ProcessExplorer(官方下载地址http://technet.microsoft.com/en-us/sysinternals/bb896653.aspx)下载后解压,直接运行就能看到详细的系统信息,包括CPU、IO、网络、进程等。要查看进程对应的句柄需要做以下操作(ProcessExplorer的使用一目了然,就查看句柄费了点劲,blog存档备用):打开processexplorer
- SetWindowsHookEx 相关
weixin_30537391
runtime
SetWindowsHookExfunctionhttps://msdn.microsoft.com/en-us/library/windows/desktop/ms644990(v=vs.85).aspx无焦点下获取条码枪返回值的Hook(再次改良版)http://www.oschina.net/code/snippet_934211_27611usingSystem;usingSystem.C
- 投资 - 美国国债收益率下降意味着什么(US Treasury Yield Decline)
夜流冰
投资笔记
第一财经(yicai.com)消息:当地时间2024年8月27日,美国财政部发行690亿美元两年期国债,中标收益率报3.874%,为2022年8月以来最低。2年期美债收益率在拍卖后跌至盘中低点。一级交易商获配比例11.9%,较上个月的纪录低点上升,间接投标人获配比例降至69%,直接投标人获配比例升至19.1%。美国国债收益率的下降通常反映了一些关键的经济信号和市场情绪。以下是一些可能的解释:1.避
- 【dotnet】vscode配置dotnet开发环境
rhythmcc
.net
下载dotnetsdkhttps://dotnet.microsoft.com/en-us/download/visual-studio-sdks下载完安装,安装完毕在cmd中输入以下代码dotnet出现以下结果代表安装完毕在vscode终端中输入以下创建web项目dotnetnewwebapp--outputaspnetcoreapp--no-https上述命令在名为aspnetcoreapp的
- Linux下Caffe、Docker、Tensorflow、PyTorch环境搭建(CentOS 7)
SnailTyan
文章作者:Tyan博客:noahsnail.com|CSDN|注:模型的训练、测试、部署都可以通过Docker环境完成,环境问题会更少。1.CUDA8.0安装CUDA8.0Configenvvariables#CUDAPATHexportPATH="/usr/local/cuda-8.0/bin:$PATH"#CUDALDLIBRARY_PATHexportLD_LIBRARY_PATH="/us
- USB PHY—— PHY 基础
tyustli
USBUSBPHYULPIUTMIUTMI+HSICI2C
USBPHY基础USBPHY——UTMI+USBPHY——ULPI芯片厂商开发了一些USBPHY芯片,可以把DP、DM上的差模信号转成共模信号。USBPHY负责最底层的信号转换,作用类似于网口的PHY。USB信号传输前,需要通过PHY把USB控制器的数字信号转成线缆上的模拟信号。USB控制器和PHY之间的总线主要有以下几种I2CUTMI+ULPIHSICI2C使用I2C控制PHY芯片UTMI(US
- C#之扩展类,提供附加属性
*Major*
c#开发语言
C#之扩展类,提供附加属性//////为Form1注入一个方法///publicstaticclassMyFormExt{publicstaticvoidTest(thisForm1form1){MessageBox.Show("扩展Form类");}}usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;us
- spring boot引入其他模块,没有注册引入模块的配置类
Java小弟xu
springbootjava后端
在springboot的多模块(或微服务)项目中,需要引入其他模块。如果被引入模块里面有配置类,也需要注册,这时就需要在引入模块的启动类上的@SpringBootApplication注解后面,加上扫描的包路径(多个模块则配置多个路径)//声明配置类扫描路径@SpringBootApplication(scanBasePackages={"com.xge.security","com.xge.us
- 实验16:定时器中断实验
卧龙院士
stm单片机专栏单片机嵌入式硬件定时器中断
无硬件图,用到D1灯代码main.c#includetypedefunsignedintu16;typedefunsignedcharu8;sbitLED1=P2^0;voiddelay_10us(u16n){while(n--);}voiddelay_ms(u16ms){u16i,j;for(i=ms;i>0;i--)for(j=110;j>0;j--);}voidtime0_init(void
- What our digital social networks say about us? 朋友圈真能无限大?
MM2017
Theyturnupweeklyinmyinbox,gnawingawayatmysoul.Thekindwords,thesmilingfaces,theego-strokinginvitationstoconnect,allofwhichIguiltilyignore.它们每个星期在我的邮箱里出现,让我的灵魂饱受折磨,这些友善的文字和笑脸,放低身段以求建立往来的邀请函,我因忽视它们的存在而感到
- 修改STM32的HAL库的系统时钟(SysTick)周期
洪恒远
STM32stm32单片机
目录一、简介1.1、开发环境1.2、实现功能1.3、思路解析二、系统时钟周期为100us2.1、重新定义初始化函数2.2、重新定义中断调用的函数三、系统时钟周期为10ms3.1、重新定义初始化函数3.2、重新定义中断调用的函数一、简介1.1、开发环境STM32CubeIDEV1.9。1.2、实现功能使用STM32CubeIDE配置完后,分别修改系统时钟周期为100us和10ms,并使用。1.3、思
- 成功解决:jenkins构建失败,cannot open directory /home/centos/: Permission denied等问题
兰若姐姐
安装教程报错解决工具使用专栏jenkinscentosservlet
这是报错:LANG=en_US.UTF-8JOB_NAME=interface_automation_testingBUILD_DISPLAY_NAME=#25BUILD_ID=25NOTIFY_SOCKET=/run/systemd/notifyJOB_BASE_NAME=interface_automation_testingGIT_PREVIOUS_SUCCESSFUL_COMMIT
- [大译] drone delivery service 飞行器快递服务
苹果放阳台
收听语音:http://xima.tv/x53ZdInewssource新闻来源:https://www.msn.com/en-us/news/technology/google-just-beat-amazon-to-launching-one-of-the-first-ever-drone-delivery-services/ar-BBVKRibWing,astartupownedbyGoog
- 华为nova2下无需root安装Metasploit
C9ccc00
学习
华为nova2下安装googleplaystore失败从http://www.apkmirror.com/中下载termux通过数据线传到手机上并安装进入termux后执行如下指令:pkginstallcurlcurl-OLhttps://raw.githubusercontent.com/Hax4us/Metasploit_termux/master/metasploit.shchmod+xme
- linux kvm usb设备,KVM虚拟机上关于宿主机的USB设备使用问题探究
静茉不语
linuxkvmusb设备
KVMusbpassthrough就是将宿主机的usb接口直接给虚拟机使用,usb接口上的设备也就直接可以在虚拟机上使用。测试环境宿主机1centos6.664位内核版本2.6.32-431.1.2.0.1.el6.x86_64宿主机2fedora21内核版本3.17.2-300.fc21.x86_64虚拟机windows764位配置方法第一步通过lsub或者virt-manager看看有那些us
- c#双色渐变绘图
李药师_hablee
代码usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Threading.Tasks;usingSystem.Windows.Forms;us
- 【雕爷学编程】Arduino动手做(106)---US026超声波测距
驴友花雕
37款传感器与执行器的提法,在网络上广泛流传,其实Arduino能够兼容的传感器模块肯定是不止这37种的。鉴于本人手头积累了一些传感器和执行器模块,依照实践出真知(一定要动手做)的理念,以学习和交流为目的,这里准备逐一动手尝试系列实验,不管成功(程序走通)与否,都会记录下来---小小的进步或是搞不掂的问题,希望能够抛砖引玉。【Arduino】168种传感器模块系列实验(资料代码+仿真编程+图形编程
- java观察者模式
3213213333332132
java设计模式游戏观察者模式
观察者模式——顾名思义,就是一个对象观察另一个对象,当被观察的对象发生变化时,观察者也会跟着变化。
在日常中,我们配java环境变量时,设置一个JAVAHOME变量,这就是被观察者,使用了JAVAHOME变量的对象都是观察者,一旦JAVAHOME的路径改动,其他的也会跟着改动。
这样的例子很多,我想用小时候玩的老鹰捉小鸡游戏来简单的描绘观察者模式。
老鹰会变成观察者,母鸡和小鸡是
- TFS RESTful API 模拟上传测试
ronin47
TFS RESTful API 模拟上传测试。
细节参看这里:https://github.com/alibaba/nginx-tfs/blob/master/TFS_RESTful_API.markdown
模拟POST上传一个图片:
curl --data-binary @/opt/tfs.png http
- PHP常用设计模式单例, 工厂, 观察者, 责任链, 装饰, 策略,适配,桥接模式
dcj3sjt126com
设计模式PHP
// 多态, 在JAVA中是这样用的, 其实在PHP当中可以自然消除, 因为参数是动态的, 你传什么过来都可以, 不限制类型, 直接调用类的方法
abstract class Tiger {
public abstract function climb();
}
class XTiger extends Tiger {
public function climb()
- hibernate
171815164
Hibernate
main,save
Configuration conf =new Configuration().configure();
SessionFactory sf=conf.buildSessionFactory();
Session sess=sf.openSession();
Transaction tx=sess.beginTransaction();
News a=new
- Ant实例分析
g21121
ant
下面是一个Ant构建文件的实例,通过这个实例我们可以很清楚的理顺构建一个项目的顺序及依赖关系,从而编写出更加合理的构建文件。
下面是build.xml的代码:
<?xml version="1
- [简单]工作记录_接口返回405原因
53873039oycg
工作
最近调接口时候一直报错,错误信息是:
responseCode:405
responseMsg:Method Not Allowed
接口请求方式Post.
- 关于java.lang.ClassNotFoundException 和 java.lang.NoClassDefFoundError 的区别
程序员是怎么炼成的
真正完成类的加载工作是通过调用 defineClass来实现的;
而启动类的加载过程是通过调用 loadClass来实现的;
就是类加载器分为加载和定义
protected Class<?> findClass(String name) throws ClassNotFoundExcept
- JDBC学习笔记-JDBC详细的操作流程
aijuans
jdbc
所有的JDBC应用程序都具有下面的基本流程: 1、加载数据库驱动并建立到数据库的连接。 2、执行SQL语句。 3、处理结果。 4、从数据库断开连接释放资源。
下面我们就来仔细看一看每一个步骤:
其实按照上面所说每个阶段都可得单独拿出来写成一个独立的类方法文件。共别的应用来调用。
1、加载数据库驱动并建立到数据库的连接:
Html代码
St
- rome创建rss
antonyup_2006
tomcatcmsxmlstrutsOpera
引用
1.RSS标准
RSS标准比较混乱,主要有以下3个系列
RSS 0.9x / 2.0 : RSS技术诞生于1999年的网景公司(Netscape),其发布了一个0.9版本的规范。2001年,RSS技术标准的发展工作被Userland Software公司的戴夫 温那(Dave Winer)所接手。陆续发布了0.9x的系列版本。当W3C小组发布RSS 1.0后,Dave W
- html表格和表单基础
百合不是茶
html表格表单meta锚点
第一次用html来写东西,感觉压力山大,每次看见别人发的都是比较牛逼的 再看看自己什么都还不会,
html是一种标记语言,其实很简单都是固定的格式
_----------------------------------------表格和表单
表格是html的重要组成部分,表格用在body里面的
主要用法如下;
<table>
&
- ibatis如何传入完整的sql语句
bijian1013
javasqlibatis
ibatis如何传入完整的sql语句?进一步说,String str ="select * from test_table",我想把str传入ibatis中执行,是传递整条sql语句。
解决办法:
<
- 精通Oracle10编程SQL(14)开发动态SQL
bijian1013
oracle数据库plsql
/*
*开发动态SQL
*/
--使用EXECUTE IMMEDIATE处理DDL操作
CREATE OR REPLACE PROCEDURE drop_table(table_name varchar2)
is
sql_statement varchar2(100);
begin
sql_statement:='DROP TABLE '||table_name;
- 【Linux命令】Linux工作中常用命令
bit1129
linux命令
不断的总结工作中常用的Linux命令
1.查看端口被哪个进程占用
通过这个命令可以得到占用8085端口的进程号,然后通过ps -ef|grep 进程号得到进程的详细信息
netstat -anp | grep 8085
察看进程ID对应的进程占用的端口号
netstat -anp | grep 进程ID
&
- 优秀网站和文档收集
白糖_
网站
集成 Flex, Spring, Hibernate 构建应用程序
性能测试工具-JMeter
Hmtl5-IOCN网站
Oracle精简版教程网站
鸟哥的linux私房菜
Jetty中文文档
50个jquery必备代码片段
swfobject.js检测flash版本号工具
- angular.extend
boyitech
AngularJSangular.extendAngularJS API
angular.extend 复制src对象中的属性去dst对象中. 支持多个src对象. 如果你不想改变一个对象,你可以把dst设为空对象{}: var object = angular.extend({}, object1, object2). 注意: angular.extend不支持递归复制. 使用方法: angular.extend(dst, src); 参数:
- java-谷歌面试题-设计方便提取中数的数据结构
bylijinnan
java
网上找了一下这道题的解答,但都是提供思路,没有提供具体实现。其中使用大小堆这个思路看似简单,但实现起来要考虑很多。
以下分别用排序数组和大小堆来实现。
使用大小堆:
import java.util.Arrays;
public class MedianInHeap {
/**
* 题目:设计方便提取中数的数据结构
* 设计一个数据结构,其中包含两个函数,1.插
- ajaxFileUpload 针对 ie jquery 1.7+不能使用问题修复版本
Chen.H
ajaxFileUploadie6ie7ie8ie9
jQuery.extend({
handleError: function( s, xhr, status, e ) {
// If a local callback was specified, fire it
if ( s.error ) {
s.error.call( s.context || s, xhr, status, e );
}
- [机器人制造原则]机器人的电池和存储器必须可以替换
comsci
制造
机器人的身体随时随地可能被外来力量所破坏,但是如果机器人的存储器和电池可以更换,那么这个机器人的思维和记忆力就可以保存下来,即使身体受到伤害,在把存储器取下来安装到一个新的身体上之后,原有的性格和能力都可以继续维持.....
另外,如果一
- Oracle Multitable INSERT 的用法
daizj
oracle
转载Oracle笔记-Multitable INSERT 的用法
http://blog.chinaunix.net/uid-8504518-id-3310531.html
一、Insert基础用法
语法:
Insert Into 表名 (字段1,字段2,字段3...)
Values (值1,
- 专访黑客历史学家George Dyson
datamachine
on
20世纪最具威力的两项发明——核弹和计算机出自同一时代、同一群年青人。可是,与大名鼎鼎的曼哈顿计划(第二次世界大战中美国原子弹研究计划)相 比,计算机的起源显得默默无闻。出身计算机世家的历史学家George Dyson在其新书《图灵大教堂》(Turing’s Cathedral)中讲述了阿兰·图灵、约翰·冯·诺依曼等一帮子天才小子创造计算机及预见计算机未来
- 小学6年级英语单词背诵第一课
dcj3sjt126com
englishword
always 总是
rice 水稻,米饭
before 在...之前
live 生活,居住
usual 通常的
early 早的
begin 开始
month 月份
year 年
last 最后的
east 东方的
high 高的
far 远的
window 窗户
world 世界
than 比...更
- 在线IT教育和在线IT高端教育
dcj3sjt126com
教育
codecademy
http://www.codecademy.com codeschool
https://www.codeschool.com teamtreehouse
http://teamtreehouse.com lynda
http://www.lynda.com/ Coursera
https://www.coursera.
- Struts2 xml校验框架所定义的校验文件
蕃薯耀
Struts2 xml校验Struts2 xml校验框架Struts2校验
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
蕃薯耀 2015年7月11日 15:54:59 星期六
http://fa
- mac下安装rar和unrar命令
hanqunfeng
mac
1.下载:http://www.rarlab.com/download.htm 选择
RAR 5.21 for Mac OS X 2.解压下载后的文件 tar -zxvf rarosx-5.2.1.tar 3.cd rar sudo install -c -o $USER unrar /bin #输入当前用户登录密码 sudo install -c -o $USER rar
- 三种将list转换为map的方法
jackyrong
list
在本文中,介绍三种将list转换为map的方法:
1) 传统方法
假设有某个类如下
class Movie {
private Integer rank;
private String description;
public Movie(Integer rank, String des
- 年轻程序员需要学习的5大经验
lampcy
工作PHP程序员
在过去的7年半时间里,我带过的软件实习生超过一打,也看到过数以百计的学生和毕业生的档案。我发现很多事情他们都需要学习。或许你会说,我说的不就是某种特定的技术、算法、数学,或者其他特定形式的知识吗?没错,这的确是需要学习的,但却并不是最重要的事情。他们需要学习的最重要的东西是“自我规范”。这些规范就是:尽可能地写出最简洁的代码;如果代码后期会因为改动而变得凌乱不堪就得重构;尽量删除没用的代码,并添加
- 评“女孩遭野蛮引产致终身不育 60万赔偿款1分未得”医腐深入骨髓
nannan408
先来看南方网的一则报道:
再正常不过的结婚、生子,对于29岁的郑畅来说,却是一个永远也无法实现的梦想。从2010年到2015年,从24岁到29岁,一张张新旧不一的诊断书记录了她病情的同时,也清晰地记下了她人生的悲哀。
粗暴手术让人发寒
2010年7月,在酒店做服务员的郑畅发现自己怀孕了,可男朋友却联系不上。在没有和家人商量的情况下,她决定堕胎。
12月5日,
- 使用jQuery为input输入框绑定回车键事件 VS 为a标签绑定click事件
Everyday都不同
jspinput回车键绑定clickenter
假设如题所示的事件为同一个,必须先把该js函数抽离出来,该函数定义了监听的处理:
function search() {
//监听函数略......
}
为input框绑定回车事件,当用户在文本框中输入搜索关键字时,按回车键,即可触发search():
//回车绑定
$(".search").keydown(fun
- EXT学习记录
tntxia
ext
1. 准备
(1) 官网:http://www.sencha.com/
里面有源代码和API文档下载。
EXT的域名已经从www.extjs.com改成了www.sencha.com ,但extjs这个域名会自动转到sencha上。
(2)帮助文档:
想要查看EXT的官方文档的话,可以去这里h
- mybatis3的mapper文件报Referenced file contains errors
xingguangsixian
mybatis
最近使用mybatis.3.1.0时无意中碰到一个问题:
The errors below were detected when validating the file "mybatis-3-mapper.dtd" via the file "account-mapper.xml". In most cases these errors can be d