Welcome aboard Visitor...

Daily Screenshot

Server Costs Target


9% of target met.

Latest Topics

- Anyone still playing from a decade ago or longer? »
- Game still active. NICE! »
- Password resett »
- Darkspace Idea/Opinion Submission Thread »
- Rank Bug maybe? »
- Next patch .... »
- Nobody will remember me...but. »
- 22 years...asking for help from one community to another »
- DS on Ubuntu? »
- Medal Breakpoints »

Development Blog

- Roadmap »
- Hello strangers, it’s been a while... »
- State of DarkSpace Development »
- Potential planetary interdictor changes! »
- The Silent Cartographer »

Combat Kills

Combat kills in last 24 hours:
No kills today... yet.

Upcoming Events

- Weekly DarkSpace
05/04/24 +50.4 Minutes

Search

Anniversaries

1st - Alamode

Social Media

Why not join us on Discord for a chat, or follow us on Twitter or Facebook for more information and fan updates?

Network

DarkSpace
DarkSpace - Beta
Palestar

[FAQ
Forum Index » » Soap Box » » Web Tools
 Author Web Tools
kenetiks
Admiral
Galactic Navy


Joined: November 21, 2001
Posts: 1130
From: Bandcamp
Posted: 2009-12-23 20:15   
I'm building a new website to host various tools and other such nifty things.

The reason I'm creating these is for a couple of reasons.

First, it's an experiment. It's enjoyable to me to work with php/mysql and I desperately need some sort of hobby to take up my time during downtime.

The second is simplicity. A lot of sites concentrate on one thing only or go overboard and try to do everything. My intention is not to replace these sites nor is that my expectation. I just wanted something streamlined that I myself would use, without all the other bells and whistles that tend to get in the way or sidetrack you.

These are meant to be as basic as possible.

Two of these tools are online now.

The first of which is a quick image uploader.
http://kenetiks.host56.com/image

If you want to put an image up online quickly without having to register at other large image hosting sites then give it a try. It currently, only supports jpg,png and gif image types. I'll get around to extending it later. But for now, it will work great for sigs, etc. and you can go up to 1mb file size(which I can raise if it's called for).

Second is the paste-bin.
http://kenetiks.host56.com/pastebin

A paste bin is a collaborative tool used by programmers. Rather than emailing code back and forth they can "paste" a piece of code onto a website and give the link to a friend or colleague to review. It's currently set up to highlight the syntax's for several popular languages, php, python, c, c++, c#, html, javascript, perl, etc. I'll be adding more to the menu later.

I'll be adding more tools as I think of them.

Please send me a message with any bugs, suggestions for tools or to just flame me.

Edit: Changed hosts, altered links.

[ This Message was edited by: kenetiks on 2010-01-03 19:59 ]
_________________


  Email kenetiks   Goto the website of kenetiks
JBud
Marshal

Joined: February 26, 2008
Posts: 1900
From: Behind you.
Posted: 2009-12-23 20:55   
Oi Kenetiks, add me to your links!

JBud's DarkSpace Fan-Site http://ds.jbud.org/

I'll add you to mine

[ This Message was edited by: JBud, the Red-Nosed Dreadnought on 2009-12-23 20:56 ]
_________________
[-Point Jumper-][-Privateer Elite-][-Summus Dux-][-Praeclarae-]
[img(RIP MY SIGNATURE DELETED AFTER 7 YEARS/img]
''Insisto Rector - Suivez le Guide - Tempus hostium est''

  Email JBud   Goto the website of JBud
kenetiks
Admiral
Galactic Navy


Joined: November 21, 2001
Posts: 1130
From: Bandcamp
Posted: 2009-12-23 21:00   
Done.
_________________


  Email kenetiks   Goto the website of kenetiks
BackSlash
Marshal
Galactic Navy


Joined: March 23, 2003
Posts: 11183
From: Bristol, England
Posted: 2009-12-23 21:08   
I coulda saved you some time on the pastebin =(...

http://pastebin.com software is freely available to download and implement here!

Also, nice site design!
_________________


kenetiks
Admiral
Galactic Navy


Joined: November 21, 2001
Posts: 1130
From: Bandcamp
Posted: 2009-12-23 21:30   
Quote:

On 2009-12-23 21:08, BackSlash wrote:
I coulda saved you some time on the pastebin =(...

http://pastebin.com software is freely available to download and implement here!

Also, nice site design!




Actually, it didn't take that much time. The syntax highlighting is done via GeSHi(I stand on the shoulders of giants, as it were). I will however probably extend the pastebin to include replies/corrections which is simple enough to implement.

And thanks, although the template was made by someone else and can be found @ http://oswd.org I don't remember the author offhand but the templates name is metrohacker.
_________________


  Email kenetiks   Goto the website of kenetiks
JBud
Marshal

Joined: February 26, 2008
Posts: 1900
From: Behind you.
Posted: 2009-12-23 21:40   
Quote:

On 2009-12-23 21:30, kenetiks wrote:
Quote:

On 2009-12-23 21:08, BackSlash wrote:
I coulda saved you some time on the pastebin =(...

http://pastebin.com software is freely available to download and implement here!

Also, nice site design!




Actually, it didn't take that much time. The syntax highlighting is done via GeSHi(I stand on the shoulders of giants, as it were). I will however probably extend the pastebin to include replies/corrections which is simple enough to implement.

And thanks, although the template was made by someone else and can be found @ http://oswd.org I don't remember the author offhand but the templates name is metrohacker.



I have a bit of a project too for syntax highlighting and code sharing, it's at http://code.jbud.org/

I made the pages and I'm dreadful with actual page design but the background functions is what I focused on.. people can mark their scripts as public share links and let others edit them, all scripts are stored in a mysql database, I also got the source up for grabs at http://dl.jbud.org/
[ This Message was edited by: JBud, the Red-Nosed Dreadnought on 2009-12-23 21:43 ]
_________________
[-Point Jumper-][-Privateer Elite-][-Summus Dux-][-Praeclarae-]
[img(RIP MY SIGNATURE DELETED AFTER 7 YEARS/img]
''Insisto Rector - Suivez le Guide - Tempus hostium est''

  Email JBud   Goto the website of JBud
kenetiks
Admiral
Galactic Navy


Joined: November 21, 2001
Posts: 1130
From: Bandcamp
Posted: 2009-12-23 21:52   
It error'ed me.

FATAL ERROR: act.php mode unset.

Perhaps it choked when I pasted php into it. I didn't see a radio button for php but tried it anyway.

I like the codemirror JS you have running, I'm going to take a look at it.

If it did choke and try to run the php, you should clean the input before storing it or sending it out(if you're already doing this disregard that statement).




_________________


  Email kenetiks   Goto the website of kenetiks
JBud
Marshal

Joined: February 26, 2008
Posts: 1900
From: Behind you.
Posted: 2009-12-23 22:28   
Yea, I'm still moving everything to a new server, sorry... I had it looking for the wrong database or rather, the wrong port... The last server had mysql installed on 3305 instead of the standard 3306 so it was just getting false from the db querys.. anyways fixxed now.
_________________
[-Point Jumper-][-Privateer Elite-][-Summus Dux-][-Praeclarae-]
[img(RIP MY SIGNATURE DELETED AFTER 7 YEARS/img]
''Insisto Rector - Suivez le Guide - Tempus hostium est''

  Email JBud   Goto the website of JBud
JBud
Marshal

Joined: February 26, 2008
Posts: 1900
From: Behind you.
Posted: 2009-12-24 16:18   
It's not the best but it's much better than the old system I had. The old ScriptShare stored scripts in text files, it worked, but was way inefficient, it was also alot uglier http://code.jbud.co.cc/backup1.1/index.php?file=4b33e5d2eb41c.lua http://code.jbud.co.cc/backup1.1/add.html The new 2.0 version is much faster and only generates files on your server if a download is requested, the scripts are stored in a database instead. I'm working on adding an expiration date or a script that runs every so often to delete all the files generated by downloads, but until I get that figured out you can do so through the admin panel also i added a cool little tool that will be in the 2.1 with the auto download file deleter, support for php, javascript and a handfull more and whatever else i can cook up http://code.jbud.org/rand.php just grabs a random script from the database, checks if it's public, if so then it shows it, if not it will grab another script and another until a public one is found..


PS: we demand more pics of kenetiks jr.!
[ This Message was edited by: JBud, the Red-Nosed Dreadnought on 2009-12-24 16:24 ]
_________________
[-Point Jumper-][-Privateer Elite-][-Summus Dux-][-Praeclarae-]
[img(RIP MY SIGNATURE DELETED AFTER 7 YEARS/img]
''Insisto Rector - Suivez le Guide - Tempus hostium est''

  Email JBud   Goto the website of JBud
kenetiks
Admiral
Galactic Navy


Joined: November 21, 2001
Posts: 1130
From: Bandcamp
Posted: 2009-12-24 21:01   
Quote:

On 2009-12-24 16:18, JBud, the Red-Nosed Dreadnought wrote:
It's not the best but it's much better than the old system I had. The old ScriptShare stored scripts in text files, it worked, but was way inefficient, it was also alot uglier http://code.jbud.co.cc/backup1.1/index.php?file=4b33e5d2eb41c.lua http://code.jbud.co.cc/backup1.1/add.html The new 2.0 version is much faster and only generates files on your server if a download is requested, the scripts are stored in a database instead. I'm working on adding an expiration date or a script that runs every so often to delete all the files generated by downloads, but until I get that figured out you can do so through the admin panel also i added a cool little tool that will be in the 2.1 with the auto download file deleter, support for php, javascript and a handfull more and whatever else i can cook up http://code.jbud.org/rand.php just grabs a random script from the database, checks if it's public, if so then it shows it, if not it will grab another script and another until a public one is found..


PS: we demand more pics of kenetiks jr.!
[ This Message was edited by: JBud, the Red-Nosed Dreadnought on 2009-12-24 16:24 ]




If you don't mind a little critique, you should move the navigation from the bottom to the top via tables or layers.

Also, although I didn't check everything, the script spits out errors if everything isn't just right. You should run some more data validation. Along with that, the error messages sent to the users browser should tell the user what has happened to save confusion.

I see your running different php file for different functions(http://yoursite/index.php, yoursite/rand.php, etc). You could streamline these. Or use a framework. CodeIgniter for example. CI separates all of your raw php and then sends the data into the view(html) to be displayed. It also contains libraries for input and form validations already, so no need to do it from scratch. CI itself contains some nifty libraries. It's not as large as PEAR or Zend. But it's light and friendly.

The one thing that does stand out to me about your pastebin is the live code editor/highlighter. Personally, I love the idea of using that.

And lol. I'll get some more pics uploaded soon.
_________________


  Email kenetiks   Goto the website of kenetiks
JBud
Marshal

Joined: February 26, 2008
Posts: 1900
From: Behind you.
Posted: 2009-12-24 22:00   
Quote:

On 2009-12-24 21:01, kenetiks wrote:
Quote:

On 2009-12-24 16:18, JBud, the Red-Nosed Dreadnought wrote:
sneep
[ This Message was edited by: JBud, the Red-Nosed Dreadnought on 2009-12-24 16:24 ]




If you don't mind a little critique, you should move the navigation from the bottom to the top via tables or layers.


good idea
Quote:


Also, although I didn't check everything, the script spits out errors if everything isn't just right. You should run some more data validation. Along with that, the error messages sent to the users browser should tell the user what has happened to save confusion.


There is a couple dead ends... It should give explination like password incorrect but there is one like mode unset that's actually not a problem that would be encountered unless it was installed incorrectly (like I did) in 2.1 I added an admin email address so if anyone does get stuck they have a contact
Quote:

I see your running different php file for different functions(http://yoursite/index.php, yoursite/rand.php, etc). You could streamline these. Or use a framework. CodeIgniter for example. CI separates all of your raw php and then sends the data into the view(html) to be displayed. It also contains libraries for input and form validations already, so no need to do it from scratch. CI itself contains some nifty libraries. It's not as large as PEAR or Zend. But it's light and friendly.

Yea, they pretty much required the differant files, I have all the functions in core.php and the other files open it like a framework... I could dump them all into an index.php, have the modes set by $_GET[] but that would be a pain, and I'd have to keep a couple like edit.php or add.html header ect anyway so it wouldn't change much...
Quote:

The one thing that does stand out to me about your pastebin is the live code editor/highlighter. Personally, I love the idea of using that.

And lol. I'll get some more pics uploaded soon.


hehe



also, I finnished up with 2.1 I got support for perl php and javascript implemented and some other things, you can grab it here: http://dl.jbud.org/ScriptShare2.zip
[ This Message was edited by: JBud, the Red-Nosed Dreadnought on 2009-12-24 22:06 ]
_________________
[-Point Jumper-][-Privateer Elite-][-Summus Dux-][-Praeclarae-]
[img(RIP MY SIGNATURE DELETED AFTER 7 YEARS/img]
''Insisto Rector - Suivez le Guide - Tempus hostium est''

  Email JBud   Goto the website of JBud
JBud
Marshal

Joined: February 26, 2008
Posts: 1900
From: Behind you.
Posted: 2009-12-27 02:54   
You may be interested in a couple services I just added,

I have an image host: http://img.jbud.org/

and a short url service: http://u.jbud.org/

a couple open source tools I found would be quite useful
got the image host here: http://www.scripteen.com/scripts/scripteen-free-image-hosting-script.html and the url service here: http://lilurl.sourceforge.net/
_________________
[-Point Jumper-][-Privateer Elite-][-Summus Dux-][-Praeclarae-]
[img(RIP MY SIGNATURE DELETED AFTER 7 YEARS/img]
''Insisto Rector - Suivez le Guide - Tempus hostium est''

  Email JBud   Goto the website of JBud
kenetiks
Admiral
Galactic Navy


Joined: November 21, 2001
Posts: 1130
From: Bandcamp
Posted: 2010-01-03 08:51   
Sorry it took so long for a reply.

By framework I meant a collection of prefab, commonly used functions.

For instance, urls. CI contains a set of helpers you can load.

$this->load->helper('url');

Which you can then use like so.

echo site_url("controller/function");

echo would output: http://yoursite.com/controller/function/

It also uses MVC(Model View Controller), and segmented based urls. So no yoursite.com/index.php?var1=string&var2=int

Simply call yoursite.com/controller/function/var1/var2/

Using open source scripts are great. I'm a massive fan of OSS. But I usually don't use anything prefab, except for framework and libraries(like GeSHi to output syntax highlighting) that are too massive for me to write on my own.


Like I said, I'm a hobbiest and not a great one at that.
_________________


  Email kenetiks   Goto the website of kenetiks
kenetiks
Admiral
Galactic Navy


Joined: November 21, 2001
Posts: 1130
From: Bandcamp
Posted: 2010-01-03 20:06   
Changed web hosts on the website.

I did this for several reasons, the new host is safemode off. Which allows me to fopen() a url and doesn't have the mail functions disabled.

The old site was http://kenetiks.99k.org the new url is http://kenetiks.host56.com.

If you want to change your link JBud. Thanks.
_________________


  Email kenetiks   Goto the website of kenetiks
Page created in 0.017871 seconds.


Copyright © 2000 - 2024 Palestar Inc. All rights reserved worldwide.
Terms of use - DarkSpace is a Registered Trademark of PALESTAR