摘要: Given a directed graph, a source vertex ‘src’ and a destination vertex ‘dst’, print all paths from given ‘src’ to ‘dst’. Consider the following direct 阅读全文
posted @ 2020-02-09 16:50 chunchill 阅读(254) 评论(0) 推荐(0) 编辑
摘要: 1. 下载并解压 noinstall 压缩包,假设解压到 D:\APP\mariadb-10.0.17-winx64 目录 下载地址(MariaDB 10.0.17 Stable):llarian.net 2. 创建配置文件 my.ini (D:\APP\mariadb-10.0.17-winx64 阅读全文
posted @ 2016-11-06 22:02 chunchill 阅读(4764) 评论(0) 推荐(0) 编辑
摘要: su:Swith user 切换用户,切换到root用户cat: Concatenate 串联uname: Unix name 系统名称df: Disk free 空余硬盘du: Disk usage 硬盘使用率chown: Change owner 改变所有者chgrp: Change group 阅读全文
posted @ 2016-03-29 09:58 chunchill 阅读(1172) 评论(0) 推荐(0) 编辑
摘要: 一、每次输入都自动提示 设置Window->preferences->Java->Editor->Content Assist 再右下角Auto activation triggers for Java里面改为 abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQR 阅读全文
posted @ 2016-02-02 18:58 chunchill 阅读(366) 评论(0) 推荐(0) 编辑
摘要: 也许大家偶然会发现/sbin里有个init命令。你知道它是如何使用的吗? 如果你不喜欢使用图形登录方式,如何能够让用户在控制台下运行startx命令呢? 有时你要维护服务器,暂时不希望别的用户登录系统,但自己仍对网络有访问权,又该怎么办呢? 其实,如果你知道了三个问题之间的关系,它们就不成问... 阅读全文
posted @ 2015-08-10 13:57 chunchill 阅读(9411) 评论(0) 推荐(0) 编辑
摘要: 小例子可以部署在rails自带的WEBrick上,逐渐往后走还得上Apache。安装apache服务器命令是sudo apt-get install apache2安装passenger插件安装完毕还不能立刻用,因为想运行rails应用的话,还要为apache服务器安装插件passenger。pas... 阅读全文
posted @ 2015-08-09 21:42 chunchill 阅读(752) 评论(0) 推荐(0) 编辑
摘要: 最近学习Rails。看到如下代码:Your Pragmatic Catalog 对其中不是很明白。研究后有如下发现:1、配置 配置 :/... 阅读全文
posted @ 2015-08-07 19:04 chunchill 阅读(776) 评论(0) 推荐(0) 编辑
摘要: 以 apache/httpd 服务作为例子任务Red Hat/FedoraUbuntuUbuntu(with sysv-rc-conf or sysvconfig)立即启动/停止某服务service httpd startinvoke-rc.d apache startservice apache ... 阅读全文
posted @ 2015-08-05 22:35 chunchill 阅读(361) 评论(0) 推荐(0) 编辑
摘要: uRedhat 提供了chkconfig这个命令来管理系统在不同运行级别下的服务开启/关闭: chkconfig ServiceName on/off 并可以用chkconfig --list(两个杠) 查看当前的制定状况。Ubuntu里没有这个命令,其实也可以不用任何命令简单管理系统服务, 可以通... 阅读全文
posted @ 2015-08-05 22:32 chunchill 阅读(4942) 评论(0) 推荐(0) 编辑
摘要: 有时候我们需要Linux系统在开机的时候自动加载某些脚本或系统服务主要用三种方式进行这一操作:ln -s 在/etc/rc.d/rc*.d目录中建立/etc/init.d/服务的软链接(*代表0~6七个运行级别之一)chkonfig 命令行运行级别设置ntsysv 伪图形运行级别设置... 阅读全文
posted @ 2015-08-05 22:28 chunchill 阅读(16577) 评论(1) 推荐(2) 编辑
摘要: 在 Mac 下用 Homebrew 安装 MySQL, 网上的教程倒是很多,不过大多数都很默契地雷同。如果稍有点定制要求,就无从下手了。我先也不免俗,从基本的开始:一、首先安装 Homebrew123$ ruby -e "$(curl -fsSL https://raw.github.com/mxc... 阅读全文
posted @ 2015-08-05 21:15 chunchill 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 以下是上述协议的简单介绍:BSD开源协议BSD开源协议是一个给于使用者很大自由的协议。基本上使用者可以”为所欲为”,可以自由的使用,修改源代码,也可以将修改后的代码作为开源或者专有软件再发布。但”为所欲为”的前提当你发布使用了BSD协议的代码,或则以BSD协议代码为基础做二次开发自己的产品时,需要满... 阅读全文
posted @ 2015-08-05 10:44 chunchill 阅读(1958) 评论(0) 推荐(2) 编辑
摘要: 在 mac 下,可以利用homebrew直接安装 PostgreSQL:1brewinstall postgresql -v稍等片刻,PostgreSQL就安装完成。接下来就是初始数据库,在终端执行一下命令,初始配置 PostgreSQL:1initdb/usr/local/var/postgres... 阅读全文
posted @ 2015-08-04 22:16 chunchill 阅读(47265) 评论(1) 推荐(4) 编辑
摘要: /etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置.英文描述为:# /etc/profile# System wide environment and startup programs,... 阅读全文
posted @ 2015-07-31 23:27 chunchill 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 本人补充:mac版git下载地址:http://code.google.com/p/git-osx-installer/downloads/list?can=3&q=&sort=-uploaded&colspec=Filename+Summary+Uploaded+Size+DownloadCoun... 阅读全文
posted @ 2015-07-31 23:22 chunchill 阅读(1087) 评论(0) 推荐(0) 编辑