Instead of:
settings.get(foo, default)
Try: getattr(settings, foo, default)
This looks useful. Thanks.1,910 karma · joined May 2, 2008
Twitter @bradjasper
Email brad@bradjasper.com
Web https://bradjasper.com
Instead of:
settings.get(foo, default)
Try: getattr(settings, foo, default)
This looks useful. Thanks.I wrote this to help: https://github.com/bradjasper/focus
A few benefits that may be worth the headaches of floating divs:
* Redesign your pages without ever touching HTML (mobile/tv version)
* Improved SEO by arranging important content up top
* (Generally) lighter page sizes because CSS is in external file being cached
But I actually use floating divs because I find them easier. Tables are easy too, but after years of hacking on broken CSS--most of the thorns have faded away for me. YMMV. Use what works best.
Also it's better for advertisers.
It's a good idea. There's nothing wrong with what Mahalo is doing here.
I felt guilty writing a script to stop from procrastinating, but it has actually helped tremendously.
Do you think a description of each tool is necessary or just the "Best of" list?
I believe renaming !variable to $variable is more intuitive for most web developers.
Also I've made the mistake multiple times of forgetting to use an equal sign rather than a colon.
These weren't show stoppers but they added extra complexity to an elegant solution.
I'm excited about the new changes.
Shameless plug: I threw up http://domaingroovy.com/ to keep track of sites like these. Maybe someone else will find it useful.
But that doesn't change my statement.
If you're not willing to break your business to change with the times, someone else will--and by the time you react it's too late.
It's much easier for a new entrant (startups) to innovate because they don't have the same baggage.
http://ejohn.org/apps/workshop/adv-talk/
Press Cmd - to decrease the font size and the slides go crazy. Cmd + to increase it and they stop.
People without ADD experience significant benefits from using Adderall because it's an amphetamine--not because they have undiagnosed ADD.
Any amphetamine helps you think clearly through being more alert and ability to concentrate for longer periods of time.
He's looking for exposure, not artificial 5-star ratings.
Yes he was a jerk and you are well within your right to decline offers like this, but I don't understand why this is sleazy.
I thought this was the same problem Flash sockets had, traffic being blocked.
http://cometdaily.com/2008/09/30/why-flash-must-adopt-comet/
<script type="text/html" id="user_tmpl">
<% for ( var i = 0; i < users.length; i++ ) { %>
<li><a href="<%=users[i].url%>"><%=users[i].name%></a></li>
<% } %>
</script>
Quick tip: Embedding scripts in your page that have a unknown content-type (such is the case here - the browser doesn't know how to execute a text/html script) are simply ignored by the browser - and by search engines and screenreaders.This is quick and dirty, but much more elegant than writing HTML in JS.
I was recently 4 hours into a flight from Chicago to Germany on a large double-decker Airbus when I started smelling smoke on the plane.
Suddenly I see flight attendants running to the back of the plane with fire extinguishers. Other flight attendants are running to the front of the plane with bottles of liquor.
The captain comes over the intercom: "Flight attendants, prepare for emergency landing"
Over the next 5 minutes I watch how different people react to the scenario. Some people grab hands, some start to pray, some people just close their eyes. Others start demanding up-to-the-minute information about our situation.
Without warning, we hit the ground. In a made-for-the-movies moment, the entire plane erupts in applause.
The rest of my trip I was a little nervous getting back on planes. However, the one thing that helped me keep things in perspective was something the flight-attendant said during our emergency landing:
"I have a husband in Germany. I don't want to die either. We're doing everything we can."
Simple and rational. It always works for me too.
FYI, the smoke turned out to be a coffee maker--and after several hours stuck on the tarmac in Newfoundland, we were on our way again.
I do still think its interesting and may be useful in cases where you might have access to only CSS and not templates.
#page { background-color: white; _background-color: black; }
This applies background-color black to IE 6 only, and white to everything else.
You should be using the domain 4chan.org instead of 4chan.com: http://siteanalytics.compete.com/4chan.org+dailybooth.com+4c...
Hit: up up down down left right left right B A
So far it meets my needs well. The only issue I had was getting my SSH key working, but I was eventually able to iron that out.