Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: jr2 on September 16, 2007, 02:11:09 pm

Title: HLP Pastebin
Post by: jr2 on September 16, 2007, 02:11:09 pm
I've made two new private pastebins for us: (Anyone can use them, but the site names are rather specific to us, and I've already posted in both of them.  ;) )

http://fsscp.pastebin.com/

and

http://www.hard-light.net.pastebin.com/
(this one I am going to use for viewing hash file / FS2 dir command outputs of users trying to debug their systems)

Pastebin's source code is freely available (http://www.hard-light.net.pastebin.com/pastebin.tar.gz) under a GPL license.

Pastebin has built-in anti-spam features (just click the "report spam" link found at the top of every post... I don't think this should be much of a problem, but the option is there if it becomes one.  :D )

Pastebin supports syntax highlighting for these programming languages: (C, C++, and Lua are in there ;) )

Pastebin allows you to download the posts as files, complete with the correct file type extension (as long as the correct language was chosen for the syntax highlighter!)

Plain Text, ABAP, ActionScript, Ada, Apache Log File, AppleScript, ASM (NASM based), ASP, AutoIt, Bash, Blitz Basic, BNF, C, C for Macs, CAD DCL, CAD Lisp, C++, C#, ColdFusion, CSS, D, Delphi, Diff, DOS, Eiffel, Fortran, FreeBasic, Genero, Game Maker, Groovy, Haskell, HTML, IDL, INI, Inno Script, Java, Javascript, Latex, Lisp, Lua, MatLab, M68000 Assembler, MPASM, mIRC, MySQL, NullSoft Installer, Objective C, OCaml, Openoffice.org BASIC, Oracle 8, Pascal, Perl, PHP, PL/SQL, Python, QBasic/QuickBASIC, Rails, Robots, Ruby, Scheme, Smalltalk, Smarty, SQL, TCL, VisualBasic, VB.NET, VisualFoxPro, XML, Z80 Assember

The Pastebin homepage (the one the general public uses if they don't want a "private" pastebin) is here: http://pastebin.com/

NOTE: Pastebin doesn't appear to keep more than 10 "recent posts", and does not have a Search engine ATM, so using links looks to be necessary.

Pastbin help / FAQ:

Quote from: http://pastebin.com/pastebin.php?help=1
What is pastebin?

pastebin is here to help you collaborate on debugging code snippets. If you're not familiar with the idea, most people use it like this:

    * submit (http://pastebin.com/) a code fragment to pastebin, getting a url like http://pastebin.com/1234
    * paste the url into an IRC or IM conversation
    * someone responds by reading and perhaps submitting a modification of your code
    * you then view the modification, maybe using the built in diff tool to help locate the changes

How can I view the differences between two posts?

When you view a post, you have the opportunity of editing the text - this creates a new post, but when you view it, you'll be given a 'diff' link which allows you to compare the changes between the old and the new version

This is a powerful feature, great for seeing exactly what lines someone changed
How can I delete a post?

If you clicked the "remember me" checkbox when posting, you will be able to delete post from the same computer you posted from - simply view the post and click the "delete post" link.

In other cases, contact us and we will delete it for you
What's a private pastebin and how do I get one?

You get a private pastebin simply by thinking up a domain name no-one else is using, e.g. http://private.pastebin.com or http://this-is-my.pastebin.com. Posts made into a subdomain only show up on that domain, making it easy for you to collaborate without the 'noise' of the regular service at http://pastebin.com

All you need to do is change the web address in your browser to access a private pastebin, or you can simply enter the domain you'd like below.

Go to http://_______.pastebin.com

Please note that there is no password protection - subdomains are accessible to anyone who knows the domain name you've chosen, but we do not publish a list of domains used.
Subdomains for your language...

If a subdomain matches a language name, the required syntax highlighting is selected for you, so ruby.pastebin.com will preselect Ruby automatically.

Plain Text, ABAP, ActionScript, Ada, Apache Log File, AppleScript, ASM (NASM based), ASP, AutoIt, Bash, Blitz Basic, BNF, C, C for Macs, CAD DCL, CAD Lisp, C++, C#, ColdFusion, CSS, D, Delphi, Diff, DOS, Eiffel, Fortran, FreeBasic, Genero, Game Maker, Groovy, Haskell, HTML, IDL, INI, Inno Script, Java, Javascript, Latex, Lisp, Lua, MatLab, M68000 Assembler, MPASM, mIRC, MySQL, NullSoft Installer, Objective C, OCaml, Openoffice.org BASIC, Oracle 8, Pascal, Perl, PHP, PL/SQL, Python, QBasic/QuickBASIC, Rails, Robots, Ruby, Scheme, Smalltalk, Smarty, SQL, TCL, VisualBasic, VB.NET, VisualFoxPro, XML, Z80 Assember

Syntax for above block of links (that I did not re-create) is: http://c.pastebin.com/ (replace "c" with language name, eg, "lua").  This will auto-select that language syntax for highlighting.  This does not appear to work with "private" pastebins.

And this is all free?

It will always be free, our hosting and maintenance costs are paid for through advertising.
Can I get the source?

The source code to this site is available under a GPL licence. You can download it here (http://pastebin.com/pastebin.tar.gz)

More news available on my blog (http://blog.dixo.net/category/pastebin/).
I have some feedback, who do I contact?

Use the feedback box in the sidebar or email [email protected] Dixon

Just to point out, there is also imagebin.org (http://imagebin.org/), which is very handy for posting a quick temporary screenshot.

--noted.  ;)  Thx.
Title: Re: Attention coders / bugfixers!! This may be helpful...
Post by: Wanderer on March 16, 2009, 04:25:31 pm
:bump:



I'm going to bump this as its starting to get rather tiresome to always search for this post every once in a while when pastebin(s) is needed.. stickyness might help of course...
Title: Re: HLP Pastebin
Post by: Topgun on March 16, 2009, 04:40:46 pm
I don't understand what this is.
Title: Re: HLP Pastebin
Post by: chief1983 on March 16, 2009, 04:57:53 pm
RTFP.
Title: Re: HLP Pastebin
Post by: Aardwolf on March 29, 2009, 11:10:45 am
So, what would we use this for? Error logs?
Title: Re: HLP Pastebin
Post by: Wanderer on March 29, 2009, 11:48:41 am
Error logs, fs2_open.log file extracts, code diffs (mainly on the scp bin), for transferring other text data...

For example... in collaborative scripting effors pastebins have proved to be very useful
Title: Re: HLP Pastebin
Post by: Colonol Dekker on July 08, 2009, 05:01:14 pm
What the heck does Pastebin do and what do i need to do to it?
Title: Re: HLP Pastebin
Post by: karajorma on July 08, 2009, 05:22:31 pm
If you want to cut and paste some text and have other people able to edit it, it's one of the best solutions around.

The main use is for passing code or tables to other team members so that they can fix them easily. It's especially useful when there are 2-3 people on IRC who might know how to solve your problem. It's much easier than posting here (or on an internal) or passing the files with FTP, etc.
Title: Re: HLP Pastebin
Post by: chief1983 on July 08, 2009, 11:13:44 pm
Just to point out, there is also imagebin.org, which is very handy for posting a quick temporary screenshot.
Title: Re: HLP Pastebin
Post by: Aardwolf on July 26, 2009, 05:01:31 pm
It might be nice to have tbl/tbm syntax highlighting... dunno how easy or hard that would be though
Title: Re: HLP Pastebin
Post by: chief1983 on July 26, 2009, 06:29:35 pm
Probably not possible at all unless someone writes their own pastebin.
Title: Re: HLP Pastebin
Post by: jr2 on July 27, 2009, 06:44:52 pm
Well, the source code is available.  I have no clue if it would be easy or even feasible for the programmers here to code it, though.
Title: Re: HLP Pastebin
Post by: chief1983 on July 27, 2009, 07:56:05 pm
Or write the highlighter and then submit it for addition to the official one, although it's uncommon so I don't know if they'd want to add it.  There is already a highlighter for Aranae though, that might be a place to start.
Title: Re: HLP Pastebin
Post by: chief1983 on February 23, 2010, 11:24:58 am
I unstickied this since it's really not too SCP specific, if you want the links somewhere I'd suggest putting the hard-light one in the troubleshooting area and the fsscp one in the top nav, but Fury doesn't think it's needed, so tell him if you want it there :P
Title: Re: HLP Pastebin
Post by: jr2 on February 23, 2010, 12:33:41 pm
Hmm, I think if people want it they'll ask.. I can't speak for them as I don't code.  So guys (/ gals), if you use this and want links somewhere, ask Fury.  :nod: