Friday, April 19, 2013

Foodie Things to Do, this Weekend and Beyond | Jersey Bites

The official Seafood Week Kickoff will take place Monday, April 15th?at 12:30pm in Palm Walk where guests can sample Fin?s famous lobster bisque, share the wonder of the Atlantic City Aquarium?s touch tank, and catch a special ?Under the Sea? themed Zumba demo by Tilton Fitness.

For more info, see?Seafood Week?at the Tropicana online!

amadaApril 18th:?Atlantic City:?Chef Jose Garces Hosts ?THE LATIN ROAD HOME? Multi-Course Meal

At?7:00 p.m., join?Chef Jose Garces?at his gorgeous tapas bar and restaurant,?Amada?(609-225-9900) at?Revel?(500 Boardwalk,?855-348-0500) for a decadent, multi-course meal celebrating the publication of his second cookbook,?The Latin Road Home.?

The show-stopping menu will include:??Tiradito de Lubina, black bass ceviche with yuzu (Peru);?Pan de Yuca, yuca bread with queso fresco, served with guava-chile butter (Ecuador);?Crema de Quinoa de Zuleta, quinoa chowder with sweet corn (Ecuador);?Enchilado de Langosta, lobster in spicy tomato sauce (Cuba);?Carne Asada a la Tampique?a con Arroz Rojo y Refritos, grilled marinated skirt steak with red rice and refried beans (Mexico); and?Crema Catalana, chocolate custard with vanilla berries (Spain).

For?$85 per person, excluding beverages, tax and gratuity, guests will enjoy dishes from each of the book?s five chapters:??Ecuador;?Spain;?Cuba;?Mexico; and?Peru.??An optional wine pairing will also be available for $40.?Reservations required, please call 609.225.9900 for more information.

April 22nd: West Long Branch:?The Red Bank Rotary?s Thirteenth Annual Two Rivers Food and Wine Tasting

Come join the Red Bank Rotary on April 22nd from 6-9 Pm to benefit Lunch Break!?For many local families who are struggling with poverty, Lunch Break is their only option for a healthy, well-balanced meal and for many other much needed services.

For the past 12 years The Rotary Club has organized The Two Rivers Food and Wine Tasting event with proceeds going to local charities. This event is a huge culinary and social success and gives people the opportunity to meet friends and make new ones while sampling delicious food and a great selection of wines and other beverages from leading restaurants in the area.

Tickets for $65.00 each may be purchased?by sending a check payable to Red Bank Rotary Foundation, P.O. Box 8444, Red Bank, NJ 07701?or through paypal on the Red Bank Rotary website:?www.redbankrotary.org

For additional information, please call?732-979-4459.

April 22nd:?Red Bank:?A Conversation with Bobby Flay.?Are you obsessed with barbecue? ?Bobby Flay? ?Well we have a treat for you! ?Bobby Flay will be at Count Basie Theatre to share his approach to food. ?Don?t miss hearing tips, stories, and recipes from his new book,?Bobby Flay?s Barbeque Addiction. ?All tickets include a signed copy of the book (a $35 value), available exlusively at this event before it?s official public release the following day.

Bobby Flay, a?New York Times?bestselling author, is the chef-owner of six fine-dining restaurants, including Mesa Grill, Bar Americain, and Bobby Flay Steak, and numerous Bobby?s Burger Palaces. He is the host of many popular cooking shows on Food Network, from the Emmy-winning?Bobby Flay?s Barbecue Addiction,?Grill It! with Bobby Flay, and?Boy Meets Grill, to the?Iron Chef America?series,?Throwdown! with Bobby Flay, and?Food Network Star.

Long known and beloved for his skills at the grill, Bobby now expands his cooking horizons to include slow and low with his Food Network cooking show?Bobby Flay?s Barbecue Addiction?and in this book.?Bobby Flay?s Barbecue Addiction?presents Bobby?s secrets for cooking anything and everything on the grill?from quickly grilled steaks and seafood to smoky barbecued ribs and fork-tender pulled pork. ?This is his only area appearance; don?t miss out!

Tickets are $49.75, and a?limited number of Gold Circle tickets are available at $79.75.? For more information and to purchase tickets, visit Count Basie Theatre?s?website.

Hundreds of food enthusiasts gather at the Taste for a splendid evening of food, fun?and fundraising. The Taste has something for everyone; samplings of signature dishes?and unique fare from high profile and emerging local restaurants, caterers, bakers,?along with fine wines, and mouthwatering desserts. Giannone Wine will once again be?hosting wine tasting stations at the Taste; new this year will be the tastings of specialty?beers.

If you are a chef, restaurant owner or other food business proprietor and would like to?participate in Taste please call the Library at 201-863-7823, visit?our website, like Taste of Weehawken ?13 on Facebook or follow on Twitter?@weehawkennj.

April 27th: Kitchen Tour Through Interlaken

Our Lady of Mount Carmel School will host a kitchen tour through Interlaken on April 27, 2013 from?11 AM ? 3 PM. ?Six houses with seven caterers will be showcased. ?Caterers include et al fine foods, Cravings, the Caramel Shop, Chef Michael Thompson, Falco Brothers Catering, Joe Leone?s, and Mike?s Deli.

Tickets, $35 prepaid and $40 on the day of the tour,?are available at the Allenhurst Cleaners, 530 Main St., Allenhurst or by calling Vicki at?732-531-9609.

Participants must pick up brochures at the Interlaken Boro hall, 100 Main St, Interlaken?at 11 am on the day of the tour.

Where can you sample over 65 of New York?s most notable restaurants, over a dozen impossible-to-get-into cocktail bars, rub elbows with your favorite culinary personalities, and bid on priceless experiential auction packages in one evening??Share Our Strength?s 26th annual Taste of the Nation? NYC will bring the city?s finest chefs and mixologists together to donate their time, talent, and passion to end childhood hunger in America.

This year?s event includes support from our chef chairs Marc Murphy and Alex Guarnaschelli and our host committee members, fashion designer Rebecca Minkoff, interior designer Athena Calderone and nightlife maven Simonez Wolf. ?The evening will also include book signings from top toques and food personalities as well as exclusive culinary and travel packages offered during the famed live auction.

Where: 82 Mercer Street, NYC

When: April 29th, 6:30-9:30 PM VIP, 7:30-9:30 PM General Admission

Tickets: VIP-$425, General-$225

Buy tickets?online?here. ?100% of ticket sales go toward ending childhood hunger.

May 8th: Atlantic City:?The 16th Annual Atlantic City Host Awards?will take place on May 8th in the?Adrian Phillips Ballroom of Boardwalk Hall.?Presented by the Atlantic City Convention & Visitors?Authority (ACCVA) and the ACCVA Foundation, the program salutes and encourages excellent?customer service industry-wide.

In addition to honoring award winners in 26 categories ranging from various food service, bar and?hotel personnel to retail, visitor information, spa and casino positions, the prestigious Spirit of?Hospitality Award will be presented to the Dougherty family, which has owned and operated some of?the city?s most famous restaurants for generations. The Doughertys currently own and operate Dock?s?Oyster House, Knife and Fork Inn, and Harry?s Oyster Bar. Dock?s has been in the family?s control?since it opened in 1897.

Scholarships for students attending hospitality programs at area colleges will also be presented during?the banquet. The scholarships are awarded by the Greater Atlantic City Concierge Association and the?ACCVA Foundation.

Tickets for the Host Awards banquet are $65.00 each and are available by calling Jacqui Carole at?609-449-7174. ?More information on?sponsorship, nominations, and the ACCVA Foundation can be found by visiting?their website.

May 12th-18th:?Atlantic City:? Tropicana Bacon Week

Tropicana is changing the way you look at bacon with its first ever Bacon Week Sunday, May 12th?through Saturday, May 18th.? These dining and retail specials are guaranteed to make your mouth water.? They are mixing bacon in your martini, wrapping your steak in it, dipping it in chocolate and even making a bouquet of roses with it! ?It?s all about the ?B? word at Tropicana? BACON!

Receive a bacon tour card at any of our participating outlets and collect stamps with qualifying bacon purchases. Fill your card and submit it for a chance to win an overnight stay at Tropicana Atlantic City and a gift basket by Bacon Bites Inc.!

For more information, contact Tropicana at 1-800-THE- TROP.

?The Chelsea, Atlantic City?s chic non-gaming hotel on the Boardwalk, will host the?3rd?Annual Big Teplitzky Challenge?on?Saturday, May 18, 2013. The Atlantic City Fire Department will face off with the Atlantic City Police Department and compete to be the first to clear their plates of the mega 4-pound Big Teplitzky breakfast?of pancakes, stuffed French toast, eggs, bacon, turkey sausage, pork roll, hash browns, grilled tomato, toast, a bagel, along with orange juice and coffee to wash it all down!?While competing for fun, both departments are partnering for a serious cause-to raise community support and awareness of suicide prevention particularly among first responders.

All proceeds from ticket sales and sponsorships will benefit The Andrew Fisher Memorial Scholarship Fund and Cop2Cop. Andrew?s Scholarship Fund is a tribute to Captain James? son who was a brilliant chemical engineering student at Northeastern University in Boston at the time of his tragic death. Cop2Cop is a New Jersey based phone counseling service for law enforcement. Law enforcement officers, some of who have faced their own struggles with depression or seen colleagues suffer, volunteer their time to staff the service.

Individuals or businesses interested in becoming sponsors of The Big Teplitzky Challenge should contact the Atlantic City Firemen?s Federal Credit Union at?(609) 272-1000. Tickets may be purchased in advance for $10 each through ACPD (Jane Tayoun:?Janejap@aol.com/?609-271-2500) or ACFD (Christine Parker:?ccparker82@gmail.com/609-576-4084) or purchased at the door.? ? ? ? ? ? ? ? ? ? ? ? ? ? ??????????????????????????????????????????????????????????????? ? ? ?????????????????????????????????????????????????????????????? ? ? ? ??

For more information on the Chelsea hotel, please call?1-800-548-5030?or visit?www.thechelsea-ac.com.

?Come to the 2nd Annual Wine Festival where fifteen southern New Jersey wineries will be on hand for tastings and purchases. ?Live musical entertainment and gourmet food selections will also be featured in this two-day event, expected to draw more than 5,000 guests.? Tickets are now available for the event which runs 12:00-5:00 p.m. each day on Rowan Boulevard as part of the Glassboro Marketplace series of large-scale community activities.

Participating wineries include Amalthea Winery, Auburn Road Vineyard and Winery, Bellview Winery, Cedarvale Winery, Chestnut Run Farm, Coda Rossa Winery, DiBella Winery, DiMatteo Vineyards, Heritage Vineyards, Monroeville Winery, Natali Vineyards, Plagido?s Winery, Sharrott Winery, Valenzano Winery and Wagonhouse Winery.

Local restaurants including Landmark Americana, Bomb Bomb BBQ and Sandwich Grille,?Think Greek Grill and Yogurt Bar, Little Beef?s, Carolina Blue, Liscio?s and Green Zebra will offer gourmet and pre-packaged food selections.? Glassboro artisans including Second Look Mosaic and the Glassboro Honey Company will join more than two dozen vendors offering specialty items for wine lovers.

The festival will be alive with musical entertainment.? Appearing from 12:00-2:00 p.m. Saturday is Cold Blue Electric, featuring their brand of Jazz fusion.? Enjoy classic rock from Love Alive on Saturday from 2:30-5:00 p.m.? Singer/songwriter Dan Bell kicks off Sunday?s entertainment from 12:00-2:00 p.m., followed by Mike Dugan and the Blues Mission from 2:30-5:00 p.m.

Advance tickets are available at?www.glassboromarketplace.com.? Tickets are $20 in advance and $25 at the door.? Admission includes a souvenir glass and parking is free.

The Wine Festival will take place rain or shine.? Additional tents will be used in case of inclement weather.

manestreamJune 1st:? Oldwick:?The Food Truck Festival: A Moving Culinary Event

Equine meets epicurean when a Hunterdon County non-profit hosts an evening of charitable giving this June called The Food Truck Festival: A Moving Culinary Event. Mane Stream is an organization that provides equine therapy to over 200 riders with physical, developmental, emotional, and medical challenges. In keeping with the hottest trends in food and drink, The Food Truck Festival: A Moving Culinary Event will feature six gourmet food trucks from the tri-state area plus beer pairings from the tri-state?s finest microbreweries, full open bar, dancing, and two raffles. This will all take place in a fantastic lounge atmosphere on Saturday June 1, 2013 at 6:30 P.M. at 14 Holland Brook Road, Whitehouse Station, NJ.

The featured food trucks are sure to satisfy adventurous eaters and picky eaters alike. The evening will begin with The Cow and the Curd?s battered and fried cheese curds, plus Rickshaw Dumplings will feature all of their most sought after dumplings and dipping sauces.? Next to roll up are the main course trucks. Amped up comfort food from Lil Dan?s, Foo Truck?s Asian-fusion flavors and Indian cuisine from Mausam Curry & Bites will not disappoint. End the evening on a sweet note with?Belgian waffles piled high with Wafels & Dinges? gourmet ice cream, fresh fruit, and toppings galore ?everything homemade and everything delicious. These food trucks may call NYC and Philadelphia home, but they are coming to the country to satisfy hungry Mane Stream supporters.

Additionally, New Jersey Craft Beer has carefully paired each truck?s cuisine with amazing local brews. It?s the perfect opportunity to taste test the best of New Jersey?s pint-sized selections. These nine different breweries will be serving up cold ones: Weyerbacher, Smuttynose, Troegs, River Horse, Flying Dog, Yards, Boulder, Breckenridge and Sly Fox.

There will be a riding demonstration (weather permitting), so festival participants will be able to see how Mane Stream?s clients benefit from equine assisted therapy and other equestrian activities. Music and dancing will provide additional entertainment well into the night.

All-inclusive tickets are $150 and must be purchased online via?manestreaminc.org, under Special Events.

June 7th:?Morristown:?Five Course Tasting Dinner at The Artist Baker

A five course tasting menu of locally?sourced foods will be prepared by Chef Andrea Lekberg at her boutique bakery located in downtown Morristown to raise funds for Slow Food Northern New Jersey?s School Vegetable Garden Program.? Gary Tonucci, the chapter?s wine enthusiast, has selected the New Jersey wines to pair with each course.? Gary will provide information about the wines being served and viniculture in the state.

Please note that both vegetarian and vegan options will be available upon request. ? Tickets are $80 for Slow Food Members and $85 for non-members. ?Please book soon as space is limited by purchasing tickets online.

Source: http://www.jerseybites.com/2013/04/foodie-things-to-do-this-weekend-and-beyond-56/

sequestration Van Cliburn Sequester Miami Heat Harlem Shake Harlem Shake Miami Heat stephen curry dr seuss

Wednesday, April 17, 2013

Problem Read 111 Byte From Serial Port - C And C++ | Dream.In.Code


Example
#{example}
"); ipb.editor_values.get('templates')['togglesource'] = new Template("
??? Cancel Source Edit
"); ipb.editor_values.get('templates')['toolbar'] = new Template(""); ipb.editor_values.get('templates')['button'] = new Template("
  • Icon
  • "); ipb.editor_values.get('templates')['menu_item'] = new Template("
  • #{title}
  • "); ipb.editor_values.get('templates')['togglesource'] = new Template("
    ??? Cancel Source Edit
    "); ipb.editor_values.get('templates')['emoticons_showall'] = new Template(""); ipb.editor_values.get('templates')['emoticon_wrapper'] = new Template("

    Emoticons

    "); // Add smilies into the mix ipb.editor_values.set( 'show_emoticon_link', false ); ipb.editor_values.set( 'bbcodes', $H({"snapback":{"id":"1","title":"Post Snap Back","desc":"This tag displays a little linked image which links back to a post - used when quoting posts from the board. Opens in same window by default.","tag":"snapback","useoption":"0","example":"[snapback]100[/snapback]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"topic":{"id":"5","title":"Topic Link","desc":"This tag provides an easy way to link to a topic","tag":"topic","useoption":"1","example":"[topic=1]Click me![/topic]","switch_option":"0","menu_option_text":"Enter the topic ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"post":{"id":"6","title":"Post Link","desc":"This tag provides an easy way to link to a post.","tag":"post","useoption":"1","example":"[post=1]Click me![/post]","switch_option":"0","menu_option_text":"Enter the Post ID","menu_content_text":"Enter the title for this link","single_tag":"0","optional_option":"0","image":""},"spoiler":{"id":"7","title":"Spoiler","desc":"Spoiler tag","tag":"spoiler","useoption":"0","example":"[spoiler]Some hidden text[/spoiler]","switch_option":"0","menu_option_text":"","menu_content_text":"Enter the text to be masked","single_tag":"0","optional_option":"0","image":""},"acronym":{"id":"8","title":"Acronym","desc":"Allows you to make an acronym that will display a description when moused over","tag":"acronym","useoption":"1","example":"[acronym='Laugh Out Loud']lol[/acronym]","switch_option":"0","menu_option_text":"Enter the description for this acronym (EG: Laugh Out Loud)","menu_content_text":"Enter the acronym (EG: lol)","single_tag":"0","optional_option":"0","image":""},"hr":{"id":"12","title":"Horizontal Rule","desc":"Adds a horizontal rule to separate text","tag":"hr","useoption":"0","example":"[hr]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"1","optional_option":"0","image":""},"php":{"id":"14","title":"PHP Code","desc":"Allows you to enter PHP code into a formatted/highlighted syntax box","tag":"php","useoption":"0","example":"[php]$variable = true;\n\nprint_r($variable);[/php]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"html":{"id":"15","title":"HTML Code","desc":"Allows you to enter formatted/syntax-highlighted HTML code","tag":"html","useoption":"0","example":"[html]\n \n[/html]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"sql":{"id":"16","title":"SQL Code","desc":"Allows you to enter formatted/syntax-highlighted SQL code","tag":"sql","useoption":"0","example":"[sql]SELECT p.*, t.* FROM posts p LEFT JOIN topics t ON t.tid=p.topic_id WHERE t.tid=7[/sql]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"xml":{"id":"17","title":"XML Code","desc":"Allows you to enter formatted/syntax-highlighted XML code","tag":"xml","useoption":"0","example":"[xml]\n \n Test\n \n[/xml]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"member":{"id":"31","title":"Member","desc":"Given a member name, a link is automatically generated to the member's profile","tag":"member","useoption":"1","example":"[member=skyhawk133] runs this site.","switch_option":"0","menu_option_text":"Input Username of Member","menu_content_text":"","single_tag":"1","optional_option":"0","image":"memberbbcode.png"},"extract":{"id":"33","title":"Extract Blog Entry","desc":"This will allow users to define an extract for an entry. Only this piece of the entry will be displayed on the main blog page and will show up in the RSS feed.","tag":"extract","useoption":"0","example":"[extract]This is an example![/extract]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"blog":{"id":"34","title":"Blog Link","desc":"This tag provides an easy way to link to a blog.","tag":"blog","useoption":"1","example":"[blog=100]Click me![/blog]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"entry":{"id":"35","title":"Blog Entry Link","desc":"This tag provides an easy way to link to a blog entry.","tag":"entry","useoption":"1","example":"[entry=100]Click me![/entry]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"twitter":{"id":"36","title":"Twitter","desc":"A tag to link to a user's twitter account","tag":"twitter","useoption":"0","example":"[twitter]userName[/twitter]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":"twitter.png"},"inline":{"id":"37","title":"Inline Code","desc":"Formats code inline instead of in a seperate code box. ","tag":"inline","useoption":"0","example":"[inline]style=\"font-size: 12px;\"[/inline]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":""},"il":{"id":"38","title":"Abbreviated Inline (IL)","desc":"Abbreviated version of the [inline] tag. ","tag":"il","useoption":"0","example":"[il]Code Here[/il]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"0","image":"il2.png"},"code":{"id":"41","title":"Code","desc":"Allows you to enter general code","tag":"code","useoption":"1","example":"[code]$text = 'Some long code here';[/code]","switch_option":"0","menu_option_text":"","menu_content_text":"","single_tag":"0","optional_option":"1","image":""}}) ); ipb.vars['emoticon_url'] = "http://cdn.dreamincode.net/forums/public/style_emoticons/default"; //Search Setup ipb.vars['search_type'] = 'forum'; ipb.vars['search_type_id'] = 15; ipb.vars['search_type_2'] = 'topic'; ipb.vars['search_type_id_2'] = 318645; //]]>

    2 Replies - 36 Views - Last Post: Today, 07:31 AM Rate Topic: -----

    #1 Marvin_G ?Icon User is offline

    Reputation: 0

    • Posts: 1
    • Joined: Yesterday, 11:07 PM

    Posted Yesterday, 11:17 PM

    Hello guys, i'm new here. i have a code which will write command to serial port and after that read the output from the port. I've tested to read 8 byte data and it works but when i tried to read 111 byte of data, it's not working. Below is my code, please do take a look. Takes in advance.
    
   #include <stdio.h>   /* Standard input/output definitions */  #include <string.h>  /* String function definitions */  #include <unistd.h>  /* UNIX standard function definitions */  #include <fcntl.h>   /* File control definitions */  #include <errno.h>   /* Error number definitions */  #include <termios.h> /* POSIX terminal control definitions */   /*   * 'open_port()' - Open serial port 1.   *   * Returns the file descriptor on success or -1 on error.   */   int open_port(void)  {    int fd;                                   /* File descriptor for the port */     fd = open("/dev/ttyUSB0", O_RDWR | O_NOCTTY | O_NDELAY);     if (fd < 0) {                                              /* Could not open the port */      fprintf(stderr, "open_port: Unable to open /dev/ttyUSB0 - %s\n",              strerror(errno));    }     return (fd);  }  void main() {  int mainfd=0, i;                                            /* File descriptor */  char cnt, result2;  unsigned char result,chout;  struct termios options;  FILE *fp;      mainfd = open_port();   fcntl(mainfd, F_SETFL, FNDELAY);                  /* Configure port reading */                                      /* Get the current options for the port */  tcgetattr(mainfd, &options);  cfsetispeed(&options, B19200);                 /* Set the baud rates to 19200 */  cfsetospeed(&options, B19200);                                         /* Enable the receiver and set local mode */  options.c_cflag |= (CLOCAL | CREAD);  options.c_cflag &= ~PARENB; /* Mask the character size to 8 bits, no parity */  options.c_cflag &= ~CSTOPB;  options.c_cflag &= ~CSIZE;  options.c_cflag |=  CS8;                              /* Select 8 data bits */  options.c_cflag &= ~CRTSCTS;               /* Disable hardware flow control */                                      /* Enable data to be processed as raw input */  options.c_lflag &= ~(ICANON | ECHO | ISIG);                                                 /* Set the new options for the port */  tcsetattr(mainfd, TCSANOW, &options);   result2 = tcsetattr(mainfd, TCSANOW, &options);  if ( result2 == -1 ) { perror("error: tcsetattr"); }  if ( result2 != 0 ) { fprintf(stderr,"error in tcsetattr, result = %d\n", result2); }   result2 = write(mainfd,"\xF5\x23\x00\x00\x00\x00\x23\xF5",8);  if ( result2 == -1 ) { perror("error: write"); }  if ( result2 != 8 ) { fprintf(stderr,"error in write, result = %d\n", result2); }     usleep(5000000);      /* wait for 5 second*/   fp = fopen("results_eigenvalue", "w");   /*open and write into existing file*/   for(i=0;i<111;i++) {  result = read(mainfd, &chout, sizeof(chout));          /* Read character from ABU (Auto buffering Unit) */  if ( result == -1 ) { perror("error: read"); }  /*if ( result!= 1 ) { fprintf(stderr,"error in read, result = %d\n", result); }      if (chout!= 0)*/     fprintf(fp,"%02x ",chout);   }                                                /* Close the serial port */   close(mainfd);  }  


    Is This A Good Question/Topic? 0

    Replies To: Problem Read 111 byte from serial port

    #2 macosxnerd101 ?Icon User is online

    Reputation: 8924

    • Posts: 33,067
    • Joined: 27-December 08

    Re: Problem Read 111 byte from serial port

    Posted Today, 07:18 AM

    Moved to C/C++. Please do not post help questions in the Challenges subforum. The Challenges forums are for fun challenges, not help/homework questions.


    #3 jimblumberg ?Icon User is online

    Reputation: 2940

    • Posts: 8,929
    • Joined: 25-December 09

    Re: Problem Read 111 byte from serial port

    Posted Today, 07:31 AM


    Page 1 of 1


    Source: http://www.dreamincode.net/forums/topic/318645-problem-read-111-byte-from-serial-port/

    terrell owens terrell owens neil armstrong little league world series us open tennis us open tennis Empire State Building shooting

    Tuesday, April 16, 2013

    FIFA investigator among Americans barred from Russia in rights dispute

    By Steve Gutterman

    MOSCOW (Reuters) - The chief investigator examining allegations of wrongdoing in soccer including the bidding process for the 2018 World Cup in Russia is one of 18 people on a list of Americans barred from entering Russia over what Moscow says are human rights abuses.

    Michael Garcia, a former U.S. federal prosecutor who now works for soccer's world governing body, FIFA, is on the blacklist published by Russia's Foreign Ministry on Saturday after Washington named 18 Russians barred from entering the United States for alleged rights abuses.

    It was not immediately clear whether his blacklisting could affect Russia's hosting of the soccer World Cup in 2018.

    As a U.S. attorney, Garcia was involved in the successful effort to arrest and try Viktor Bout, a Russian who was long wanted by U.S. authorities on suspicion of arms trafficking. Bout is serving a 25-year jail term in the United States.

    Garcia, whose past responsibilities have also included enforcing arms regulations and money laundering statutes, was elected last July to investigate allegations of corruption as head of the investigative chamber of FIFA's ethics committee.

    He did not immediately respond to emails requesting comment.

    The joint bidding process to host the 2018 and 2022 World Cups, won by Russia and Qatar, has been tainted by a corruption scandal after a number of high-ranking FIFA officials were banned for breaching the body's ethics code.

    FIFA said in January the ethics committee would conduct a "thorough review" of allegations about the process.

    The Russian Foreign Ministry could not immediately be reached for comment.

    U.S. President Barack Obama's administration on Friday issued a list of 18 Russians subject to visa bans and asset freezes in the United States under the Magnitsky Act legislation passed by Congress late last year.

    Russia's list was issued under a retaliatory law President Vladimir Putin signed in December. Garcia, a former U.S. attorney for the Southern District of New York, was among Americans the Foreign Ministry said had violated the human rights of Russians abroad.

    In 2008, Garcia announced Bout's arrest in Thailand. Bout was extradited and was sentenced in April 2012 after a Manhattan jury convicted him on charges that he agreed to sell arms to people he thought were militants intent on attacking American soldiers in Colombia.

    Russia vociferously protested the extradition of Bout - who is the subject of a book called "Merchant of Death" and inspiration for the film "Lord of War" starring Nicolas Cage - and says he was convicted on unreliable evidence.

    Bout had lived untroubled in Russia, frustrating U.S. officials seeking his prosecution, before he was lured to Bangkok and seized in a sting operation. The United States has refused a Russian request to return him to Russia to serve out his prison term.

    (Writing by Steve Gutterman; Editing Alissa de Carbonnel and Pravin Char)

    Source: http://news.yahoo.com/fifa-investigator-among-americans-barred-russia-rights-dispute-113351290--sow.html

    michael madsen spring forward day light savings day light savings daylight saving time 2012 grapes of wrath silent house

    Monday, April 15, 2013

    MTV Sneak Peek Week Bumps And Grinds To An End: Relive It Now!

    Seth Rogen, Emma Watson and Melissa McCarthy celebrated a week of films with MTV before Sunday's Movie Awards.
    By Todd Gilchrist


    Emma Watson, Katie Chang and Claire Julien during MTV's Sneak Peek Week
    Photo: MTV

    Source: http://www.mtv.com/news/articles/1705595/2013-movie-awards-sneak-peek-week-best-moments.jhtml

    current time a thousand words my sisters keeper kirby sarah palin cbi the shins

    Daily Emotions May Affect Long-Term Mental Health | pilladvised

    Our emotional responses to the stresses of daily life may predict our long-term mental health, according to a new study led by a UC Irvine psychologist.
    ?
    The research, which appears online in the journal Psychological Science, suggests that maintaining emotional balance is crucial to avoiding severe mental health problems down the road.
    ?
    Susan Charles, UC Irvine professor of psychology & social behavior, and her colleagues conducted the study in order to answer a long-standing question: Do everyday irritations add up to make the straw that breaks the camel?s back, or do they make us stronger and ?inoculate? us against later tribulations?
    ?
    Learn more in Are You Restless or Stressed Out?
    ?
    Using data from two national, longitudinal surveys, the researchers found that participants? negative emotional responses to daily stressors ? such as arguments with a spouse or partner, conflicts at work, standing in long lines or sitting in traffic ? predicted psychological distress and self-reported anxiety/mood disorders 10 years later.
    ?

    Susan Charles

    ?How we manage daily emotions matters to our overall mental health,? Charles said. ?We?re so focused on long-term goals that we don?t see the importance of regulating our emotions. Changing how you respond to stress and how you think about stressful situations is as important as maintaining a healthy diet and exercise routine.?
    ?
    Discover how to Maintain Your Mental Health
    ?
    According to Charles and her colleagues, the findings show that mental health outcomes aren?t affected by just major life events; they also bear the impact of seemingly minor emotional experiences. The study suggests that the chronic nature of negative emotions in response to daily stressors can take a toll on long-term psychological well-being.
    ?
    Read more in Beat Stress and Prevent Pain
    ?

    ?It?s important not to let everyday problems ruin your moments,? Charles said. ?After all, moments add up to days, and days add up to years. Unfortunately, people don?t see mental health problems as such until they become so severe that they require professional attention.?
    ?

    Reference: Psychological Science. Published Online March 26, 2013. ?The Wear and Tear of Daily Stressors on Mental Health,? Susan T. Charles, Jennifer R. Piazza, Jacqueline Mogle, Martin J. Sliwinski, David M. Almeida

    ?

    Source: http://pilladvised.com/2013/04/daily-emotions-may-affect-mental-health/

    tax refund calculator huntington disease west memphis three taxes game of thrones season 2 trailer sag award winners girl scout cookies

    Sunday, April 14, 2013

    Gun measures put moderate Senate Dems in bind

    WASHINGTON (AP) ? President Barack Obama's push for tougher gun measures and expanded background checks has placed several moderate Senate Democrats facing re-election next year in a bind, forcing them to take sides on a deeply personal issue for rural voters.

    The choice: Either they stick with Obama and gun control advocates ? and give an opening to campaign challengers and the National Rifle Association to assail them ? or they stand with conservative and moderate gun owners back home worried about a possible infringement on their rights.

    Five Senate Democrats ? Mark Begich of Alaska, Mark Pryor of Arkansas, Mary Landrieu of Louisiana, Max Baucus of Montana and Kay Hagan of North Carolina ? are seeking another term in states carried by Republican Mitt Romney last fall. For the next few weeks, at least, the spotlight will be on how they maneuver as the Senate debates gun-control legislation pushed by Democrats in response to the deadly Newtown, Conn., elementary school shooting.

    Two other GOP-leaning states with large numbers of gun owners ? West Virginia and South Dakota ? will have open seats following Democratic retirements. Republicans have placed many of these states at the top of their priority lists as they try to gain six seats to win back the Senate majority.

    Debate begins next week on Senate legislation that would require nearly all gun buyers to submit to background checks, toughen federal laws banning illicit firearms sales and provide more money for school safety measures. The background checks are viewed by gun control advocates as the best step to prevent criminals and the mentally ill from accessing weapons. The NRA has opposed the expansion of background checks, saying it could lead to federal registries of gun owners. It has sought better enforcement of existing laws, which it contends is too easy for criminals to circumvent.

    "There's a fear in these states that this is going to go further and farther than anyone has suggested," said Chris Kofinis, a Democratic strategist and former chief of staff to Sen. Joe Manchin, D-W.Va. But he said efforts to curb gun violence were aided by the emotional toll of the Sandy Hook shootings, in which 20 children and six adult educators were killed. "Newtown changed everything," he said.

    Thus, these Senate Democrats are weighing the possibility of angry voters next year against pressure from fellow Democrats. So far, they're divided.

    Baucus, the only Democrat with the NRA's top rating, said he will vote against the bill as it currently stands. He pointed to the 18,000 phone calls his office has received about it ? he said only 2,000 of those callers favored it.

    "I represent Montana ? that's my first loyalty," Baucus said. "They're my employers. That's why I'm here."

    Baucus knows the perils of a debate over firearms. He supported a 1994 crime bill sought by President Bill Clinton that included an assault weapons ban and survived a vigorous challenge from Republicans two years later.

    Two other Democrats have already raised their objections.

    Begich and Pryor voted Thursday with Republicans in an unsuccessful bid to block debate on Democrats' gun control legislation.

    Begich said the current bill has "serious problems with it" and he wanted Democrats to consider his proposal with Sen. Lindsey Graham, R-S.C., to improve how the federal background check system prevents weapons from getting to people with certain mental health problems.

    "My first priority is Alaska. It's not complicated for me," Begich said. "It doesn't matter if it's election year or non-election year. I've done 4 1/2 years of pro-gun votes here." Asked whether Obama's push on gun violence was complicating matters for him at home, Begich said with a laugh: "The president makes my life difficult on many fronts."

    Pryor said the bill in its current form was "too broad and unworkable."

    Hagan is taking a different position. She said in a statement she planned to support what's become known as the Manchin-Toomey measure for its sponsors, noting it would "explicitly" ban the federal government from creating a registry.

    "As a mother there is nothing more important to me than protecting our kids. I am looking at each proposal to ensure it is common sense, will be effective and will not infringe on Second Amendment rights," she said.

    Landrieu has yet to indicate what she might support in a final bill. She said following Thursday's vote that the Second Amendment right to own firearms "is not to be taken away" but that the nation was "plagued by gun violence." Making no commitments, she said it was "worthy of a debate to see if we can find a common-sense solution."

    Debate begins next week on a measure forged by Manchin and Republican Patrick Toomey of Pennsylvania that would expand background checks less broadly than the overall legislation. The proposal would subject buyers in commercial settings like gun shows and the Internet to the checks but exempt transactions such as sales between friends and relatives.

    The Senate also is likely to hold votes on proposals to ban military-style weapons and high-capacity ammunition magazines, two measures that were excluded from the bill and are expected to be defeated. With so many votes ahead, and the potential for a number of procedural votes, any Democrat runs the risk of having one of their votes misconstrued in future TV ads.

    All are bracing for negative ads ? and pressure from those they anger.

    Gun control advocates holding rallies across the country have the deep pockets of New York Mayor Michael Bloomberg, who has pumped $12 million in TV advertising pressuring support for the measures. And an offshoot of Obama's campaign, Organizing for Action, planned to hold rallies in 14 states on Saturday to push for the measures.

    On the flip side, the NRA is certain to spend a chunk of money assailing anyone who backs the measure. Republicans, meanwhile, say the issue could serve as a strong motivating factor in rural states next year.

    "The discussion is devastating to Democrats ? that's why they stopped talking about it for a long time," said Brad Dayspring, a spokesman for the National Republican Senatorial Committee.

    ___

    Associated Press writer Matt Gouras in Helena, Mont., and Melinda Deslatte in Baton Rouge, La., contributed to this report.

    ___

    Follow Ken Thomas on Twitter: http://twitter.com/AP_Ken_Thomas

    Associated Press

    Source: http://hosted2.ap.org/APDEFAULT/89ae8247abe8493fae24405546e9a1aa/Article_2013-04-12-US-Democrats-Guns/id-955d3ffa8d8e4a99a0f811a345d2917f

    metro north taco bell taco bell