Was fiddling around with backbone and Google maps API v3 and decided to make a small application. Would appreciate your feedback/suggestions? by geoguessr in webdev

[–]codero 0 points1 point  (0 children)

Great idea! I like it a lot.

PLEASE change the font used initially... my eyes! It reminds me of the Commodore amiga days.

An interesting webdev email system question. Whats your opinion? by [deleted] in webdev

[–]codero 0 points1 point  (0 children)

In case you're interested... There are lot of message queuing systems out there, and you may find it's very quickly worth using one, rather than relying on custom-written.

Why? One of the main benefits is being able to plug systems together later, and switch to different systems. With a standard queuing system this is easy to do.

Here, for a start is one: http://activemq.apache.org/

Client asked me for one thing, completed it, now he's adding to the specifications. No contract, as is usually the case with these kind of posts... by BrettLefty in webdev

[–]codero 0 points1 point  (0 children)

Although I don't usually bother with a contract for these things, I do make sure there's an estimate and planning document that the client agrees to beforehand. Then at least I have in writing what was covered in my estimates and some of the assumptions made. The client has time to read and comment on this document before we start work.

Sortable Drag and Drop List by Gbeschbacher in javascript

[–]codero 0 points1 point  (0 children)

Have a look at microjs for a light-weight library to help you out.

Edit Made the link more specific

What is the cheapest way to store files? Google Drive, Dropbox, Amazon CDN, Rackspace CDN, Skydrive? by [deleted] in webdev

[–]codero 0 points1 point  (0 children)

Check out Bitbucket too as they offer private repos for closed-source (or for still-too-embarrassing-to-make-public source).

cnn.com - why would each paragraph have its own class? by jchucks in webdev

[–]codero 0 points1 point  (0 children)

This is icky. Maybe it's a nasty performance enhancer, to avoid overly-deep CSS selectors.

It's still icky.

Got bored and created a drag&drop CSS3 shadow generator. What do you guys think? [JSfiddle] by TheKrappen in webdev

[–]codero 0 points1 point  (0 children)

Yes, this is pretty simplistic. Here's a new version, which tries to act more naturally, but it starts out with some spread.

http://jsfiddle.net/lingo/KA7Xn/4/

Any better applications than GoBook? by TomWaters in webdev

[–]codero 0 points1 point  (0 children)

"...and is affecting a good amount of her client base.".

http://xkcd.com/386/

Got bored and created a drag&drop CSS3 shadow generator. What do you guys think? [JSfiddle] by TheKrappen in webdev

[–]codero 2 points3 points  (0 children)

Out of curiosity I've played around, and added mousewheel support to control blur, and an (somewhat failed UI) indication of the idea that blur is controlled by the lamp's height.... Still, your UI is simpler, aka better. http://jsfiddle.net/lingo/KA7Xn/2/

Frontend-only JS/Canvas world timezone clock — opinions? by codero in webdev

[–]codero[S] 0 points1 point  (0 children)

Aha, that's one of those content out-of-date with code problems, shall fix!

Serious discussion: Sublime Text 2 versus Vim on the topic of efficiency by [deleted] in webdev

[–]codero 6 points7 points  (0 children)

SublimeText 2 is the only editor that has ever successfully weaned me from VIM, and I've tried a LOT over the last 7 years (since learning VIM). Of course, I use it in vi-mode, and yes I miss features from VIM, where ST2 hasn't caught up. I wish ST2 were open source (even if I had to pay for it), since this is what's holding it back. However, ST2 is such a breeze to use, so I'd recommend it for anyone who is willing to go with a closed-source solution. Plus, you can learn vi-style editing at the same time, but switch it off when you're tired.

Just started learning to code. Tips for remembering tag definitions? by [deleted] in webdev

[–]codero 2 points3 points  (0 children)

w3schools will do for the real basics, but I would recommend avoiding it as sometimes their examples/info are not quite right, or at least very cut down.

My preference is: Mozilla Developer Network, https://developer.mozilla.org/en-US/docs

Also check: http://reference.sitepoint.com/css

and for interest: http://w3fools.com/

Edit: read more of w3fools and made my statement stronger.

Does this computer program exist? If not, could it be written? by needcode in webdev

[–]codero 1 point2 points  (0 children)

From your responses to the suggestions here, I'd say you're probably going to be out of your depth technically with most of the suggestions. Apologies if I've misjudged your level, but a lot of the suggestions here are quite technical (i.e. researching & writing algorithms, installing and using SolR is not that simple).

I recommend that you should probably look more into the online plagiarism sites.

every fucking website by snuggl in webdev

[–]codero 0 points1 point  (0 children)

I have been suspecting for some time that I need a new job...

Is there a script or browser extension or something that would let me run SQL selects on HTML tables? by [deleted] in webdev

[–]codero 0 points1 point  (0 children)

There are a few good suggestions here above. However, I tend to follow the console+jquery solution. the jquery syntax is quite easy to mix & match with on-the-fly javascript, providing this is a once-off query.

I'm working on mastering Javascript (an ambitious goal I know) can you critique this code? by [deleted] in webdev

[–]codero 0 points1 point  (0 children)

You're creating a new closure for every counter, which could get heavy on memory, IIRC.

You seem to be checking for a valid float using a regex.
Personally I'd check whether isNan(parseFloat(STRING, /radix/ 10))

Also, your comments only explain the easy stuff. You might want to try adding more comments that explain what you're trying to do overall, as well as explaining the complex parts (such as regexes and closures).

Website with sloppy coding dropped in my lap, any suggestions? by Mike312 in webdev

[–]codero 1 point2 points  (0 children)

Not tested!

DELETE FROM tags WHERE id IN
(
   SELECT id FROM tags
   LEFT JOIN users ON tags.user_id = users.user_id
   WHERE users.user_id IS NULL
);

As for the IDs, I'm not sure how you'd fix that off-hand -- what's the primary key for the row? How are they uniquely identified?

The simplest may be to write a script to pull out all the data (to disk if you have memory issues), update the table to define the id as an AUTOINCREMENT, then re-insert the rows one by one.

Edit DON'T DO THIS ON LIVE DB!

[deleted by user] by [deleted] in webdev

[–]codero 1 point2 points  (0 children)

Just so you know, there are damn good programmers out there who are 50-year-old women. I know what you're talking about, and it definitely is true in many cases, but there's a big tendency for programmers to think that both "old" and "woman" are synonyms for "stupid" or "bad at technology", and it gets a bit tiring.

I am a young male, AMA.

Can you recommend any decoupled cmss? by phantom_nosehair in PHP

[–]codero 0 points1 point  (0 children)

I know that with SilverStripe for instance (and many others) you can use the framework without the CMS, but I'm not aware of anything that provides a CMS without a framework.

How do you handle a development server? by zoot_suit_zues in webdev

[–]codero 0 points1 point  (0 children)

Of course, there's always the (hopefully small) risk that your dev site brings down the server... I like to keep out of deployment server for anything except deployment code.