Really successful day with the cancer organisation…now to the work! We decided against the wiki system I’d suggested, but rather will look into something pretty neat with live chats with key people leading up to their annual conference.
Right now I’m on a train to London…
Right now I’m on a train to London to do some research ahead of a website I’ll be making for a national cancer organisation’s conference.
We’ve worked some interesting features into it too–including a “design your dream conference wiki” that should up their social networking shares substantially.
Blog, meet new blog. Play nice now.
I’ve decided to keep this blog for bigger picture stuff that all my clients can benefit from. My coding tips, and the geekiest of my thoughts, live here now.
New blog, meet old blog. Play nice now.
I’ve been using my main blog, http://petermahoney.net/blog for pretty much everything I’ve wanted to post about (that wasn’t only suited for the bowels of Facebook) and a bunch of quite developer specific posts were appearing.
I’ve decided to keep that blog for bigger picture stuff that all my clients can benefit from. My coding tips, and the geekiest of my thoughts, live here now.
Displaying code snippets easily
With the new site and all I’ve some CSS to get through.
I wanted to make the “pre” element work as a code snippet display for me, and needed a fix to get it to wrap text (since the “width” attribute has been defunct for some time).
Here’s the solution!
pre { background-color: #F2F2F2; padding: 5px 5px 5px 5px; white-space: pre-wrap; /* css-3 */ white-space: -moz-pre-wrap; /* Mozilla, since 1999 */ white-space: -pre-wrap; /* Opera 4-6 */ white-space: -o-pre-wrap; /* Opera 7 */ word-wrap: break-word; /* Internet Explorer 5.5+ */ }
Make a “Share on Twitter” link with URL and Hashtags
The link you have to make to share something to Twitter is quite simple:
http://twitter.com/share?text=text goes here
But getting a URL and hastag in there is a different matter. To be honest most developers do know how to include the URL, but hashtags have proved more elusive!
http://twitter.com/share?text=text goes here&url=http://url goes here&hashtags=hashtag1,hashtag2,hashtag3
Here’s an example to try out:
And that’s it!
- « Previous Page
- 1
- …
- 41
- 42
- 43
- 44
- 45
- …
- 53
- Next Page »