Try a Story Idea Prompt
So if you are stuck for ideas, here are some prompts:
* What was your favorite childhood pet?
* Where was your most memorable vacation?
* What topic most inspired you in grade school?
* Where is a place in the world you'd like to visit?
* What is the most adventurous thing you have done?
* Who was an influential authority in your subject discipline?
* Or just describe a collection of things such as
o Five attributes of a great writer
o The top technology gadgets of the future
o Most important discoveries in your field
o Favorite cars, vegetables, flowers, tools
o Collection of things that don't belong
Why is it I have such a hard time writing down stories?
/*send the packet*/
send_result = sendto(s, buffer, ETH_FRAME_LEN, 0,
(struct sockaddr*)&socket_address, sizeof(socket_address));
if (send_result == -1) { errorhandling... }
Example 1.6. Receive a RAW ethernet frame
void* buffer = (void*)malloc(ETH_FRAME_LEN); /*Buffer for ethernet frame*/
int length = 0; /*length of the received frame*/
...
length = recvfrom(s, buffer, ETH_FRAME_LEN, 0, NULL, NULL);
if (length == -1) { errorhandling .... }
//dirt cheap wireless TX
//generates 38kHz carrier wave on pin 9 and 10
//sends data via TX every 500ms
void setup()
{
pinMode(9, OUTPUT);
pinMode(10, OUTPUT);
// Clear Timer on Compare Match (CTC) Mode
bitWrite(TCCR1A, WGM10, 0);
bitWrite(TCCR1A, WGM11, 0);
bitWrite(TCCR1B, WGM12, 1);
bitWrite(TCCR1B, WGM13, 0);
// Toggle OC1A and OC1B on Compare Match.
bitWrite(TCCR1A, COM1A0, 1);
bitWrite(TCCR1A, COM1A1, 0);
bitWrite(TCCR1A, COM1B0, 1);
bitWrite(TCCR1A, COM1B1, 0);
// No prescaling
bitWrite(TCCR1B, CS10, 1);
bitWrite(TCCR1B, CS11, 0);
bitWrite(TCCR1B, CS12, 0);
OCR1A = 210;
OCR1B = 210;
Serial.begin(2400);
}
void loop()
{
Serial.println("testing testing testing");
delay(500);
}
To decode what the remote was sending, I used an oscilloscope and a small photodiode. The photodiode generates a small amount of voltage when light hits it, and responds to changes in light level quickly enough that the oscilloscope can draw a really nice plot of the signal. I have a Parallax USB oscilloscope, which is perfect for showing the command pulses and is just fast enough to find the modulation frequency. As an aside, I’m really happy with the Parallax oscilloscope for projects like this. It is simple to use and I love being able to save images to share with people.
Here’s what two of the commands from the dimmer remote look like. The top signal is the “fade lights up” command, and the bottom one is “fade lights down”:
![]()
I'm working on a project that uses data in JSON format (www.json.org). It took me a while to get it going in processing, so I thought I'd post what I did here. If there's a better way (which undoubtedly there is!), please let me know.
Andrew Odewahn
--
Here are the steps I took (on Windows):
1. Download http://www.json.org/java/json.zip from json.org. Save it in a some directory, which I'll call %DOWNLOAD_HOME%.
2. Unzip it. Be sure you preserve the archive's directory structure (/org/json/) when you unzip the file.
3. Change directory into %DOWNLOAD_HOME%orgjson
How does Doodle work?
- Create a poll.
- Forward the link to the poll to the participants.
- Follow online what the participants vote for.
Free. No registration required.
Schedule an event … … such as a board meeting, business lunch, conference call, family reunion, movie night, or any other group event. View example Make a choice … … among movies, menus, travel destinations, or among any other selection.
If you've installed the recently released "Service Pack 2" (SP2) for
Windows XP, you have automatically installed a new firewall on your
PC that might be blocking VNC connections. To create an "exception"
for VNC, follow these instructions:
1. Click Start, click Run, type Wscui.cpl, and then click OK to open
Windows Firewall.
2. Click the Exceptions tab, and de-select the "Don't Allow Exceptions"
radio-button.
3. Click Add Port to display the Add a Port dialog box.
4. Enter port number "5900" or whatever port you've got VNC on that
PC to listen on (port number = 5900 + "VNC Display Number").
5. Select the TCP protocol.
6. In the Name field, type "VNC".
7. Click Change Scope to view or to set the scope for the port
exception, and then click OK.
8. Click OK to close the Add a Port dialog box.
That should do it! More info here:
http://support.microsoft.com/default.aspx?kbid=875357#7
Materials
- Current Transducers - $46.00 for 2
- Arduino Diecimilia Microcontroller ~ $20
- Arduino Ethernet Shield ~ $45
- Small sheet plexiglass with mounting screws and standoffs ~ $5
- Router capable of running openwrt or something can serve a cgi script (optional) ~ $40
- Web server to host the power charts (optional) ~ $5/month
Total cost ~ $110 (not counting what I already had lying around) If money is tight there are a few things that can make this cheaper by about fifty bucks:
<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="simple image gadget" />
<UserPref name="myname"
display_name="Module title"
default_value="Image"
required="true"/>
<UserPref name="targetimg"
display_name="URL of your image"
default_value="http://www.google.com/images/logo_sm.gif"
required="true"/>
<UserPref name="imgwidth"
display_name="Width"
default_value="100%"
required="true"/>
<Content type="html"><![CDATA[
<!-- Simplification of bashennekam.googlepages.com/google_gadget_image.xml -->
<div align="center">
<a href="__UP_targetimg__" target="_blank">
<img src="__UP_targetimg__" border="0" align="center" width="__UP_imgwidth__">
</a>
</div>
]]></Content>
</Module>
void httpRequest()
{
byte theByte;
xPortSerial.print("GET ");
xPortSerial.print(PHP_PAGE_LOCATION);
// value0 = 123 and value1 = 456
// You should change these to be your sensor values or whatever you want to send
// (see php code if you want to add more values or change the names value0/value1
xPortSerial.print("?value0=123&value1=456");
xPortSerial.print(" HTTP/1.1n");
xPortSerial.print(WEB_HOST);
while(!xPortSerial.available()) {} // Just loop until available
theByte = xPortSerial.read();
if (theByte != 0)
Serial.println("Passed.");
else
Serial.println("Failed.");
}
# General Questions
* Do I need to have a gmail account to use Google Spreadsheets?
* How can I switch off the autosave option
* How can I have more than 100 rows ?
* The format I want is not in the menu. What can I do?
* How can I create a custom format ?
* I have opened up a spreadsheet and it is totally black.
* How does the autofill feature work?
* How do I hide the gridlines.
* Can I use names for ranges?
* How can I make an email address live/clickable?
# Time and date related questions.
* How can I calculate working times ?
* How can I get the local time/date for my timezone?
* How can I format time without hours?
* How can I format time values without the seconds ?
* How can I add times ?
* How can I display time values which are over 24 hours ?
* How to display the day of the week ?
....nolist ; We don't want to actually include defs in our listing file. .include "m168def.inc" ; m168def.inc defines all the pins on the Mega168 so we can ; use them by their names rather than addresses (not fun). .list ; We DO want to include the following code in our listing ;D rjmp main ; You usually place these two lines after all your main: ; directives. They make sure that resets work correctly. ldi r16,0xFF ; LoaD Immediate. This sets r16 = 0xFF (255) out DDRB,r16 ; Out writes to SRAM, which is one way of accessing ; pins. DDRB controls PORTB's in/out state. ldi r16,0x00 ; r16 is where we'll store current LED state ; 0x00 means all off. This is preserved over loops.
You need to tell subversion what mime-type to use. Just use the command: svn propset svn:mime-type 'text/html' FILENAME or svn propset svn:mime-type 'image/jpeg' FILENAME For more info: http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html#svn.advanced.props.special.mime-type It's also possible to configure your Subversion client to automatically set each file's mime-type. For example, by modifying ~/.subversion/config to resemble [miscellany] enable-auto-props = yes [auto-props] *.html = svn:mime-type=text/html For more info: http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2
google.visualization.Query and set its properties
according to values from the gadget preferences.
The type of parameter prefs is
_IG_Prefs
_table_query_url is used to set the Query data source URL._table_query_refresh_interval is used to set the Query refresh interval (in seconds).Represents a query that is sent to a data source.
google.visualization.Query(dataSourceUrl, opt_options)
Parameters
So when I got to Maker Day at Maker Faire yesterday afternoon, I was happy to find that Limor Fried, the founder of Adafruit, was giving a presentation on how to start your own business selling kits. This is a growing business right now, as people look for reasons to teach their kids how to solder, or just want to build a neat device. (Adafruit teamed with the Maker Store to offer the infamous TV-B-Gone kit that garnered a lot of attention at CES this year.)
void branch(float h) {
h *= (float) $('#val_size_1').val();
// All recursive functions must have an exit condition!!!!
// Here, ours is when the length of the branch is 2 pixels or less
if (h > 5) {
pushMatrix(); // Save the current state of transformation (i.e. where are we now)
rotate(theta); // Rotate by theta
line(0,0,0,-h); // Draw the branch
translate(0,-h); // Move to the end of the branch
//ellipse(0, 0, 40, 40);
branch(h); // Ok, now call myself to draw two new branches!!
popMatrix(); // Whenever we get back here, we "pop" in order to restore the previous matrix state
// Repeat the same thing, only branch off to the "left" this time!
pushMatrix();
rotate(-theta);
line(0,0,0,-h);
translate(0,-h);
branch(h);
popMatrix();
}
}
This is the first in a series of articles about generating sound with an Arduino. The goals are to generate good quality sound which can be used to play simple tones, stored music, sampled sound, and even act as a MIDI synthesizer. I will cover the basic design, including code and hardware that anyone can use to add sound to Arduino microcontroller projects.
The first step is to look what has already been done. We want to explore many possible options for sound generation and resolve which is best for given situations. I hope to spark some discussion so please comment with information links, advice, suggestions and general opinions.
gdb and simulavr are the backend of AVR studio. With gdb and simulavr you can do the same things you can do with AVR studio. Ubuntu has in its repository some ready packages. Look for gcc-avr, binutils-avr, avr-libc, avrdude, gdb-avr, simulavr. Just install them, that's it Cool The downside is that you don't have a GUI, you probably need to simulate your code from the command line.
This tutorial will demonstrate the following development process: Write C programs in AVR Studio. Compile them into a .hex file using the AVR-GCC compiler (which integrates into AVR Studio). Simulate the target AVR chip and debug the code within AVR Studio. Program the actual chip using the AVRISP mkII USB device, which is attached to our target chip with a special 6-pin cable. Once programmed, the chip runs the program in your circuit.
michael@ubuntu:/host/Documents and Settings/Michael/My Documents/Downloads/android-sdk-linux_x86-1.5_r2/tools$ ./android create avd -t 2 -n android15 Android 1.5 is a basic Android platform. Do you wish to create a custom hardware profile [no] Created AVD 'android15' based on Android 1.5 michael@ubuntu:/host/Documents and Settings/Michael/My Documents/Downloads/android-sdk-linux_x86-1.5_r2/tools$ ./emulator -avd android15
Navigator: + AVR main + Frutt home + Contact me Subjects o Assembler o DisAssembler o man avrdis o Gigaweb o NGW 100 o Opcodes o Yomal o VAX 01 o VAX 02 Okapi o Design o Control Assembler o EBNF o aa001 Achatz o ICSP dongle Service + Downloads + Achatz.nl
Example: sum of first 4 integers.
sum = 0;
for (i = 1; i <= 4; ++i)
sum += i*i;
can be translated to
sum = 0;
i = 1;
loop:
if (i == 5) goto end;;
sum = sum + i;
i = i + 1;
goto loop;
end:
can be translated to
; sum in R16
; i in R17
; R18,R19 used for temporary values
LDI R16, 0
LDI R17, 1
LDI R18, 5
SUB R18, R17
BRBS 1, 22
ADD R16, R17
LDI R19, 1
ADD R17, R19
JMP 2
SLEEP
1 SEE DEMO invoke full screen editor to
create DEMO.ALC 370 assembler
source file.
2 DEMO CSECT first line - define section
3 USING *,15 second - define base register
4 LA 2,=C'HELLO$' third - address of msg. text
5 SVC 209 fourth - request console msg.
6 BR 14 fifth - exit to MS-DOS
7 END sixth - end of program
8 enter escape key to save DEMO.ALC
and exit to MS-DOS
9 A370 DEMO/LX assemble DEMO.ALC and create
DEMO.OBJ object code file and
DEMO.PRN listing with symbol
cross reference.
Resources:
Memcached will dramatically speed up MediaWiki. Some pages on my site, like the Main Page took 40 seconds to load before Memcached, but only 7 after installing Memcached. "Memcached is a high-performance, distributed memory object caching system". Memcached is essentially a database caching system which is object orientated, and works even if the database is updated. (MySQL caching discards the entire cache when a table is changed)
Miss Susan has been using this song for years and it works! For a healthier world, teach it to your kids, your grandchildren, your friends children. Cough Cough Sneeze Sneeze Cover your mouth Please Please Let's be careful How we cough Let's be careful How we sneeze Catch those germs Right i-in your sleeve Ah Ah Ah Choo! Credits: Susan Plimpton - Writer Songsinger Fr. Richard Tardiff - Guitar Filmed on location at the Southwest Harbor Public Library http://www.swhplibrary.org/ License: Creative Commons Attribution-Noncommercial 3.0 Unported http://creativecommons.org/licenses/by-nc/3.0/
- short (because people don't read much online);
- rich in information scent, clearly summarizing the target article;
- front-loaded with the most important keywords (because users often scan only the beginning of list items);
- understandable out of context (because headlines often appear without articles, as in search engine results); and
- predictable, so users know whether they'll like the full article before they click (because people don't return to sites that promise more than they deliver).
Starting a Clothing Line or Apparel Manufacturing BusinessThe Official Step by Step Guide to Starting a Clothing Line ... Are you planning to create clothes for infants or apparel for large women? ...by mshook 2004-05-27 15:06 ah · d3 · search · howto · fashion · jeans · denim
www.powerhomebiz.com/vol66/clothing.htm - 41k - Cached - Similar pages -