Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

[Release] PasteBin Library for Submitting Pastes

It's a very simple library.

You can change the expiration of the paste, the content and title (obviously), the syntax highlighting, expiration and exposure. The only thing that you cannot do is login to your Pastebin account. Haven't gotten that far yet.

Tell me what everyone thinks!

How to use it (Click to View)

Download (Click to View)

Have fun!
Thread: Backend Web-Dev. - by SomeWhiteGuy

WATCH OUT 'LIL HOE,
MY PARTNA STILL SMOKE ON PAROLE
selling -
megabits.org + freakin.pro
Why not just release open source? [email=]You are not supposed to be reading this. Please do not continue reading and exit your browser immediately.[/email]
(Jun 15, 2012 07:43 PM)iRtehLeet™ Wrote:  Why not just release open source? [email=]You are not supposed to be reading this. Please do not continue reading and exit your browser immediately.[/email]

Because no one asked. Do you want the source?
Thread: Backend Web-Dev. - by SomeWhiteGuy

WATCH OUT 'LIL HOE,
MY PARTNA STILL SMOKE ON PAROLE
selling -
megabits.org + freakin.pro
Posting the source helps. I'd be interested in that more so than the DLL itself.
★ Qwazz has given me AIDS!

* Everything posted on this account is false. I do not condone drug usage or extraction. All pictures are made in photoshop and every post is made of fictional content.
Should make the parameter options(notice optional) to specify the shit already, bad explanation:
Here is what I mean.
Code
Dim P As New Paste(Content, Title)
'Or
Dim P As new Paste(Content, Title, Syntax)

Get it?
(Jun 15, 2012 08:33 PM)Deceptive Wrote:  Should make the parameter options(notice optional) to specify the shit already, bad explanation:
Here is what I mean.
Code
Dim P As New Paste(Content, Title)
'Or
Dim P As new Paste(Content, Title, Syntax)

Get it?

Yeah, would be nice.
Also, does it freeze the main thread if you use submit? I can imagine that it freezes a little on slow computers. Perhaps an event, like UploadComplete?

Anyways, this looks good as usual.
Whow soon you will see my program if im willing to do this :D but does this include like the Highlighting?

EDIT: ohh didn't see the other features sorry...
(Jun 15, 2012 08:33 PM)Deceptive Wrote:  Should make the parameter options(notice optional) to specify the shit already, bad explanation:
Here is what I mean.
Code
Dim P As New Paste(Content, Title)
'Or
Dim P As new Paste(Content, Title, Syntax)

Get it?

Updating it to include that. I was going to do that in the beginning but I just didn't really see a point.

(Jun 16, 2012 12:36 AM)Meerkat. Wrote:  Yeah, would be nice.
Also, does it freeze the main thread if you use submit? I can imagine that it freezes a little on slow computers. Perhaps an event, like UploadComplete?

Anyways, this looks good as usual.

I honestly doubt that it would freeze, it takes less than a second to upload. Your computer would have to be complete shit for it to freeze. It's extremely fast because it uses their API and not some random shit, lol.

If anyone runs into freezing then let me know and I'll make it multi-threaded of just add an event like you suggested.

I'm updating the library now so you can login to your account, list pastes from a user and some other things.
Thread: Backend Web-Dev. - by SomeWhiteGuy

WATCH OUT 'LIL HOE,
MY PARTNA STILL SMOKE ON PAROLE
selling -
megabits.org + freakin.pro
I don't mean freezing because their computer is shit, but what if you're on a dial up connection and you want to upload a paste? It'd freeze for a while :D
(Jun 17, 2012 11:35 AM)Meerkat. Wrote:  I don't mean freezing because their computer is shit, but what if you're on a dial up connection and you want to upload a paste? It'd freeze for a while :D

My connection is basically dial up, lol. I'm running < 1MB per second. 🤣
Thread: Backend Web-Dev. - by SomeWhiteGuy

WATCH OUT 'LIL HOE,
MY PARTNA STILL SMOKE ON PAROLE
selling -
megabits.org + freakin.pro
(Jun 17, 2012 11:37 AM)SomeWhiteGuy Wrote:  My connection is basically dial up, lol. I'm running < 1MB per second. 🤣

I have 25 mbit here, but when I'm on vacation I usually have like 6 kb/s download speed. It's absolute torture for me. I'm downloading movies, games, ... all the time and there I can't even check my email haha
(Jun 17, 2012 11:52 AM)Meerkat. Wrote:  I have 25 mbit here, but when I'm on vacation I usually have like 6 kb/s download speed. It's absolute torture for me. I'm downloading movies, games, ... all the time and there I can't even check my email haha

That fucking sucks, at my house I have about the same speed. Usually around 20MB/sec. I'm at my step-dads right now and the DL speed is like 20kb/sec. 😑
Thread: Backend Web-Dev. - by SomeWhiteGuy

WATCH OUT 'LIL HOE,
MY PARTNA STILL SMOKE ON PAROLE
selling -
megabits.org + freakin.pro
(Jun 17, 2012 11:54 AM)SomeWhiteGuy Wrote:  That fucking sucks, at my house I have about the same speed. Usually around 20MB/sec. I'm at my step-dads right now and the DL speed is like 20kb/sec. 😑

Lucky! I get like 600KB/s no matter what. I gotta convince my parents to move the modem into my room 😑
35MB/s DL and 6MB/s UL

Jealous?
I must haz 35 characterz what tis dis?
[Image: vfhNNbJ.gif]
Making it multithreaded is a good idea regardless of your net's speed. What if you want to make a bunch of pastes at once? It'll freeze up the GUI thread.

Or you could just leave the multithreading up to the user. It doesn't really matter =P.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by Panda™Jul 5, 2023 05:36 PM 6 182 Jul 5, 2023 05:36 PM
Last Post: Lookdadon
[Shell] by ɩᴄᴀʀᴜȿ ᴌוᴠᴇѕ™Mar 26, 2022 06:35 PM 8 474 Mar 26, 2022 06:35 PM
Last Post: Johnny Cache
[C#] by SIM-4100260Jan 26, 2021 08:53 PM 2 562 Jan 26, 2021 08:53 PM
Last Post: gigajew