|
Saturday, 04 September 2010 10:54 |
// Changes to the run() method of BluetoothChatService's ConnectedThread thread
// more info on http://kr3l.wordpress.com/2010/09/04/using-android-…remote-control/
private void gets(InputStream mmInStream, byte[] buffer, int[] bytes) throws IOException {
int inputdata;
bytes[0] = 0;
while((inputdata = mmInStream.read()) > -1) {
char inputchar = (char)inputdata;
buffer[bytes[0]++] = (byte)inputchar;
if (inputchar == '\n') {
return;
}
}
}
private void sendToast(String str_msg) {
Message msg = mHandler.obtainMessage(DroidBot.MESSAGE_TOAST);
Bundle bundle = new Bundle();
bundle.putString(DroidBot.TOAST, str_msg);
msg.setData(bundle);
mHandler.sendMessage(msg);
}
public void run() {
Log.i(TAG, "BEGIN mConnectedThread");
byte[] buffer = new byte[1024];
int[] bytes = { 0 };
sendToast("TRYING TO CONNECT");
String answer = "";
while (!answer.equals("PONG\r\n")) {
try {
// Read from the InputStream
write("PING\n".getBytes());
gets(mmInStream,buffer,bytes);
answer = new String(buffer, 0, bytes[0]);
mHandler.obtainMessage(DroidBot.MESSAGE_READ, bytes[0], -1, buffer).sendToTarget();
} catch (IOException e) {
Log.e(TAG, "disconnected", e);
connectionLost();
break;
}
}
sendToast("CONNECTED!");
// Start the loop of request sensors > reply > set motors
while (true) {
try {
// Read from the InputStream
gets(mmInStream,buffer,bytes);
mHandler.obtainMessage(DroidBot.MESSAGE_READ, bytes[0], -1, buffer).sendToTarget();
//write("GET_SENSORS\r".getBytes());
//gets(mmInStream,buffer,bytes);
} catch (IOException e) {
Log.e(TAG, "disconnected", e);
connectionLost();
break;
}
}
}
 Read more: |
|
Thursday, 02 September 2010 04:00 |
 | About TapeDeck
Audio recorder exclusively for Mac OS X 10.5+, designed with a quick-capture workflow in mind. You’re never more than a single mouse click (or keystroke) away from making a new recording, which are called, unsurprisingly, “tapes.” TapeDeck records directly to compressed MP4-AAC audio, making it equally useful for quick high-fidelity samples or hours and hours of lecture.
As you can see, TapeDeck was designed to emulate a real cassette tape recorder (perhaps you have a similar model in your basement), but with a few key differences:
- Every recording you ever make is immediately saved in the box of Tapes.
- You cannot record over an existing tape; clicking Record automatically starts a new tape for you.
- Many more features. |
Read more: |
|
|
Thursday, 02 September 2010 04:00 |
 | About Contactizer Pro
Manage your professional life. Contactizer Pro 3.8 sports full 10.6 compatibility, the capability to subscribe to online ICS calendars, a better Projects / Tasks integration, a new filter bar and many other user interface enhancements expanding your productivity. |
Read more: |
|
Wednesday, 01 September 2010 03:39 |
|
It’s here! Digging into WordPress Version 3.0 is packed with goodness, including a new chapter on WP3, updated core content, and a super-sleek new cover.
![[ Digging into WordPress V3 ]](http://perishablepress.com/press/wp-content/images/2010/misc-chunks/digwp-v3-cover.jpg) DiW3 cover by Chris Coyier
Updated Core Material
Much has changed with WordPress since our previous book update (v2), so for version 3.0 we went through the book and updated/removed outdated core content. Everything is now hot-wired and fine-tuned to the latest version of WordPress, with new popouts and fresh links throughout the book. Here’s a shot from one of the updated core pages (a flow-chart for page templates – more graphic wizardry from Chris!):
![[ Digging into WordPress Screenshot ]](http://perishablepress.com/press/wp-content/images/2010/digwp-update/diw-book-v3-flowchart.jpg)
New Chapter on WordPress 3.0
WordPress 3.0 is better than ever. Released on June 17th 2010, WP3.0 features tons of new functionality and CMS capabilities. So much good stuff, that we added an entire chapter covering all the best new WP3.0 features:
- New default theme
- Custom Admin usernames
- How to customize your background
- How to setup and use WP MultiSite
- Custom taxonomies, menus, and post types
Plus other great stuff like how to use the built-in shortlink feature, author templates, comment-form template-tags, and more. It’s 20+ pages of new WP3.0 content.
![[ Digging into WordPress Screenshot ]](http://perishablepress.com/press/wp-content/images/2010/digwp-update/diw-book-v3-sample-01.jpg)
![[ Digging into WordPress Screenshot ]](http://perishablepress.com/press/wp-content/images/2010/digwp-update/diw-book-v3-sample-02.jpg)
Included with Purchase
Here’s what you get for your hard-earned $27:
- Beautiful, full-color, easy-to-read design
- Nearly 450 pages of practical, how-to WordPress content
- 3 Free Themes: All Ajax, Lines & Boxes, and Plastique
- Free Lifetime Updates (current book owners received version 3.0 yesterday)
- Friendly, helpful customer support :)
Like WordPress itself, Digging into WordPress gets better with each new version. And the nice thing about PDF format is that you can read the book anywhere, even on eReaders like the iPad. Plus you get useful stuff like actual, clickable hyperlinks and linked Table of Contents. Also, the PDF format makes it easy to copy/paste code and other content, so you have everything all in one place. You can learn more and get the book here.
Printed Copies
We were sort of on the fence about printing more copies of the book, but after some great feedback, everything fell into place. Our current goal is to make printed copies of v3.0 available sometime in September/October. The printed books tend to go fast, so if you want a copy stay tuned for the announcement post and more information.
Updated Sample PDF
Here is an updated Sample Chapter showing the new Table of Contents and part of Chapter 3. For more information on Digging into WordPress, check out the Official DiW Bookstore at DigWP.com, the free companion site for the book, featuring tons of awesome WordPress tips, tricks, and tutorials. As always, comments, suggestions, and concerns are welcome.
Get the book!
Source: Perishable Press Take your WordPress skills to the next level with Digging into WordPress! Related articles
Read more: |
|