posted 2 years ago

Canv.as-style CSS buttons

                button::-moz-focus-inner {
    border: 0;
    padding: 0;
}

button.basic {
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 2px solid #bbb;
    position: relative;
    background: #ddd;
    background: -moz-linear-gradient(top, #ddd 0%, #efefef 100%); /* firefox */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ddd), color-stop(100%,#efefef)); /* webkit */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ddd', endColorstr='#efefef',GradientType=0 ); /* ie */
    color: #222;
    cursor: pointer;
    outline: none;
    font-size: 18px;
    font-weight: bold;
    line-height: 1;
    padding: 8px 13px;
    box-shadow: 2px 2px 1px rgba(0,0,0,0.1);
}

button.basic:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    border-top: 1px solid #fff;
    border-left: 1px solid #fff;
}

button.basic:active {
    background: #bbb;
    background: -moz-linear-gradient(top, #ccc 0%, #ddd 100%); /* firefox */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ccc), color-stop(100%,#ddd)); /* webkit */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ccc', endColorstr='#ddd',GradientType=0 ); /* ie */
    padding: 9px 12px 7px 14px;
    box-shadow: none;
}

button.basic:active:before {
    border-color: #ddd;
}

@-moz-document url-prefix() {
    button.basic:before {
        top: -8px;
        left: -13px;
        height: 180%;
    }
    
    button.basic:active:before {
        top: -9px;
        left: -14px;
    }
}                
Raw

Have been messing around with CSS buttons for Around and was inspired to see if I could recreate the Canv.as button styles in CSS. The Firefox hacks courtesy of @drjecker. I'd love to hear if these look "normal" in Firefox, Safari/Webkit, Chrome, Opera, and IE. Also let me know if the :active state shifts down content (it shouldn't) - used a trick with padding to give the impression of a click for the text.

Thanks!

PS: Here's a JSFiddle: jsfiddle.net/VGVeD/ and here's what the Canv.as buttons look like: cl.ly/…

posted 2 years ago

Around is launching soonish.

http://around.io/

Around is something that we've been thinking about for a long time here at Forrst HQ. It's something we desperately need internally, and something that we've had a ton of interest for over the last year. The easiest way to imagine it is as "Forrst for Teams" — the aspects of the Forrst product that make it easy to come together as a community and provide great critique and feedback to your peers, re-imagined as a tool for teams to use internally on dev and design projects. We hope to have it released sometime in the fall. Also, this is a side project for us, and isn't something that will in any way detract from the focus or hard work we put into Forrst every single day.

Cheers,

Kyle

posted 2 years ago

PHP looks like it might be getting its own, built-in web server.

http://wiki.php.net/rfc/builtinwebserver

Very interesting.

When it comes to web development, most people wouldn't doubt PHP's best friend is Apache HTTPD Server. Having that said, developers who experienced any of web application frameworks of other scripting languages such as Ruby on Rails and Django may well find it cumbersome to set up httpd.conf just to use it within a development environment as those are most likely accompanied by a tiny web server that can be launched with a simple command line.

posted 2 years ago

Redis truncating dump.rdb on start

I've got redis 2.0 set up for Forrst and we're migrating to a new, dedicated server for it, and I'm running in to an issue. I've noticed that when we move our existing dump.rdb file over (it's ~550MB), starting the redis daemon will truncate the dumpfile. Running dbsize shows 0 keys. Any ideas?

posted 2 years ago

DevStructure

http://devstructure.com/

Has anyone checked this out yet? Looks like one of the cofounders is a SliceHost cofounder. Looks pretty cool — essentially (if I understand correctly) for managing boxes and standardizing dev environments.

posted 2 years ago

Launched: Facto.me

I just launched Facto.me, a fun project I whipped up in around 24 hours from start to finish. It's Rails3 hosted on Heroku. Using devise for auth, paperclip + aws-s3 for photo uploads.

Let me know what you think! It was fun to mess around with Rails3 after not touching Ruby for a bit.

I just launched Facto.me, a fun project I whipped up in around 24 hours from start to finish. It's Rails3 hosted on Heroku. Using devise for auth, paperclip + aws-s3 for photo uploads.

Let me know what you think! It was fun to mess around with Rails3 after not touching Ruby for a bit.

posted 2 years ago

StartupLi.st

http://startupli.st/

I love the way the body looks like it sinks in and slides behind the header as you scroll. Check it out!

posted 2 years ago

Regexp in PHP with negative lookbehind not matching as expected

UPDATE: Solved! Thanks to everyone who commented, especially @clayhinson and @moeffju

Here's the regexp:

(?<! href=")\b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))
Raw

I'm attempting to match all URLs not preceded by href=" (to prevent autolinking URLs that are already linked. I'm using PHP's PCRE functions, and the regexp without the lookbehind works perfectly:

\b(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))
Raw

I also tried moving the \b to the beginning of the regexp, but to no avail.

\b(?<! href=")(([\w-]+://?|www[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))
Raw

Any ideas? Here is a case that is failing:

<a href="http://bar.com">http://bar.com</a>
Raw
posted 2 years ago

Vagrant

http://vagrantup.com/

Vagrant is a tool for building and distributing virtualized development environments.

This looks really impressive.

posted 2 years ago

Incredibly clever logo for 365.io

Absolutely love this. Do you see it?

Absolutely love this. Do you see it?