save

Saving Mac Stickies, the StickiesDatabase file, and syncing

Mac Stickies FAQ: Can I save Mac Stickies? If so, how? Also, is there any way to sync Mac Stickies between multiple computers?

This Mac Stickies question goes from simple to bizarre faster than any Mac FAQ I've ever been asked. I'll walk you through what I just learned, so please bear with me, answers are in here.

A CakePHP SQL UPDATE example

CakePHP SQL UPDATE FAQ: How do I perform a SQL UPDATE with CakePHP?

As I was writing a user registration process for a CakePHP application, I just found myself in a situation where I needed to write a CakePHP SQL UPDATE query. While you don't pay attention to it, you often run a SQL UPDATE query in CakePHP in a typical controller edit() function, but this was the first time I really had to do this manually.

The short answer is that you execute a SQL UPDATE query in CakePHP using the usual model save() method. The way the save method work is like this:

Java "file write" (or "file save") methods

Java write/save FAQ: Can you share an example of how to write to a file in Java?

Sure. Here are two "Java file save" or "Java file write" examples, taken from my Java file utilities article (Java file utilities to write, save, open, read, and copy files). I'm not going to explain these too much, but if you need a simple method to write to a file in your Java programs, I hope these methods will help you.

vi quit and exit tutorial

vim quit/save/exit FAQ: How do I quit/exit vim?

Answer: This depends by what you mean by the word "exit". Here's a short list of the different ways I normally quit or exit a vi/vim editor session.

vi exit - no changes made to your file (vim quit command)

If you haven't made any changes to your file you can just quit your vi (or vim) editing session like this:

How to save the output from a MySQL query to a file

I had a problem with this website last Wednesday, and as part of troubleshooting the problem, I need to look at one of the Drupal database tables, specifically the watchdog table. This table had thousands of records in it, and I couldn't find what I needed with SQL SELECT queries, so I finally dug through the MySQL documentation, and found that I could save the output from a SELECT query to a text file.

In this tutorial I'll show you both (a) how to save the results of a MySQL query to a text file, and also (b) how to log your entire MySQL session to a text file.

iPhone email photo tip - how to save an image you receive as an email message attachment

iPhone email photo/image tip: If you receive a photo/image as an attachment in an email message while using your iPhone you can save that image to your iPhone photo collection very easily. Just press the image with one finger and hold it down for a second or two, and a menu will slide up from the bottom asking if you want to save the image.

I use the iPhone Mail program as an interface to my Yahoo email account, and a friend just sent me an email message with three image attachments. By pressing and holding one of the images, a menu popped up with three options:

AppleScript application - How to save a script as an application

AppleScript application FAQ: How do I save an AppleScript script as an AppleScript application?

I just finished writing an AppleScript program to open multiple URLs in multiple tabs in Safari, and -- being incredibly lazy -- I want to put this script on my desktop and have it run whenever I double-click it. That's all the work I'm willing to put into it, no other approach will do.

Syndicate content