Archive

Archive for November, 2009

Creating SOAP client with PHP, simple version

Using SOAP with PHP is very straight forward and easy. Using the SoapClient class and the servers WSDL file as reference, you’re good to go.

Instansiate a SOAP client towards a specified url;

define('WSDL', 'http://www.example.com/service.asmx?wsdl');
$client = new SoapClient(WSDL, array($options));  //options are... optional :) 

Since we are using WSDL, we can use the servers SOAP functions just as local methods! Lets say there’s a function called GetUserById($id); that returns a GetUserByIdResponse.  Here’s how we call it print the response.

$response = $client->GetUserById(array('id' => $id));
print_r($response->GetUserByIdRespons);

Really simple.

For more advanced usage of SOAP + PHP, building your own classes for input control etc, check out the post coming later this week.

Categories: PHP

Windows 7 Sticky Notes keyboard shortcuts

2009/11/03 2 comments

 

The new Sticky Notes in Windows 7 can be useful, but might seem a bit plain. However there are features behind the scenes!
Sticky Notes has some very keyboard shortcuts and this little article will tell you, e.g. how to..

  • Change font size in Sticky Notes
  • Make a bulleted or numbered list in Sticky Notes
  • Add text style in Sticky Notes

Basically Sticky Note texts are managed just like any other text tool. Just mark the piece of text you with to change, and apply the change.
As mentioned, Sticky Notes use keyboard shortcuts. Some commands change depending on your keyboard language and button setup.

 

Sticky Notes text effects

Sticky Notes Keyboard shortcuts

Shortcut Action
CTRL + SHIFT + ;
(or <)
Smaller font
CTRL + SHIFT + :
(or >)
Bigger font
CTRL + mouse scroll Change font size of whole note
CTRL + SHIFT + L List (repeat to change type)
CTRL + SHIFT + A Capitalize
CTRL + 1 Single line space
CTRL + 2 Double line space
CTRL + 5 1.5 line space
CTRL + B Bold
CTRL + I Italic
CTRL + U Underline
CTRL + T Strikethrough
CTRL + L Left align
CTRL + E Center align
CTRL + R Right align
CTRL + N New note
CTRL + D Delete note
CTRL + A Select All
CTRL + C Copy
CTRL + X Cut
CTRL + V Paste
CTRL + Z Undo
CTRL + Y Redo

 

Now if we could only change the font…

 

Categories: How-To, Windows
Follow

Get every new post delivered to your Inbox.