Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / I've launched a codebase - anyone interested?

Author
Message
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 7th Jun 2007 11:24
Thanks Phaelax (and whoever it was that emailed me about it too). IE6 is truly a god-awful browser.

The site is working in it now. IE5.55 and IE5.01 are doing something rather freaky with the padding... IE4 barely loads it at all.

I'll look into that at some point, although does anyone use anything less than IE6 anymore?!

[center]
Phaelax
DBPro Master
21
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 8th Jun 2007 02:41
Quote: "IE4 barely loads it at all."


I don't think anyone uses 4 anymore, typically at least 5 or higher, 6 most likely being the dominant.


Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Jun 2007 17:59 Edited at: 8th Jun 2007 18:08
Progress update:
I've just got my code highlighter working and improved (in terms of efficiency - was one of those things where you look back at 1 year old code and think "WTF WAS I THINKING?").

It will highlight (core) commands, numbers, strings and remarks. This is an alpha release of the highlighter - the V2 release will have it link to an online API in the same way api.drupal.org does (for example a simple Drupal function drupal_get_path which contains two types of highlighting/parsing - one links to php.net and the other refers to other API commands).

[center]
Diggsey
18
Years of Service
User Offline
Joined: 24th Apr 2006
Location: On this web page.
Posted: 8th Jun 2007 20:31
@Nicholas Thompson
It's very good, but at the moment, it is a little annoying that every search displays the results in a different way!
It would be much better if every search just displayed a table of results with information such as number of comments, rating, title, description, relevance, etc. I imagine this would be difficult, but it can be difficult to get around at the moment...

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Jun 2007 23:34
A table idea is a very good one - I'll add it to the to do list.

For now - I'm not sure I understand where the confusion is. Take, for example, this page:
http://codebase.dbp-site.com/recent/code

That's simply a list of "nodes" which are in "teaser" view (ie short view, not full). That should be the same format view all lists have - eg when viewing entries by category.

[center]
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Jun 2007 01:14
I've redone some of the page structure + I've changed - as suggested - the layout of the "recent code" pages. I'll do the same for tags/category pages if you think its a better layout.

I've also added a new block + section, "Highest Rated".

Currently Ric's 6 line download script is winning

[center]
Code Dragon
18
Years of Service
User Offline
Joined: 21st Aug 2006
Location: Everywhere
Posted: 9th Jun 2007 14:44
How about adding a 'copy to clipboard' button above the code boxes so we can get code running faster?

You never really know a person until you look at their google autocomplete entries.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Jun 2007 17:15
I'll look into it - the problem is that there are severe security risks in allowing browsers access to the clipboard (for example, if you have a password or Serial Number on the clipboard which you copy and pasted into a program - it'd be pretty careless of the browser designer to allow access to such a system resource.

Saying that - I know IE6 can access the clipboard

I'll take a look - I was considering going down the route of adding a link to download it as a file.

[center]
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 9th Jun 2007 17:49
Why not just do what all the Google services do, and have it so when you click inside the text box, all the text is automatically selected for you, then all you have to do is Copy

Nintendo DS & Dominos :: DS Dominos
http://jt0.org
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Jun 2007 18:37 Edited at: 9th Jun 2007 18:55
not a bad idea - thing is, when Google (and other services) do that, they use a TextField. AFAIK you can "code highlight" in a Textfield... I will look into it though.

EDIT: http://urltea.com/
In IE, there is an 'execCommand("copy")' feature which simply copies stuff into the clipboard. Other browsers, being more security concious, require you to use a flash embedded object to do the same thing.

[center]
soapyfish
21
Years of Service
User Offline
Joined: 24th Oct 2003
Location: Yorkshire, England
Posted: 9th Jun 2007 19:13
Spelling mistake on the home page

Quote: "Welcome to Codebase. This is a community driven website where every snippet is a short program which someone though would be useful for other people. In other words - a site driven by the passion to help others."


Don't want it to look like I'm nit-picking, just thought you'd like to know.

We are the angry mob, we read the papers every day. We like who we like, we hate who we hate but we're also easily swayed!
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Jun 2007 19:16
Oh yeah - i meant to change that last night Thanks soapy

[center]
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Jun 2007 19:55
Clipboard 'Copy & Paste' is now working. In IE this is thanks to a security hole. In FF+Others this is thanks to a 100byte Flash file.

You should all see a "Copy To Clipboard" link under each codebox - hitting that will put the contents of the box into the clipboard...

Just checking in IE6 now.

[center]
Jeku
Moderator
21
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 9th Jun 2007 22:12
Wow, nice site I never thought I'd give it a try, as I hate registering for sites. But this one is really nice, and I love the colour scheme

Please people, pretty please comment your code. I've come across lots of code samples with long physics functions or other complicated algorithms with absolutely no comments.

dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 9th Jun 2007 23:19
I think there might be an error with the code. IT seems that +'s are being removed or something. I just click copy this code.

http://codebase.dbp-site.com/code/robotic-arm-game-12#

The code is missing a whole bumch of +'s in the code when copied.
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 10th Jun 2007 00:39 Edited at: 10th Jun 2007 00:39
There's another mistake on the home page:

Quote: "Here are the most recent comments ten comments."


"Comments, ten comments, get your comments here."

Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 10th Jun 2007 02:46 Edited at: 10th Jun 2007 03:06
Jeku: Thanks

daibp: This is VERY odd - must be some kind of URL encoding issue... Thanks for pointing it out! Fyi, normal select and copy/paste works fine still - so it must be a javascript "feature". (Fixed now: Seems the contents of the box needed to be URI Encoded using the 'encodeURIComponent' function. Thanks for pointing this out daibp).

Benjamin - thanks, will fix (fixed now).

[center]
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 10th Jun 2007 05:19 Edited at: 10th Jun 2007 05:34
Update:

All user profile pages are now a little more "personal". I need to find a place to put the avatar back in - might add an "about me" profile field which will flow around it and fit in nicely at the top left.

Right.. 3:20am in the UK - gonna sleep

EDIT: Example: http://codebase.dbp-site.com/user/nick

EDIT 2: Seems "This User Comments" isn't quite right - its producing links to snippets by that user WITH comments - not COMMENTS by that user. Strange... Job for tomorrow.

[center]
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 12th Jun 2007 15:34
I've started adding a stack of tutorials to the snippets, with Nick's approval. You can find them under the "Tutorial" tag...

http://codebase.dbp-site.com/tags/tutorial

Nick, some things don't line up for me in IE6. For example, the Create Content link is in the bottom-right corner.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Jun 2007 16:11 Edited at: 12th Jun 2007 16:17
Cheers. I'll look into that. IE6 is SUCH a disobedient browser!

Curious - why are you still using it? Especially with the free "upgrade" browsers out there like Firefox 2 and Safari Beta 3 (two name a couple). I'd have thought someone in your "techi" position would have stopped using IE6 at the first chance they had.

EDIT: What the hell is IE6 doing to my lovely design? And more importantly, WHY ONLY IE6?!

[center]
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 12th Jun 2007 16:27
Oh boy... I just LOVE IE6 . Good luck with that.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Jun 2007 16:37
I've narrowed down the issue to something to do with IE6 not liking my combination of padding/margin. I'll have to poke it a bit - although if I had my way I wouldn't be poking it, more taking a sledgehammer to it.

In the grand scheme of things - it would make my life a lot easier if you guys just upgraded to IE7, FF or Safari hehe.

Cheers for pointing it out though.

[center]
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 12th Jun 2007 16:38 Edited at: 12th Jun 2007 16:39
Quote: "Curious - why are you still using it?"


I'm currently on my laptop at work. We have some really heavy stuff going on, that just doesn't work in IE7 yet. In fact, the company I'm working for were responsible for the biggest collection of open acknowledged bugs in IE6 at one stage.

In the commercial world, with big implementations of the low-level stuff, IE7 just doesn't hack it yet.

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Jun 2007 18:22
Ok - It seems to be working ok in IE6 and FF now.

If you have any issues, Try clearing your browser cache and maybe doing a force refresh of the page (Ctrl + F5 or Ctrl + R, depending on browser/OS - Ctrl+F5 on my Mac Book Pro starts adjusting screen brightness... Plus its Apple + R on OSX and Firefox). A normal refresh will only reload the page, force refresh will renew the CSS and images, etc.

Basically, the problem was IE's inability to interpret CSS rules correctly.

[center]
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 12th Jun 2007 19:19 Edited at: 12th Jun 2007 19:19
getting better, although some pages, such as Create Content, still don't quite hang together:



Attachments

Login to view attachments
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 12th Jun 2007 19:45
Have you force refreshed your browser? (Ie, Ctrl + F5)? Thats what I was getting till I force refreshed/emptied cache.

[center]
Zerk
18
Years of Service
User Offline
Joined: 13th May 2006
Location: Orbiting Jupiter
Posted: 26th Jun 2007 05:30 Edited at: 26th Jun 2007 05:31
Looks interesting. I'll give a look!

zParticle BETA is finally released!
<a href="http://www.battlecraft42.com/downloads/zParticleRelease_1.0b.rar>"zParticle BETA plugin for DarkBASIC Pro"</a>
Lukas W
21
Years of Service
User Offline
Joined: 5th Sep 2003
Location: Sweden
Posted: 28th Jun 2007 13:59 Edited at: 28th Jun 2007 14:00
Hi,
I really like the new codebase idea. But I have some suggestions regarding the new website: (remember these are my opinions, and should not be regarded as a standard layout for everyone to follow)

Color theme:
I would suggest switching to a different color theme, or atleast add a Select Theme option in your profile page. Personally I don't like black/dark color themes on a webpage.
If it's only me who feel this way, then don't bother with this. I can live with it. If I may suggest a color theme I would say a white/blue or white/orange.

Code Archive:
The code archive page is messed up (no offence).
it would be easier to read if the tables were different. example:


Other than that, it's great

jasonhtml
20
Years of Service
User Offline
Joined: 20th Mar 2004
Location: OC, California, USA
Posted: 1st Jul 2007 01:15
i agree with lukas about the color scheme. i dont like reading from dark websites...

dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 1st Jul 2007 02:31
But uh... we are using DarkBasic
dark coder
22
Years of Service
User Offline
Joined: 6th Oct 2002
Location: Japan
Posted: 1st Jul 2007 08:38
Also it seems to have died since Batvink spammed it with tutorials

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 3rd Jul 2007 10:11
Quote: "Also it seems to have died since Batvink spammed it with tutorials "


Spamming is what you do without the permission of the owner/recipient

Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 11th Jul 2007 11:34
Sorry about the delay in response guys - I went on holiday (Scotland is a LOVELY place!!)

I'm now back and going to be focussing on the site more.

A few people have expressed a "dislike" of the current theme. As this is the case, I'll try to develop a "lite" theme which you can set as an option in your profile. This will be a low priority for me as the current theme works and seems to be accepted by the majority. If any designer out there feels they can make an alternative then please feel free to do so. This is a community driven site and design is my weak point. If you do make a design, I'll eventually need either the original PSD (preferably) or at least a 24bit PNG so I dont lose quality. Obviously, any theme contribution WILL be acknowledged on the site.

I will add the options for more languages. Does anyone have a keyword list for DB? Does DB have the same syntax as DBP? I've never used it. How about FPSC - does that even have code or is it purely drag and drop (I've never used that either).

Remember guys, if you have an Adsense account you can enter your ID in your profile and any content you submit will benefit from an adsense revenue sharing scheme supported by the site. Should an adsense link be clicked on one of your pages, you get 50% of the revenue generated by that click.

I've had some idea's for the site... One of which is a banner linked to your profile. This is something which you could use on this forum. It would have a template background and then display the latest code entry you have made + your latest comment... How does that sound?

Lukas - thanks for your comments, I've changed that table - what do you think about it now?

[center]
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 11th Jul 2007 19:29
I know that FPSC has a scripting language. But I've never used it as well.
nanie
17
Years of Service
User Offline
Joined: 25th Jul 2007
Location:
Posted: 26th Jul 2007 05:01
great!!It's a wonderful theme


____________________________

dvd to iphone
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 11th Aug 2007 03:16 Edited at: 11th Aug 2007 03:17
I'm glad you like it, thanks.

Dont worry - I haven't forgotten about it, just been snowed under recently with a pending house move.

Code Dragon has recently added a REALLY cool Widescreen Function which handles letterboxing and pillarboxing automatically for you... neat!

edit: btw thanks for re-stickying it, whoever did that.

[center]
dab
20
Years of Service
User Offline
Joined: 22nd Sep 2004
Location: Your Temp Folder!
Posted: 11th Aug 2007 20:58
It just sank to the bottom of the stickied threads. But glad to hear you're still working on this.
Pyramid Games Ltd
17
Years of Service
User Offline
Joined: 23rd Aug 2007
Location: Line 21, DBP
Posted: 21st Sep 2007 03:11
Nice....

Aralox
17
Years of Service
User Offline
Joined: 16th Jan 2007
Location: Melbourne
Posted: 21st Sep 2007 12:03
I put something up!

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 17th Oct 2007 00:32 Edited at: 17th Oct 2007 00:34
nm

y2ksw
19
Years of Service
User Offline
Joined: 13th Nov 2005
Location:
Posted: 8th Nov 2007 16:51
Yup, nice idea.

Not much frequented though.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 9th Nov 2007 10:17
Unfortunately, no...

I've got loads of ideas for the site - just no time right now in my life. Spent the last couple of months adjusting to a new commute after moving home. Weekdays are spent commuting, working, commuting again, eating and then sleeping. Weekends tend to be spent either recovering from the week or just doing essential stuff I dont have time for during the week (like washing, etc).

I'd REALLY like to sink my teeth into this again soon!

[center]
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 22nd Nov 2007 15:01
I don't know if it's just me, but the preview page seems a bit messed up.

Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)

Attachments

Login to view attachments
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 15th Dec 2007 01:02
Sorry about the delay in response - my life's been pretty busy in the last few months. I do keep an eye on the site and still have plans for it... I just don't appear to have any time!

As for that graphical glitch - I've NEVER seen that. What browser were you using?

[center]
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 15th Dec 2007 01:48
Firefox 2.0.0.11.

Tempest (DBP/DBCe)
Multisync V1 (DBP/DBCe)
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 15th Dec 2007 02:10
Ahhh I've just realised why its doing that - there is a rogue/default value in the CSS. Basically when you preview a "node" is rendered as normal with the data you just provided, however its also classed as preview. In the default drupal CSS the '.preview' class has a bright pink background...

In any case - this is now fixed. Thanks for spotting it Benjamin!

[center]
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 5th Jan 2008 16:51 Edited at: 5th Jan 2008 19:18
Okay I contributed some code too now

Writing history with everyone else...

[edit]By the way, I can't see what I'm typing in the Tags box. The background is black, and so is the text...

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 8th Jan 2008 17:08
Thanks for contributing

What browser are you using? The box appears white with black text on mine (FF2 and IE7)

[center]
Sven B
19
Years of Service
User Offline
Joined: 5th Jan 2005
Location: Belgium
Posted: 13th Jan 2008 16:32
I am currently using Opera.

It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.
Nicholas Thompson
20
Years of Service
User Offline
Joined: 6th Sep 2004
Location: Bognor Regis, UK
Posted: 14th Jan 2008 23:29
I shall test it using Opera...

I have noticed some other weird things with Opera... For example, on www.pponline.co.uk those yellow marketting boxes have yellow textfield backgrounds - whereas NO other browsers do that!

[center]

Login to post a reply

Server time is: 2024-11-20 12:17:57
Your offset time is: 2024-11-20 12:17:57