>>> YieldNull
  • /blog
  • /archives
  • /github
  • /about

Blog Entries all / by tag / by year

  • Decoding Lab: Understanding a Secret Message

    2015-11-08 23:29:19 / CS /5635 hits

    遇到一个有趣的C语言习题,题目很好地考察了数据在内存中的存储方式以及函数调用时的stack管理。题目如下:

    Read more...


  • Auto Login in WHU Dormitory Network On Raspberry Pi

    2015-10-27 00:00:00 / RaspberryPi /5143 hits

    按照之前写的Build A Website With Python and Nginx一文中的方法,在树莓派中搞了一个website,通过ssh反向隧道的方法,将校园网内网中的树莓派与公网中的一台VPS建立ssh连接,并建立反向隧道。将公网80端口映射到树莓派的某端口,从而可以直接从外网访问内网中的树莓派。地址为raspi.hejunjie.net,23:30-6:30由于断电会无法访问。

    Read more...


  • 用树莓派发送无线AP

    2015-10-26 23:29:08 / RaspberryPi /4577 hits

    作死買了個樹莓派(Raspberry Pi),宿舍不能用路由器,入手之後就想把它當路由器用。於是買了個USB無線網卡EDUP EP-N8508GS。下面是配置過程

    Read more...


  • Backup Neteasy Blog (备份网易博客)

    2015-10-26 20:37:57 / Python /5174 hits

    Backup your neteasy blog entries to a sqlite3 database.

    Only Created time,title and content are stored.

    Usage: neteasy.py <username>

    The <username> is your blog name which appears in your blog domain. Just like "junjie.blog.163.com", in which "junjie" is the <username>

    If everything is normal, the output will be like this:

    normal.png

    Read more...


  • Build A Website With Python-Flask and Nginx

    2015-10-24 16:30:56 / Python /6374 hits

    我們使用Nginx作爲前端反向代理服務器,一些靜態資源可以直接通過Nginx訪問。對於動態資源,Nginx將請求轉發到後端的Gunicorn服務器,Gunicorn負責調用後端的Python代碼,進行動態處理。

    上面,我們說道,nginx將動態請求轉發到本地的9000端口,Gunicorn正是監聽此端口。Nginx可以直接作爲服務進程啓動,但是Gunicorn還不行,因此我們使用Supervisor。Supervisor是一个管理进程的工具,可以随系统启动而启动服务,它还时刻监控服务进程,如果服务进程意外退出,Supervisor可以自动重启服务。同時,我們安裝gevent,它是一個把Python同步代码变成异步协程的库;

    Read more...


  • Shadow copy and Deep copy in Python

    2015-10-23 00:37:43 / Python /5452 hits

    Assignment statements in Python do not copy objects, they create bindings between a target and an object. For collections that are mutable or contain mutable items, a copy is sometimes needed so one can change one copy without changing the other.

    Read more...


  • « Previous 9 / 12
  • Next 11 / 12 »

About this site © YieldNull,