sourceforge

git fatal error Path with a does not make sense

ぐ巨炮叔叔 提交于 2019-11-27 17:44:47
问题 I have existing code on my computer, then I have registerd my account on sourceforge, starting a git project. Now I need to send my local project on sourceforge remote space. On sf there's the instruction page: First time using Git cd miorep-code git init git commit -a -m 'Initial commit' git remote add origin ssh://****/p/miorep/code git push origin master Existing Repository cd miorep-code git remote add origin ssh://****/p/miorep/code git push origin master If I follow the first set of

Another mod_rewrite trailing slash question

∥☆過路亽.° 提交于 2019-11-27 03:48:19
问题 I have the following rewrite rules in my .htaccess file: RewriteEngine on RewriteRule ^news/([0-9]+)/?$ /?action=news&start=$1 [L] RewriteRule ^man/([a-zA-Z0-9_]+)/?$ /?action=man&page=$1 [L] RewriteRule ^([a-zA-Z0-9_]+)/?$ /?action=$1 [L] All of then end with a /? to check for an optional trailing slash. This works - it means I can use either http://www.site.com/news/ or http://www.site.com/news to get to the news page, which is what I want. The problem is that, while http://www.site.com

用http代理下载sourceforge的cvs仓库[原理+C#代码]

荒凉一梦 提交于 2019-11-26 15:16:14
12月的地震震断了几根光缆,麻烦的事情接踵而至,直连sourceforge上不去了,只好用代理。虽然能够下载到打包好的代码,但某些代码已显得陈旧,而cvs最新的代码确要用工具checkout,但很郁闷的事情cvs不支持http代理。有一下一些解决办法: 1、找sockets代理,然后用eborder等软件使cvs能够用。明显,网络上提供sockets代理的少之又少。 2、通过工具把http代理变成sockets代理。当然此法能够行得通,但cvs checkout的速度慢的惊人,没有可行性。 3、找联通的网络,他们出国没有受到损坏,速度很快。 4、等待网络修好:) 5、另:感谢A.E告诉我eclipse也可以支持! …… 由于急需一些开源项目的cvs代码,以上途径又不太现实,所以还是另想办法。 但令人高兴的是,我可以用http代理通过浏览器查看sourceforge的ViewVC工具所提供的cvs代码,这给我了很大的启发,准备利用 ViewVC来下载源代码。随后就分析ViewVC生成的页面,我们这里以lib3ds.cvs.sourceforge.net作为例子。 打开页面以后呈现在面前的是一个目录结构,点击进入下一层目录,可以看到ViewVC为我们输出了目录和文件。每一个目录和文件都有一个超链接,如果单击目录的话会进入下一层目录,而点击文件会进入文件的详细说明(例http: /

使用AStyle进行代码格式化

天大地大妈咪最大 提交于 2019-11-26 15:02:58
使用AStyle进行代码格式化 在日常的编码当中,大家经常要遵照一些设计规范,如命名规则、代码格式规范等等。或者大家在看一些别人写的代码时,若代码格式不是很规范时,看起来是比较麻烦的。 今天就给大家介绍一款名为AStyle的代码格式化工具,Astyle是一个开源代码格式化工具,可以使大家在日常开发中非常方便的调整大家的代吗格式。支持多种开发语言, 支持多种格式化风格,本文主要简单介绍下怎样通过简单的几个步骤同Visual Studio的IDE进行集成,进行代码格式化。好了,入题: 第一步。下载最新版本的Astyle. 当前最新版本是Artistic Style 2.02. 可以使用以下连接下载最新版本: http://sourceforge.net/projects/astyle/files/ 第二步。把AStyle.exe复制到Visual Studio安装目录下的外部工具目录 下载后加压AStyle_2.02.1_windows.zip,把其中Bin目录下的AStyle.exe复制到Visual Studio的安装目录下的外部工具目录,我使用的是VS2008,就是以下路径: C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools,其它版本的路径基本相似。 压缩包中包含源代码,你也可以自行编译生成AStyle.exe.