制作个人网站 之 人生进度条

2023-05-16

 
 
 
 
来源:  仿照  uTools里的人生进度条插件用页面的形式写出
目的:  做个人网站的目的就是把看到的变成自己实现的案例

这些值由后台数据库获取   这里写死了
你的名字   {}
你打算活到几岁
你的生日

时钟为罗盘时钟  在jq插件网找到

 

life.html   与 clock.html放在同一目录下  ,源码在下面链接  右键-- 查看源代码即可     /clock.html是时钟

http://www.junhao.host/life.html


 

2020-08-07

测试type.js等   一些博客网站上存在的一些东西

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <style>
        .typed-cursor{
            opacity: 1;
            -webkit-animation: blink 0.7s infinite;
            -moz-animation: blink 0.7s infinite;
            animation: blink 0.7s infinite;
        }
        @keyframes blink{
            0% { opacity:1; }
            50% { opacity:0; }
            100% { opacity:1; }
        }
        @-webkit-keyframes blink{
            0% { opacity:1; }
            50% { opacity:0; }
            100% { opacity:1; }
        }
        @-moz-keyframes blink{
            0% { opacity:1; }
            50% { opacity:0; }
            100% { opacity:1; }
        }



        .container {
            position: relative;
            left: 50%;
            right: 50%;
            width: 24px;
            height: 24px;
        }
        .chevron {
            position: absolute;
            width: 28px;
            height: 8px;
            opacity: 0;
            transform: scale3d(0.5, 0.5, 0.5);
            animation: move 3s ease-out infinite;
        }
        .chevron:first-child {
            animation: move 3s ease-out 1s infinite;
        }
        .chevron:nth-child(2) {
            animation: move 3s ease-out 2s infinite;
        }
        .chevron:before,
        .chevron:after {
            content: ' ';
            position: absolute;
            top: 0;
            height: 100%;
            width: 51%;
            background: #656060;
        }
        .chevron:before {
            left: 0;
            transform: skew(0deg, 30deg);
        }
        .chevron:after {
            right: 0;
            width: 50%;
            transform: skew(0deg, -30deg);
        }
        @keyframes move {
            25% {
                opacity: 1;
            }
            33% {
                opacity: 1;
                transform: translateY(30px);
            }
            67% {
                opacity: 1;
                transform: translateY(40px);
            }
            100% {
                opacity: 0;
                transform: translateY(55px) scale3d(0.5, 0.5, 0.5);
            }
        }
        @keyframes pulse {
            to {
                opacity: 1;
            }
        }
        /*文字显示隐藏效果*/
        .text {
            display: block;
            margin-top: 75px;
            margin-left: -30px;
            font-family: "Helvetica Neue", "Helvetica", Arial, sans-serif;
            font-size: 20px;
            color: #656060;
            text-transform: uppercase;
            white-space: nowrap;
            opacity: .25;
            animation: pulse 2s linear alternate infinite;
        }
    </style>
    <!--非重点  向下滚动内容弹出的-->
    <style>
        p{height: 10em;text-align: center; vertical-align: middle;line-height: 10em; font-size: 1.5em; margin: 2em 1em; }
        p.div1{ background: #A3C6BE; color: #403F31;}
        p.div2{ background: #87A18E; color: #000; }
    </style>
</head>
<body>
<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
<script src="https://cdn.bootcss.com/typed.js/2.0.5/typed.js"></script>


<div style="margin: 0 auto; width:100%;height:300px;">
    <span class="element"></span>
</div>


<script>
    // 方法一  慢   
    // var typed = new Typed('.element', {//停顿1S
    //     strings: ["纠正一个错误的方法有很多 ^1000 .", "而解决一个错误的终极方法,就是不给它发生的机会。"], //输入内容, 支持html标签
    //     typeSpeed: 30 //打字速度  200
    //     ,backSpeed: 500 //回退速度  100
    //     ,showCursor: true
    //     ,cursorChar: "_"
    //     // ,typeSpeed: 0
    // });

    //方法二   这个速度太快了
    // <div id="typed-strings"></div>
    // var writeContent = 'Huangbin I Love You Forver';//要书写的内容
    // var  displayContent = $('#typed-strings');//展示书写文字的容器
    // var index = 0;//索引
    // var length = writeContent.length;//书写内容的长度
    // var tiemerName = null;//定时器的名字
    // function start(){
    //     displayContent.text('');//清空展示容器的内容
    //     tiemerName=setInterval(function(){
    //         displayContent.append(writeContent.charAt(index));//charAt返回指定所应出的字符;
    //         if(index++ === length){//如果写道最后一个字符了,清除定时器,从第一个字符重新开始写;
    //             clearInterval(tiemerName);//清除定时器
    //             index = 0;
    //             start()//回调,自己调用自己
    //         }
    //     },100);
    // }
    // start();


    // 方法三 

    var typed=new Typed(".element",{
        strings:["  ","看时光飞逝 我回首从前 曾经是莽撞少年 曾经度日如年 我是如此平凡却又如此幸运 我要说声谢谢你 在我生命中的每一天&nbsp;"],
        cursorChar:"_",
        typeSpeed:70,
        loop:!1
    });
    typed.stop();
    $(document).ready(function(){$(".typed-cursor").addClass("h2"),typed.start()})
</script>


<br>
<br>
<br>
<div class="container">
    <div class="chevron"></div>
    <div class="chevron"></div>
    <div class="chevron"></div>
</div>
<br>
<br>
<br>

<p>tishi:  向下滚动内容滑动展示</p>
<p class="div1"><a href='http://www.lanrenzhijia.com/'>懒人之家</a></p>
<p class="div2"><a href='http://www.lanrenzhijia.com/flash/'>Flash素材</a></p>
<p class="div1"><a href='http://www.lanrenzhijia.com/nav/'>菜单导航</a></p>
<p class="div2"><a href='http://www.lanrenzhijia.com/time/'>时间日期</a></p>
<p class="div1"><a href='http://www.lanrenzhijia.com/banner/'>焦点图</a></p>
<p class="div2"><a href='http://www.lanrenzhijia.com/tab/'>tab标签</a></p>
<p class="div1"><a href='http://www.lanrenzhijia.com/jquery/'>jquery特效</a></p>
<p class="div2"><a href='http://www.lanrenzhijia.com/service/'>在线客服</a></p>
<p class="div1"><a href='http://www.lanrenzhijia.com/ads/'>广告代码</a></p>
<p class="div2"><a href='http://www.lanrenzhijia.com/album/'>相册代码</a></p>
<p class="div1"><a href='http://www.lanrenzhijia.com/pic/'>图片特效</a></p>
<p class="div2"><a href='http://www.lanrenzhijia.com/famous/'>名站特效</a></p>
<p class="div1"><a href='http://www.lanrenzhijia.com/others/'>其他代码</a></p>
<script src="flowup.js"></script>
<script>
    $(function(){
        $("body").flowUp("p", { transalteY: 350, duration: 1 });
    });
</script>


</body>
</html>

 

 

最后,这是加了  测试type.js后的    life.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.js"></script>
    <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/4.4.1/js/bootstrap.min.js"></script>
    <!--<script src="https://cdn.staticfile.org/popper.js/1.15.0/umd/popper.min.js"></script>-->
    <style>
        *{margin: 0;padding: 0;}
        b{margin: 3px;}
        .head{margin: 0 auto;}
        .title {
            height: 60px;
            line-height: 60px;
            text-align: center;
        }
        .title .line {
            display: inline-block;
            width: 250px;
            /*vertical-align: -4px;*/
            border-top: 1px solid #ccc ;
        }
        .title .txt {
            color: #686868;
            vertical-align: middle;
        }
        .subTitle{color: #686868;text-align: center;width: 100%;}
        #from{width: 90%; padding-left: 5%;padding-right: 5%;}

        .content{
            width: 1100px;
            /*height: 800px;*/
            margin: 0 auto;
            padding-top: 30px;/*padding-left: 20%;padding-right: 20%;*/
            background-color: #fff; opacity: 0.9;
        }

        #iframe{
            /*min-width: 1000px;*/
            width: 100%;
            height: 420px;
            /*left: 50%;*/
            /*right: 50%;*/
            overflow: hidden;
        }
        .marginbottom{margin-bottom: 10px;}

        /*type.js  使用的css*/
        .typed-cursor{
            opacity: 1;
            -webkit-animation: blink 0.7s infinite;
            -moz-animation: blink 0.7s infinite;
            animation: blink 0.7s infinite;
        }
        @keyframes blink{
            0% { opacity:1; }
            50% { opacity:0; }
            100% { opacity:1; }
        }
        @-webkit-keyframes blink{
            0% { opacity:1; }
            50% { opacity:0; }
            100% { opacity:1; }
        }
        @-moz-keyframes blink{
            0% { opacity:1; }
            50% { opacity:0; }
            100% { opacity:1; }
        }
        /*type.js  使用的css   end*/
    </style>
</head>
<!--
    你的名字   {}
    你打算活到几岁
    你的生日          这些涉及到人生度过%   大概吃了几顿饭 度过多少个周末   享受过夜晚

    计算规则:
                过去了多少天,即当前天-1
                当前星期几(0-6,0代表星期天)
                今天过去时间百分比     (this.hour*60+this.minute)/24/60
                本周过去时间百分比     (this.week*24*60+this.hour*60+this.minute)/7/24/60
                这个月过去时间百分比    (this.day*24*60+this.hour*60+this.minute)/days/24/60/            (days为这个月具体多少天)
                今年过去时间           现在时间-今年1月1好0时0分0秒000毫秒的时间
                人生进度条            现在时间-生日时间  得出具体的毫秒值

    进度条颜色安排:  20绿    bg-success
                 20-50蓝   bg-info
                 50-80黄   bg-warning
                      红   bg-danger
 -->
<body >
    <div class="container" id="app">
        <div class="head">
            <div class="title">
                <span class="line"></span>
                <!--名字前面可以来个图-->
                <span class="txt">  雨夜歌曰雨歌夜 ({{age}})</span>
                <span class="line"></span>
            </div>
            <br>
            <div class="subTitle mark">
                <!--{{title}}   这里的名句  创建个方法  点击一下换一句 -->
                <!--https://www.tianapi.com/apiview/26   会员免费???  5000个够你玩了 -->
                <!--后台也可以专门写一个数据表  存取你喜欢的名言名句  通过随机数确定获取哪一句  -->

                <span class="element"></span>
            </div>
        </div>

        <div class="content" >
            <div id="from">
            <p>你的<b>人生</b>已经走了 {{age}}年   </p>
            <div v-html="theLife()" class="marginbottom"></div>
            <p>
                您的生日: {{yearForYour}} 年 {{monthForYour}} 月 {{dayForYour}} 日
                <span style="padding-left: 20px;">现中国人类平均寿命是76.34岁   这里按80岁算~_~</span>
            </p>
            <p>    你可能已经吃过了<b>{{youreat}}</b>, 度过了<b>{{yourweek}}</b>个愉快的周末, 以及享受过 <b>{{yourtian}}</b> 个美妙的夜晚</p>


            <hr style="border-top:1px dashed #987cb9;" width="100%" color="#987cb9" size=1>
            <p>今<b>天</b>已经过去了 大约 {{hour}}小时</p>
            <div v-html="jinduT()" class="marginbottom"></div>

            <p>本<b>周</b>已经过去了  {{week}}天,   这是第{{curweek}}天</p>
            <div v-html="jinduZ()" class="marginbottom"></div>

            <p>这个<b>月</b>已经过去了 {{day}}天 ,  这是第{{curday}}天</p>
            <div v-html="jinduD()" class="marginbottom"></div>

            <p>{{year}}<b>年</b>已经过去了 {{month}}个月     度过了{{outday}}天</p>  <!--{{year}}-->
            <div v-html="jinduY()" class="marginbottom"></div>
            </div>
            <br>
            <br>

        </div>

        <!-- clock -->
        <iframe id="iframe" src="clock.html" scrolling="no" frameborder="0"><!--src="https://www.baidu.com"--></iframe>
    </div>



    <script>
        var vm = new Vue({
            el: '#app',
            data: {
                site: "更好的有很多很多,但刚刚好的只有你一个", //献给要过生日的某某人       这个词可以换的
                age: "24",
                year:"",
                month:"",
                day:"",
                curday:"",
                time:"",
                hour:"",
                minute:"",
                sec:"",
                week:"",
                curweek:"",
                life:"",
                outday:"",
                yearForYour:"1997",
                monthForYour:"1",
                dayForYour:"4",
                yourtian:"",
                youreat:"",
                yourweek:""
            },
            created: function () {//这里是定时器
                this.timer();
                setInterval(this.timer, 60000);
            },
            methods: {// 我的理解是方法区和数据区
                timer: function() {
                    var myDate = new Date();
                    var myYear = myDate.getFullYear(); // 获取当前年份
                    var myMonth = myDate.getMonth() +1; // 获取当前月份
                    var myDay = myDate.getDate(); // 获取当前日(1- 31)
                    var myHours = myDate.getHours(); // 获取当前小时(0-23)
                    var myMinu = myDate.getMinutes(); // 获取当前分钟(0-59)
                    var mySec = myDate.getSeconds(); // 获取当前秒数(0-59)
                    var myWeek = myDate.getDay(); //获取当前星期几(0-6,0代表星期天)

                    // if (this.monthForYour==myMonth && this.dayForYour==myDay ){
                    //     //祝你生日快乐  撒花     这个老兄的烟花或者自己写  https://github.com/cunzher/canvas-/blob/master/index.html
                    // }

                    this.hour = myHours;
                    this.year = myYear;
                    this.month = myMonth-1;
                    this.day = myDay-1; this.curday=myDay;
                    this.week = myWeek-1; this.curweek = myWeek;
                    this.minute = myMinu;
                    this.age = myYear-this.yearForYour;
                },
                //life
                theLife:function(){
                    var dt = new Date(this.yearForYour, this.monthForYour, this.dayForYour);
                    var today = new Date();
                    var ms = today.getTime() - dt.getTime();//parseInt((today.getTime() - dt.getTime())/86400000);
                    this.yourtian = parseInt(ms/86400000);
                    this.youreat = parseInt(ms/86400000)*3;
                    this.yourweek = parseInt(ms/86400000/7);
                    var lift = (parseInt(ms/86400000/365)/80 *100).toFixed(1);
                    var color = this.jinduColor(lift);
                    return "<div class='progress'> <div class='progress-bar "+ color +" progress-bar-striped progress-bar-animated' style='width:"+ lift +"%'>"+lift+"</div> </div>";
                },
                //今天
                jinduT:function(){
                    var tian = ((this.hour*60+this.minute)/24/60*100).toFixed(1); // + "%"
                    var color = this.jinduColor(tian);
                    return "<div class='progress'> <div class='progress-bar "+ color +" progress-bar-striped progress-bar-animated' style='width:"+ tian +"%'>"+tian+"</div> </div>";
                },
                //本周
                jinduZ:function(){
                    var curdayWithHour = (this.week*24*60+this.hour*60+this.minute)/7/24/60;
                    var zhou = (curdayWithHour*100).toFixed(1);
                    var color = this.jinduColor(zhou);
                    return "<div class='progress'> <div class='progress-bar "+ color +" progress-bar-striped progress-bar-animated' style='width:"+ zhou +"%'>"+zhou+"</div> </div>";
                },
                //这个月
                jinduD:function(){
                    var days=new Date(this.year,this.month+1,0).getDate();
                    var yue = ((this.day*24*60+this.hour*60+this.minute)/days/24/60*100).toFixed(1);  //js如何得到这个月具体多少天
                    var color = this.jinduColor(yue);
                    return "<div class='progress'> <div class='progress-bar "+ color +" progress-bar-striped progress-bar-animated"+ color +"' style='width:"+ yue +"%'>"+yue+"</div> </div>";
                },
                //年
                jinduY:function(){
                    var olddate = new Date(this.year, 0);
                    var nowdate = new Date(this.year,this.month,this.day+1);
                    var outday = (nowdate - olddate) / (1000 * 60 * 60 * 24) + 1;//
                    this.outday = outday;//已经过去天数

                    var isLeap = (0===this.year%4) && (0===this.year%100) || (0===this.year%400);
                    var days = isLeap ? 366 : 365;//今年的天数
                    var ye = (((outday-1)*24*60 + this.hour*60+ this.minute)/days/24/60*100).toFixed(1);
                    var color = this.jinduColor(ye);
                    return "<div class='progress'> <div class='progress-bar "+ color +" progress-bar-striped progress-bar-animated"+ color +"' style='width:"+ ye +"%'>"+ye+"</div> </div>";
                },
                jinduColor: function (value) {
                    // 20绿    bg-success
                    // 20-50蓝   bg-info
                    // 50-80黄   bg-warning
                    // 红   bg-danger
                    if (value >= 80) {
                        return 'bg-danger';
                    }else if(value >= 50 && value<80){
                        return 'bg-warning';
                    }else if(value >= 20 && value<50){
                        return 'bg-info';
                    }else {
                        return 'bg-success';
                    }

                }
            }
            // ,components: {
            //     'Demo': clock  //将别名demo 变成 组件 Demo
            // }


        })
    </script>

    <!--typed.js  打字效果-->
    <script src="https://cdn.bootcss.com/typed.js/2.0.5/typed.js"></script>
    <script>
        var title = "\"更好的有很多很多,但刚刚好的只有你一个\"&nbsp;";//测试得出这个值可以用ajax或其它方法从后台获取
        var typed=new Typed(".element",{
            // strings:["  ","\"更好的有很多很多,但刚刚好的只有你一个\"&nbsp;"], //看时光飞逝 我回首从前 曾经是莽撞少年 曾经度日如年 我是如此平凡却又如此幸运 我要说声谢谢你 在我生命中的每一天&nbsp;
            strings:["  ",title], //看时光飞逝 我回首从前 曾经是莽撞少年 曾经度日如年 我是如此平凡却又如此幸运 我要说声谢谢你 在我生命中的每一天&nbsp;
            cursorChar:"_",
            typeSpeed:70,
            loop:!1
        });
        typed.stop();
        $(document).ready(function(){
            $(".element").addClass("h2");
            $(".typed-cursor").addClass("h2");
                typed.start()
        })
    </script>
    <script>
        /**
         * Copyright (c) 2016 hustcc
         * License: MIT
         * Version: v1.0.1
         * GitHub: https://github.com/hustcc/ribbon.js
         **/
        !function(){function e(e,t,n){return Number(e.getAttribute(t))||n}function t(){for(r.clearRect(0,0,h,s),a=[{x:0,y:.7*s+u},{x:0,y:.7*s-u}];a[1].x<h+u;)n(a[0],a[1])}function n(e,t){r.beginPath(),r.moveTo(e.x,e.y),r.lineTo(t.x,t.y);var n=t.x+(2*p()-.25)*u,o=i(t.y);r.lineTo(n,o),r.closePath(),m-=x/-50,r.fillStyle="#"+(127*y(m)+128<<16|127*y(m+x/3)+128<<8|127*y(m+x/3*2)+128).toString(16),r.fill(),a[0]=a[1],a[1]={x:n,y:o}}function i(e){return l=e+(2*p()-1.1)*u,l>s||l<0?i(e):l}var o=document.getElementsByTagName("script"),c=o[o.length-1];config={z:e(c,"zIndex",-1),a:e(c,"alpha",.6),s:e(c,"size",90)};var a,l,d=document.createElement("canvas"),r=d.getContext("2d"),g=window.devicePixelRatio||1,h=window.innerWidth,s=window.innerHeight,u=config.s,f=Math,m=0,x=2*f.PI,y=f.cos,p=f.random;d.width=h*g,d.height=s*g,r.scale(g,g),r.globalAlpha=config.a,d.style.cssText="position:fixed;top:0;left:0;z-index: "+config.z+";width:100%;height:100%;pointer-events:none;opacity:0.5;",document.getElementsByTagName("body")[0].appendChild(d),document.onclick=t,document.ontouchstart=t,t()}();
    </script>
    <script>
        //鼠标点击出现爱心特效
        (function(window,document,undefined){
            var hearts = [];
            window.requestAnimationFrame = (function(){
                return window.requestAnimationFrame ||
                    window.webkitRequestAnimationFrame ||
                    window.mozRequestAnimationFrame ||
                    window.oRequestAnimationFrame ||
                    window.msRequestAnimationFrame ||
                    function (callback){
                        setTimeout(callback,1000/60);
                    }
            })();
            init();
            function init(){
                css(".heart{width: 10px;height: 10px;position: fixed;background: #f00;transform: rotate(45deg);-webkit-transform: rotate(45deg);-moz-transform: rotate(45deg);}.heart:after,.heart:before{content: '';width: inherit;height: inherit;background: inherit;border-radius: 50%;-webkit-border-radius: 50%;-moz-border-radius: 50%;position: absolute;}.heart:after{top: -5px;}.heart:before{left: -5px;}");
                attachEvent();
                gameloop();
            }
            function gameloop(){
                for(var i=0;i<hearts.length;i++){
                    if(hearts[i].alpha <=0){
                        document.body.removeChild(hearts[i].el);
                        hearts.splice(i,1);
                        continue;
                    }
                    hearts[i].y--;
                    hearts[i].scale += 0.004;
                    hearts[i].alpha -= 0.013;
                    hearts[i].el.style.cssText = "left:"+hearts[i].x+"px;top:"+hearts[i].y+"px;opacity:"+hearts[i].alpha+";transform:scale("+hearts[i].scale+","+hearts[i].scale+") rotate(45deg);background:"+hearts[i].color;
                }
                requestAnimationFrame(gameloop);
            }
            function attachEvent(){
                var old = typeof window.onclick==="function" && window.onclick;
                window.onclick = function(event){
                    old && old();
                    createHeart(event);
                }
            }
            function createHeart(event){
                var d = document.createElement("div");
                d.className = "heart";
                hearts.push({
                    el : d,
                    x : event.clientX - 5,
                    y : event.clientY - 5,
                    scale : 1,
                    alpha : 1,
                    color : randomColor()
                });
                document.body.appendChild(d);
            }
            function css(css){
                var style = document.createElement("style");
                style.type="text/css";
                try{
                    style.appendChild(document.createTextNode(css));
                }catch(ex){
                    style.styleSheet.cssText = css;
                }
                document.getElementsByTagName('head')[0].appendChild(style);
            }
            function randomColor(){
                return "rgb("+(~~(Math.random()*255))+","+(~~(Math.random()*255))+","+(~~(Math.random()*255))+")";
            }
        })(window,document);
    </script>

</body>
</html>

 

--2020-08-12

已经存在一些接口     当然可以自己写   用python爬取一些句子存在数据库中,有哪些网站有名言名句的(最好有句子的来源,作者),欢迎留言

window.info = function() {
        fetch("https://v1.hitokoto.cn")
            .then(response => response.json())
    .then(result => {
            alert("「" + result.hitokoto + "」——" + result.from);
    });
    };
    // {
    //     "id": 878,
    //     "uuid": "c3fd33c9-3fd6-4e8b-a3dd-025a52b66c09",
    //     "hitokoto": "我们一直在一起,所以最后也想在你身旁。",
    //     "type": "a",
    //     "from": "火影忍者",
    //     "from_who": null,
    //     "creator": "hitokoto",
    //     "creator_uid": 1775,
    //     "reviewer": 0,
    //     "commit_from": "web",
    //     "created_at": "1478787580",
    //     "length": 19
    // }

 

 

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

制作个人网站 之 人生进度条 的相关文章

  • Linux 下I/O多路复用总结

    xfeff xfeff select xff0c poll xff0c epoll都是IO多路复用的机制 I O多路复用就通过一种机制 xff0c 可以监视多个描述符 xff0c 一旦某个描述符就绪 xff08 一般是读就绪或者写就绪 xf
  • WAV文件头分析

    WAV语音文件头部含有44字节的标志信息 xff0c 其含义如下 xff1a ckid xff1a 4字节 RIFF 标志 xff0c 大写 wavHeader 0 61 39 R 39 wavHeader 1 61 39 I 39 wav
  • Linux环境下限制网速和取消限制网速

    查看网卡信息 ip addr root 64 rabbitmq01 ip addr 1 lo lt LOOPBACK UP LOWER UP gt mtu 65536 qdisc noqueue state UNKNOWN qlen 1 l
  • Linux 网络编程2 TCP并发服务器

    Linux 网络编程学习 TCP IP网络编程2 TCP多线程服务器TCP多进程服务器 在前面TCP网络编程代码的基础上进行改造 xff0c 实现并发服务器功能 TCP多线程服务器 实现功能 xff1a server端可以绑定在任意IP端s
  • HTTP Digest authentication

    什么是摘要认证 摘要认证 xff08 Digest authentication xff09 是一个简单的认证机制 xff0c 最初是为HTTP协议开发的 xff0c 因而也常叫做HTTP摘要 xff0c 在RFC2617中描述 其身份验证
  • 简单的netfilter hook函数注册以及内核链表的使用

    include lt linux netfilter h gt include lt linux init h gt include lt linux module h gt include lt linux netfilter ipv4
  • 详述GPS原理及RTK技术应用

    完整的PPT文档在这里 xff1a 详述GPS原理及RTK技术应用 1 GPS概述 1 1定义 全球定位系统GPS xff08 Global Position System xff09 xff0c 全称为NAVSTAR GPS xff08
  • PHP HTTP Digest校验

    PHP作为客户端进行HTTP Digest校验 span class token comment 请求方法 span span class token variable username span span class token oper
  • Http Digest认证协议

    其认证的基本框架为挑战认证的结构 xff0c 如下图所示 xff1a xfeff xfeff 1 客户端希望取到服务器上的某个资源 xff0c 向服务器发送Get请求 2 服务器收到客户端的请求后 xff0c 发现这个资源需要认证信息 xf
  • Postman 安装

    Postman 的下载安装 Postman是一个用于构建和使用API的API平台 xff08 接口的调试工具 xff09 选择对应的系统和版本进行下载 https github com hlmd Postman cn 这里我的电脑是wind
  • 【安卓自定义控件系列】自绘控件打造界面超炫功能超强的圆形进度条

    在前面我们讲过了安卓自定义控件三种方式中的组合控件 xff0c 现在我们来讲解一下通过自绘的方式来实现自定义控件 xff0c 本博客将以自定义圆形进度条为例向大家讲解自定义控件的知识 xff0c 首先来看一下效果图吧 xff0c 这个是本人
  • Linux网络编程3——多进/线程并发服务器

    视频链接 黑马程序员 Linux网络编程 哔哩哔哩 bilibili https www bilibili com video BV1iJ411S7UA p 61 37 目录 一 高并发服务器 1 1 图示 1 2 分类 二 多进程并发服务
  • http请求头和响应头

    文章目录 参考HTTP通用标头Cache ControlConnectionDatePragmaTrailerTransfer EncodingUpgradeViaWarning 请求头AcceptAccept RangesAccept E
  • C++如何使用libcurl发送post请求的三种content-type的封装

    作者 xff1a 虚坏叔叔 博客 xff1a https xuhss com 早餐店不会开到晚上 xff0c 想吃的人早就来了 xff01 x1f604 C 43 43 如何使用libcurl发送post请求的三种content type的
  • 开源四轴飞行器CC3D的稳定模式和PID算法简介

    本文主要介绍一下CC3D的两大飞行模式的原理 xff1a 1 Rate 2 Attitude 以及PID的基本原理 至于AxisLock模式及Manual xff0c 日后续说 笔者是CC3D开源飞控入门玩家 xff0c 遇到过不少磕磕碰碰
  • 了解git分支和版本管理

    0 Git分支和标签的命名规范 1 分支 dev test pre pro 即master 2 标签 Tag格式 xff1a 主版本号 次版本号 修订号 类型标签 xff0c 其中类型标签可为 xff1a alpha beta rc r T
  • ubuntu下解决高并发socket最大连接数限制,tcp默认1024个连接

    nux系统默认ulimit为1024个访问 用户最多可开启的程序数目 一般一个端口 xff08 即一个进程 xff09 的最高连接为2的16次方65536 通过这个命令 ulimit n 可以看到默认值为1024 查看全局文件句柄数限制 系
  • Linux下实现Post方式

    首先了解HTTP协议各字段的含义 xff0c 以下是部分较好的归纳 xff1a HTTP一个HTTP请求报文由请求行 xff08 request line xff09 请求头部 xff08 header xff09 空行和请求数据4个部分组
  • vins中的坐标系变换及g2r函数

    slam中经常会需要表示一个刚体的位姿 例如imu的位姿 xff0c 相机的位姿 首先我们需要在一个刚体上架上一个坐标系 这个坐标系为本体坐标系 怎么架一个坐标系 xff1f imu本身就有规定其本身的x y z轴的方向 相机一般认为 xf
  • yolo_v3安装试运行小记

    github源代码 xff1a https github com qqwweee keras yolo3 Cuda下载地址 xff1a https developer nvidia com cuda toolkit archive Cudn

随机推荐

  • pytorch安装使用

    pytorch官网 xff1a https pytorch org get started locally conda添加清华源 xff1a conda config add channels https mirrors tuna tsin
  • ORB_SLAM3初试

    源码地址 xff1a orb salm3 github 论文地址 orb slam3 paper ORB SLAM3提供了单目 xff0c 双目 xff0c rgbd 以及各自结合IMU的数据分析实现 demo运行效果展示 xff1a 在不
  • vins-fusion代码解读[五] imu在vins里的理解

    SLAM新手 xff0c 欢迎讨论 IMU作用 vins中 xff0c IMU只读取IMU六轴的信息 xff0c 3轴线加速度 xff08 加速度计 xff09 和3轴角速度 xff08 陀螺仪 xff09 通过对陀螺仪的一次积分 xff0
  • Gazebo仿真学习——2.为Gazebo中的机器人添加实用插件

    Gazebo plugins in ROS 1 要了解2 插件类型3 添加一个ModelPlugin4 添加一个SensorPlugin5 gazebo plugins中的所有可用插件5 1 Camera5 2 GPU Laser xff0
  • 一款直播电视接口分析

    一 初步了解 最近对一款网络电视app进行分析 xff0c 要求是找到其访问直播源的接口 xff0c 初次打开apk xff0c 先做一个简单的了解 xff0c 并没有加固等处理 xff0c 只是对代码做了混淆处理 我们目的是找到其访问直播
  • android串口通讯

    一 配置 1 下载文件 https github com cepr android serialport api 2 复制android serialport api文件夹至app src main java 3 复制jni文件至app s
  • boost库介绍以及使用

    C 43 43 boost库介绍以及使用 一 什么是boost库 boost 库是一个优秀的 xff0c 可移植的 xff0c 开源的 C 43 43 库 xff0c 它是由 C 43 43 标准委员会发起的 xff0c 其中一些内容已经成
  • 内存映射文件

    内存映射文件 本文给出了一种方便实用的解决大文件的读取 存储等处理的方法 xff0c 并结合相关程序代码对具体的实现过程进行了介绍 引言 文件操作是应用程序最为基本的功能之一 xff0c Win32 API和MFC均提供有支持文件处理的函数
  • 如何在Eclipse中使用Ruby开发工具(RDT)插件进行Ruby开发

    一 为什么使用Ruby xff1f 现在 xff0c 为什么众多的Java开发者都关注Ruby xff1f Ruby xff0c 是10年以前在日本创建的一种通用目的脚本语言 xff0c 这是一种纯面向对象的语言 不同于 Java技术 xf
  • Open eyes in your life

    读到几个故事 xff0c 希望和大家分享 一 成功无捷径 Be proactive 一个青年职员平时工作懒懒散散 xff0c 在转正前一个月他问老板 xff1a 如果我兢兢业业工作一个月 xff0c 我能转正吗 xff1f 老板答道 xff
  • Ruby菜鸟必读http://blog.csdn.net/leasun/archive/2004/06/16/9836.aspx

    作者 xff1a William Djaja Tjokroaminata 目录 资源 1 利用警告信息 2 交互式命令解释器 xff08 Interactive shell xff09 3 联机文档 4 Class method 5 从字符
  • 毕业生收入最高的前30所大学排行榜

    毕业生收入最高的前30所大学排行榜 1 北大 123023 2 清华 118712 3 北邮 98712 4 中科大 87623 5 西电 82312 6 南京大学 78620 7 北理工 76228 8 外交学院 75667 9 国际关系
  • 世界500强面试题(情商部分)

    情商 xff08 1 xff09 1 什么书中毛病最多 xff1f 2 为什么好马不吃回头草 xff1f 3 什么东西说 父亲 是不会相碰 xff0c 叫 爸爸 时却会碰到两次 xff1f 4 农夫养10头牛 xff0c 只有19只角 xf
  • 苏浙差距!江苏经济何以难敌浙江http://bbs.icxo.com/dispbbs.asp?boardID=1894&ID=100323&page=1

    进入21世纪 xff0c 江苏经济虽然也以高于全国平均速度在增长 xff0c 但以民间资本为主的浙江经济则以高于江苏经济增长速度在发展 更为引人注目的是 xff0c 2004年下半年起 xff0c 依靠外力和政府强势推动的江苏出现了边际生产
  • 公司注册流程

    项目 xff1a 首先你要明白经商成功与否的关键在于是否有一个好的项目 xff0c 而不在于没有本钱 xff0c 怎么找到一个好项目 这个因人而异 xff0c 因地而异 xff0c 不能作具体讨论 基本上要根据你自身的综合的特点来选择行业和
  • 安卓高级xml布局(一)高级输入框EditText设计

    安卓高级xml布局 xff08 一 xff09 高级输入框EditText设计 转载请注明来源 代码连接 http download csdn net detail androidmsky 9274037 欢迎加安卓开发交流群 xff1a
  • SIP协议详解

    SIP协议基本介绍 背景介绍 Internet的许多应用都需要建立和管理一个会话 xff0c 会话在这里的含义是在参与者之间的数据的交换 由于考虑到参与者的实际情况 xff0c 这些应用的实现往往是很复杂的 xff1a 参与者可能是在代理间
  • STL容器的适用情况(转)

    原文 xff1a http hsw625728 blog 163 com blog static 3957072820091116114655254 vector 典型的序列容器 xff0c C 43 43 标准严格要求次容器的实现内存必须
  • 嵌入式STM32入门之STM32中断——点灯实验、串口通信

    STM32中断实验 一 前言二 实验要求三 中断介绍四 CuBe实现中断点灯 xff08 1 xff09 新建工程 xff08 2 xff09 设置管脚 xff08 3 xff09 设置NVIC xff08 4 xff09 配置中断优先级
  • 制作个人网站 之 人生进度条

    来源 xff1a 仿照 uTools里的人生进度条插件用页面的形式写出 目的 xff1a 做个人网站的目的就是把看到的变成自己实现的案例 这些值由后台数据库获取 这里写死了 你的名字 你打算活到几岁 你的生日 时钟为罗盘时钟 在jq插件网找