SA-MP Forums Archive
"Recent pastes" script - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: "Recent pastes" script (/showthread.php?tid=542729)



"Recent pastes" script - SKAzini - 21.10.2014

Well, when I am bored, I go to pastebin.com and look at every recent public paste in the quest of finding something funny or interesting. I've now automatized this which means less mouse slitage!

Jokes aside, it was pretty fun making this simple but useful (ok, only to me I know) script.

Show me!!: http://cityofsantos.com/pastebin.php

Takes like 10 seconds to initialize, be patient.

Process:
At first, I made a program in VB.NET which would dump the 250 most recent pastes from the Pastebin archive into a MySQL database, then I would print the data from the first entry into an Ajax page. After a while, I realized that this is very inefficient and I decided to scrap the program part and make a script solely based on Jquery/JS/Ajax. I created a local PHP CORS proxy and used that to load the Pastebin data. However, this used too much bandwidth if multiple people were running the script (~62kb/s * requests/min * people).
I searched ****** (oh ******<3) for online CORS proxies, and I found corsproxy.com which fit my requirements very well! I switched over to that and the data loading is no longer on the local server. Made some finishing touches to the design and there it is. What now?

TLDR: You lazy person! >:[

Bye


Re: "Recent pastes" script - ExtremeHostOwner - 21.10.2014

VB.Net scripting is like PAWNO scripting?


Respuesta: Re: "Recent pastes" script - JustBored - 21.10.2014

Quote:
Originally Posted by ExtremeHostOwner
Посмотреть сообщение
VB.Net scripting is like PAWNO scripting?
VB.Net is COMPLETELY different to PAWN.

An example: Dim result1 As DialogResult = MessageBox.Show("Is Dot Net Perls awesome?", _
"Important Question", _
MessageBoxButtons.YesNo)


Re: "Recent pastes" script - ExtremeHostOwner - 21.10.2014

Oh I thought to learn it


Re: "Recent pastes" script - KingHual - 21.10.2014

>visual basic


Respuesta: Re: "Recent pastes" script - JustBored - 21.10.2014

Quote:
Originally Posted by ExtremeHostOwner
Посмотреть сообщение
Oh I thought to learn it
Even though the syntax is not very similar to PAWN's it's a good language to learn. If you want a language that its syntax is like PAWN you should learn C.


Re: "Recent pastes" script - caoraivoso3 - 21.10.2014

The empty mind is the devil's office.
(Souns better in portuguese)