
This is my first post from my wife’s iPad. Isn’t it magical?
I stole this one from my buddy Russ over at mindingthegaps.com, but I needed a place for me to reference easily, so I’m putting it here.
verify you can connect via ssh to the host
open terminal and type
ssh name@address <return>
password <return>
yes <return> (adding it to your know_hosts)
exit <return>
create your id_rsa.pub
open terminal and type
ssh-keygen <return>
*leave_blank* <return>
*leave_blank* <return>
rename your id_rsa.pub so you know it is yours
open terminal and type
cd ~/.ssh <return>
cat id_rsa.pub >> id_rsaXXX.pub (XXX can be anything to identify it is you–name, computer name, etc) <return>
Copy your id_rsaXXX.pub file to the remote computer
open terminal and type
scp ~/.ssh/id_rsaXXX.pub login@address:~/.ssh/ <return>
password <return>
exit <return>
adding your id_rsaXXX.pub to authorized_keys
open terminal and type
ssh login@address <return>
password <return>
cd ~/.ssh <return>
ls <return>
you should see your id_rsaXXX.pub file in the list
cat id_rsaXXX.pub >> authorized_keys
test your ssh connection
exit out of terminal and restart
ssh login@address <return>
should connect without typing a password now.
I based this on a recipe I found here, but I made my own modifications to give it that extra bam!!
The Spaghetti is layered like lasagna with ricotta cheese, Italian tomato sauce, and mozzarella cheese for this fun and tasty baked pasta casserole.
Ingredients
- 1 (8 ounce) package thin spaghetti, cooked
- 2 tablespoons butter
- 1 cup shredded Parmesan cheese, divided
- 1 (24 ounce) carton ricotta cheese
- 1 pound ground beef
- 1 Jar Newman’s Own Marinara Sauce
- 1 (8 ounce) package shredded
- mozzarella cheese
- 1 Can portabella mushroom pieces
- 1/2 jar of pitted and sliced kalamata olives
- 1 Med Onion chpped
- 3 cloves of Garlic
Directions
- Preheat oven to 400 F.
- Combine hot cooked spaghetti with butter; stir until butter melts and coats spaghetti. Add 1/2 cup Parmesan cheese; stir to coat. Arrange spaghetti in an even layer in a large casserole dish.
- Meanwhile, Brown ground beef, adding onion and garlic the last 5 or 10 miniutes; add pasta sauce, olives, mushrooms and heat until bubbly.
- Spread 1/2 meat sauce on spaghetti. Next, spread ricotta cheese and then sprinkle with 1/4 cp of parmesan. Pour remaining meat sauce, sprinkle mozzarella and remaining parmesan evenly.
- Cover with non-stick foil. Bake 30 minutes. Remove foil cover and continue baking 15 minutes or until cheese is lightly browned. Let stand 10 minutes before serving.
This is a more adavanced post. I’m selecting a file from an AppleScript dialog box that already has this post written.
I’m prompting the user (me) for a title for the post and a category. Then using the previously mentioned method of posting with AppleScript and XML-RPC.
This post was sent from an AppleScript that promted for information, then sent it to a XML-RPC php file that was executed by the script.
I got this gem from Ivan Kristianto’s site, www.ivankristianto.com.
I’m posting the code here b/c there is a bug in the way he displayed it. But this is verbatim from his post here:
There are many ways to publish WordPress blog post. You can publish from the WordPress admin interface, you can publish via email and also you can publish it via XML-RPC. So what is XML-RPC? XML-RPC is a remote procedure call (RPC) protocol which uses XML to encode its calls and HTTP as a transport mechanism. Which mean we can call the WordPress procedure remotely. And this will make WordPress easily integrate with other system.
To enable publish via XML-RPC in WordPress follow these stepes:
1. Login to your WordPress admim
2. Go to Settings > Writing > Remote Publishing
3. Enable Enable the WordPress, Movable Type, MetaWeblog and Blogger XML-RPC publishing protocols. checkbox.To try it you can use this code below:
function wpPostXMLRPC($title,$body,$rpcurl,$username,$password,$category,$keywords='',$encoding='UTF-8') { $title = htmlentities($title,ENT_NOQUOTES,$encoding); $keywords = htmlentities($keywords,ENT_NOQUOTES,$encoding); $content = array( 'title'=>$title, 'description'=>$body, 'mt_allow_comments'=>0, // 1 to allow comments 'mt_allow_pings'=>0, // 1 to allow trackbacks 'post_type'=>'post', 'mt_keywords'=>$keywords, 'categories'=>array($category) ); $params = array(0,$username,$password,$content,true); $request = xmlrpc_encode_request('metaWeblog.newPost',$params); $ch = curl_init(); curl_setopt($ch, CURLOPT_POSTFIELDS, $request); curl_setopt($ch, CURLOPT_URL, $rpcurl); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_TIMEOUT, 1); $results = curl_exec($ch); curl_close($ch); return $results; }To test it:
$title="Lorem ipsum"; $body="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vestibulum pharetra mi quis rhoncus. Mauris lacinia neque id lacus lobortis a dictum augue molestie. Proin ut elit velit, in faucibus neque. Aliquam libero odio, bibendum non tempor eu, sodales vel felis."; $rpcurl="http://your_wordpress_blog_url/xmlrpc.php"; $username="Wordpress admin username here"; $password="Wordpress admin password here"; $categories="category name here"; echo wpPostXMLRPC($title,$body,$rpcurl,$username,$password,$categories,'');With this XML-RPC it is possible for you to write article offline and then publish it with XML-RPC. Here some good tools for that:
- Windows Live Writer (Windows Only)
- BlogJet (Windows Only) 3. Blogo (Mac Only)
- MarsEdit (Mac Only)
- BloGTK (Linux Only)
- Scribefire (Firefox Add-on / All platform)
- Flock (Web Browser / All platform)
I’m currently working on way to use this, along with AppleScript to automagically update a WP blog so our editors can easily do this without knowing how to operate in the WP environment.
I’m currently testing some different techniques for publishing to wordpress from the command line or via script. This post is done doing just that. I will post a follow up article with links to where I got this from. If you read this, then in worked.
Every year it happens. Almost every year it hurts. The University of Kansas Basketball team’s season comes to an end. Only twice in my life has it finished with a win, a championship. Twice in 39 years have all the hours, the dedication, neglect of other duties, alcohol consumed while watching on TV, has it paid off for me. This year, like most, it hurts. It hurst because “we should have won”. Because “we were the better team”. Because “we let it slip away”.
You would think that being a grown ass man I would learn. That I would learn that these 18, 19, 20 year old kids are born to let me down. Now they do not mean to, but they play a game that I love, but it’s a game that is fickle. Rarely does the team with the most talent, the most all stars, the most McDonald’s All-Americans win. If that were the case, Allen Field House would be littered with championship banners. No, this game is won by the team who is hot. The team that gets the breaks. The team that is just good enough and just lucky enough to string together 6 or 7 consecutive games of great basketball. These kids will move on. Some to the NBA, some to Europe, most to the real world that we all live in. Then there will be new ones for me to love and new ones to break my heart in March.
I will mourn for the next few weeks. I will say things like, “If we were to play again”, or “the refs screwed us” but it won’t make me feel any better. No, the only thing that will do that will be seeing the schedule for next season posted. Then it is a new season, a season of hope, a season of promise. This will be our year. We are going to be way better than last year.
It is a vicious cycle. A love hate relationship. I know, I know, I’m spoiled, I take it for granted, I could be a fan of a school that never wins, but I’m not, so spoiled or not I will mourn. Until next season. For now it is the end of the season.
Rock Chalk Jayhawk!
I was asked to take a look at an Apache plug-in called The Apache-Apple Event Bridge from, aaeb.net and came away pretty impressed. From the Developer:
The Apache-Apple Event Bridge or AAEB enables you to run AppleScripts via Apache on Mac OS X 10.4, 10.5, and 10.6 (both client and Mac OS X Server).
And that sums it up. It took me about 10 minutes to install it, run the test scripts and start activating my own AppleScripts via Apache.
While this is a very niche product, if you are an AppleScripter and would like to execute those scripts from a web page, this is the thing for you.
Follow me on Twitter