摘要: require 'time' Time.now.to_i // 单位是秒 Time.parse('2023-09-20 19:18:59.0805643 +0800').to_i // 还是秒 如何输出ms呢? Time.parse('2023-09-20 19:18:59.0805643 +080 阅读全文
posted @ 2023-09-20 20:39 戈_戈 阅读(63) 评论(0) 推荐(0) 编辑
摘要: ``` #!/usr/bin/env ruby # 通过restful API require "base64" require "openssl" require "net/http" PublicKey = "publicKey" PrivateKey = "privateKey" def ge 阅读全文
posted @ 2023-06-09 10:03 戈_戈 阅读(4) 评论(0) 推荐(0) 编辑
摘要: 我在‘我爱破解’上找了个linux版本的ida pro 6.4,发现在centos7上报不库而运行不起来。 我的系统是64位的,而ida是32的。因此需要安装如下库: sudo yum install glib2-2.56.1-2.el7.i686 -y freetype-2.8-12.el7_6. 阅读全文
posted @ 2019-05-16 10:55 戈_戈 阅读(933) 评论(0) 推荐(0) 编辑
摘要: apt-get install pkg-config, libmagick-dev,libmagickcore-dev, libmagickwand-dev, gem install rmagick 阅读全文
posted @ 2016-03-10 15:02 戈_戈 阅读(307) 评论(0) 推荐(0) 编辑
摘要: 1. 修改: /app/controllers/application_controller.rb文件为如下样子:class ApplicationController :handle_exception def not_found render :template => "shared/not_... 阅读全文
posted @ 2016-01-24 18:22 戈_戈 阅读(168) 评论(0) 推荐(0) 编辑
摘要: // sdl2_win32.cpp : Defines the entry point for the console application.//// 假定SDL的库文件和头文件和VC的工程文件在一起.#include "stdafx.h"#include "SDL2-2.0.4/include/... 阅读全文
posted @ 2016-01-15 18:37 戈_戈 阅读(251) 评论(0) 推荐(0) 编辑
摘要: #define WIN32_LEAN_AND_MEAN#include #include #include #include #include #define uchar unsigned char#define DEFAULT_PORT 80#define DEFAULT_PROTO SOCK_S... 阅读全文
posted @ 2015-10-26 18:10 戈_戈 阅读(410) 评论(0) 推荐(0) 编辑
摘要: #include "ace/Log_Msg.h" // ACE_DEBUG的宏定义在这里.#include "ace/OS.h"#include "ace/CDR_Stream.h"#include "ace/INET_Addr.h"#include "ace/SOCK_Connector.h"#i... 阅读全文
posted @ 2015-10-26 18:07 戈_戈 阅读(638) 评论(0) 推荐(0) 编辑
摘要: 文件读取.#include "ace/FILE_Connector.h"#include "ace/FILE_IO.h"void fileRW(){ACE_FILE_Connector conn; ACE_FILE_IO f;conn.connect(f, ACE_FILE_Addr("d:\\li... 阅读全文
posted @ 2015-10-26 17:59 戈_戈 阅读(623) 评论(0) 推荐(0) 编辑
摘要: 0. 假设你已经可以在上面写基本的C++程序.(即:c/C++开发环境已经就绪)1. $ sudo apt-get build-dep libqt4-dev 2. $ sudo apt-get install cmake3. 下载QT源代码http://download.qt.io/archive/... 阅读全文
posted @ 2015-06-25 10:45 戈_戈 阅读(680) 评论(2) 推荐(0) 编辑