简体   繁体   English

C(和C ++)SNIPPETS库在哪里?

[英]Where did the C (and C++) SNIPPETS library go?

Once, there was this awesome SNIPPETS library of C (and C++) code. 曾经,有这个令人敬畏的SNIPPETS C(和C ++)代码库。 I used it from 1995 on, but its origin is much older and it was updated until at least 2007 . 我从1995年开始使用它,但它的起源更古老,至少在2007年才更新 From time to time, I found that I needed a piece of code not from a library, but something I could cut and paste into my own projects. 我不时发现我需要一段不是来自图书馆的代码,而是我可以剪切并粘贴到我自己的项目中的代码。

To my horror, it's now gone. 令我恐惧的是,它现在已经消失了。 There are traces of it, dead links on SO for instance. 有它的痕迹,例如SO上的死链接

Can anybody find me a mirror, or an archive of it? 任何人都可以找到我的镜子或存档吗? I had an early version on my harddrive for years, but not any more. 多年来我在我的硬盘上有一个早期版本,但现在已经没有了。

Unfortunately, Bob Stout (the guy who put it together and was ultimately its sole maintainer) died in February; 不幸的是, Bob Stout (将它放在一起并且最终成为其唯一维护者的人)于2月去世; when the registration on the site's domain expired, it appears that nobody renewed it. 当网站域名注册过期时,似乎没人更新。 As far as I know, the site worked up until then, so it may still be there in the servers, just with no registration to make the name visible. 据我所知,该网站直到那时才开始工作,所以它可能仍然在服务器中,只是没有注册使名称可见。 If you could find a way to get ahold of him, Jon Guthrie would probably be the person who could get it up and running again (IIRC, he was largely responsible for putting it up on the web in the first place). 如果你能找到一种方法来获得他的支持,Jon Guthrie可能会成为能够让它重新开始运行的人(IIRC,他主要负责将其放在网上)。

I believe all the "released" versions of Snippets are available from IFDC FileGate in the PDNCEE area. 我相信所有“已发布”的Snippets版本都可以从PDNCEE区域的IFDC FileGate获得。 If there's enough interest, I could probably sort out the code that's still reasonably interesting from the basically-obsolete (purely MS-DOS), and put it up on Github or SourceForge or some such. 如果有足够的兴趣,我可能会从基本上过时的(纯粹的MS-DOS)中找出仍然相当有趣的代码,并将其放在Github或SourceForge或其他类似的代码上。

Other mirrors of the (1997) version of Snippets: (1997)版Snippets的其他镜像:

TL;DR TL; DR

Full github mirror of the code (Edited to point to github site, since first mirror died.) 完整的github镜像代码 (编辑指向github网站,因为第一个镜像死了。)


Since your ServerFault question was off topic, I thought I'd post this here; 由于您的ServerFault问题不在话题,我想我会在这里发布;

*puts on detective hat* *戴上侦探帽*

Well DNSHistory.org reports the domain snippets.org used to point to '206.251.38.37' up till 2011-04-02 (When did the domain go?) 那么DNSHistory.org报告域名snippets.org曾经指向'206.251.38.37'直到2011-04-02(该域何时进入?)

Using CURL to send the 'host' header to that server; 使用CURL将'host'标头发送到该服务器;

[samr@ocelot~]$ curl -I -H "Host:snippets.org" http://206.251.38.37/
HTTP/1.1 200 OK
Date: Thu, 24 Nov 2011 15:12:16 GMT
Server: Apache/2.2.9 (Debian) PHP/4.4.4-8+etch6 mod_ssl/2.2.9 OpenSSL/0.9.8g
X-Powered-By: PHP/4.4.4-8+etch6
Content-Type: text/html

gives us a response. 给了我们一个回应。 Next step, what does that page look like? 下一步,该页面是什么样的?

Well just getting the HTML and opening it in lynx; 好吧,只需获取HTML并在lynx中打开它;

[samr@ocelot~]$ curl -H "Host:snippets.org" http://206.251.38.37/ > snippets.org.html
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10319    0 10319    0     0  29500      0 --:--:-- --:--:-- --:--:-- 52583
[samr@ocelot~]$ lynx snippets.org.html

Gives the wonderful response of; 给出了精彩的回应;

SNIPPETS sponsors [MicroFirm.gif] Firmware, system, and sensors development [Sponsor.jpg] Click here to learn more [dmlogo.gif] SNIPPETS赞助商[MicroFirm.gif]固件,系统和传感器开发[Sponsor.jpg]点击此处了解更多[dmlogo.gif]
"Free C/C++ Compilers" [188x44_bss14.jpg] "High-Performance Version Control" “免费的C / C ++编译器”[188x44_bss14.jpg]“高性能版本控制”


  [logo.gif] Free educational resources on the Internet ______________________________________________________________________________________________________________________ Thursday, 24-Nov-2011, 15:13:22 GMT Last modified: 01-Apr-2007, 05:50:42 GMT 395594 visitors since 15-Jul-2002 __________________________________________________________________________ 

Mission: 任务:

SNIPPETS.ORG is dedicated to providing free informational and educational resources on the World Wide Web. SNIPPETS.ORG致力于在万维网上提供免费的信息和教育资源。 Currently, the two principle topics are programming and do-it-yourself (DIY) audio. 目前,两个主要的主题是编程和自己动手(DIY)音频。 The fields covered by SNIPPETS.ORG are generally technology and arts. SNIPPETS.ORG所涵盖的领域通常是技术和艺术。 As soon as enough free material is collected, new sections will be added related to photography and digital imaging. 一旦收集到足够的免费材料,将添加与摄影和数字成像相关的新部分。

The one common factor in everything you'll find on this site is that it's all free. 您在本网站上找到的所有内容中的一个常见因素是它都是免费的。 Programming source code is free. 编程源代码是免费的。 Tools and utilities are free. 工具和实用程序是免费的。 And, of course, information is always free. 当然,信息总是免费的。 While SNIPPETS.ORG provides many links to commercial sites, it is a not-for-profit operation - nothing here is for sale! 虽然SNIPPETS.ORG提供了许多商业网站的链接,但它是一个非营利性的操作 - 这里没有任何东西可以出售! If you wish to contribute content, information, or entire web sites to SNIPPETS.ORG, please contact me. 如果您希望向SNIPPETS.ORG提供内容,信息或整个网站,请与我联系。 [snip] [剪断]

So to answer your question, the domain used to point to '206.251.38.37', and the site (appears to) still exist. 所以为了回答你的问题,域名曾经指向'206.251.38.37',而网站(似乎)仍然存在。

Next thing; 下一件事; mirroring. 镜像。 The wget tool provides a --mirror flag to recursively download a website to a directory, which looks to be just what we're after. wget工具提供了一个--mirror标志,用于递归地将网站下载到一个目录,这看起来就像我们所追求的那样。

Started creating a mirror on my home server, but here's the command I'm using; 开始在我的家庭服务器上创建一个镜像,但这是我正在使用的命令;

wget --header="Host:snippets.org" --mirror -p --convert-links -P ./snippets.org/ http://206.251.38.37/

Then I extracted the files from the code directories and uploaded them to my mirror site http://mirror.rmg.io/snippets.org/ 然后我从代码目录中提取文件并将它们上传到我的镜像站点 http://mirror.rmg.io/snippets.org/

embedded.snippets.org reports as 'down for maintenance' so couldn't be spidered. embedded.snippets.org报告为'维护',因此无法进行蜘蛛追踪。

现在, 从archive.org找到的最新SNIPPETS档案副本仍然存在于Github

The link you point to is not dead; 你指向的链接并没有死; it's alive at archive.org: http://web.archive.org/web/20080217222203/http://c.snippets.org/ 这是活着的archive.org: http://web.archive.org/web/20080217222203/http://c.snippets.org/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM