MySQL DBA 修炼之道读书笔记

第一章:理解mysql

    阅读更多

    GO基础安装

    linux下安装go的步骤

      阅读更多

      php常用函数

      判断当前域名是否是https模式

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      function isHttps(){
      if(!isset($_SERVER['HTTPS'])) return false;
      if($_SERVER['HTTPS'] === 1){ //Apache
      return true;
      }elseif($_SERVER['HTTPS'] === 'on'){ //IIS
      return true;
      }elseif($_SERVER['SERVER_PORT'] == 443){ //其他
      return true;
      }
      return false;
      }

      阅读更多

      ios安装plist文件

      准备资源

        阅读更多

        我的2016年

        2016年过的感觉就像学新东西一样,什么都试了下,什么都没深入。总结起来就是,迷途瞎忙,慵懒平淡。

        阅读更多

        php使用qrcode生成二维码,并合成为一张图

        载入phpqrcode,并使用合成图片

        1
        2
        3
        4
        5
        6
        7
        8
        9
        10
        11
        12
        13
        14
        15
        16
        17
        18
        19
        20
        include('phpqrcode.php");
        $filename = "xxx.png";//图片路径
        $errorCorrectionLevel = 'L';//容错级别
        $matrixPointSize = 3; //生成图大小
        $url = 'http://idiot6.com';
        QRcode::png($url, $filename, $errorCorrectionLevel, $matrixPointSize, 2);
        $QR = "xxx.png"; // qr
        $logo = 'layout-bg-1.png';// bg
        $QR = imagecreatefromstring ( file_get_contents ( $QR ) ); //open picture source
        $logo = imagecreatefromstring ( file_get_contents ( $logo ) ); //open picture source
        imagecopyresampled ( $logo, $QR,565,215,0,0,154,154,$QR_width, $QR_height ); // mixed picture
        $result_png = rand(100000, 999999) . uniqid() . ".png"; // file name
        $file = '/data/www/upload/qrcode/' . $result_png;
        imagepng ( $logo, $file );//output picture

        阅读更多

        curl访问https接口,点击图片下载

        curl访问https接口

        1
        2
        3
        4
        5
        6
        7
        $url = "https://test.idiot.com/preregister/data?phone=15756892356" ;
        $ch = curl_init();
        curl_setopt($ch, CURLOPT_URL,$url);
        curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
        curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
        $result = curl_exec($ch);
        print_r($result);

        阅读更多

        呵呵的一周,终于过去了!

        昨天他们说,我发火了

          阅读更多

          说好的不加班呢!!!

          在好的游戏也有玩烦的一天,就像在好的工具有淘汰的那一天,打游戏还不如锻炼身体,看这appstore上的排行榜不知道下什么游戏玩,不知道去玩什么,因为游戏太多了,多的我们没发选择,这一天天的都浪费在游戏上了,容易吗!

          阅读更多

          github快捷键

          有时候的失去未必不是一件好事,只是人生中的过客,又何必在意那么多。失去了才会懂得珍惜吗?

          阅读更多