Wednesday, May 22, 2013

C Loop Issue - 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'] = 321559; //]]>

    3 Replies - 28 Views - Last Post: Today, 05:59 PM Rate Topic: -----

    #1 DblAAssassin ?Icon User is offline

    Reputation: 0

    • Posts: 9
    • Joined: 11-May 13

    Posted Today, 05:07 PM

    For some reason in this code the loop is not reading for lack of better words. When ever compiled/run it just completely skipped the loop.
    
 #include <stdio.h> #include <string.h> #include <conio.h>  void strip_newline(char *str, int size) {    int i;    for (i=0;i<size;++i){        if ( str[i] == '\n'){             str[i] = '\0';             return;             }        } }  int main() {   //Integers     int age;     char name[101];     char hh[4];     int total;     int counter;     counter = 0;     total = 0;     int yearly_visits;     yearly_visits = 0;     //Name     printf("Please Enter your name: \n");     fgets(name, 101, stdin);     strip_newline;     //Age     printf("Please Enter your Age: \n");     scanf("%d", &age);     //Heart History and For Loop (Yes)     printf("Do you have any history with Heart Issues? (Yes or No all Lowercase): \n");     fgets(hh, 4, stdin);     strip_newline;     if(strcmp(hh, "yes")==0) /* Incase you were wondering "hh" stands for Heart History */     {       printf("Alright for a whole month you are gonna keep this program open and record if you\n go to the doctor that day if yes put a 1\n if no put a 0.\n");       for(counter=0; counter<30; counter++)       {          printf("Please Enter 0 if you visited the doctor for your heart to day or 1 if you did: ");          total = counter + total;          counter = counter + 1;       }     }     //"No" for loop/if statement     if(strcmp(hh, "no")==0)     {       printf("Alright for a whole month you are gonna keep this program open and record if you\n go to the doctor that day if yes put a 1\n if no put a 0.\n");       for(counter=0; counter<30; counter++)       {          printf("Please Enter 0 if you visited the doctor for your heart to day or 1 if you did: ");          total = counter + total;          counter = counter + 1;       }            }     //Yearly Calculation     yearly_visits = total * 12; /* The total by 12 for all the months. */     printf("Please Note that the data may be innacurate due to a good or bad month.\n");     printf("The total time you visited this month was %d and the total time you'll visit this month are %d.", total, yearly_visits);          getch();  }  


    Is This A Good Question/Topic? 0

    Replies To: C Loop Issue

    #2 Skydiver ?Icon User is online

    Reputation: 1916

    • Posts: 5,725
    • Joined: 05-May 12

    Re: C Loop Issue

    Posted Today, 05:44 PM

    You have to pass parameters to call strip_newline(). All you have currently is just the function name without passing any parameters to it.


    #3 DblAAssassin ?Icon User is offline

    Reputation: 0

    • Posts: 9
    • Joined: 11-May 13

    Re: C Loop Issue

    Posted Today, 05:51 PM

    Could you explain. The way that strip_newline is called is how I was thought.


    #4 Skydiver ?Icon User is online

    Reputation: 1916

    • Posts: 5,725
    • Joined: 05-May 12

    Re: C Loop Issue

    Posted Today, 05:59 PM

    Let me turn the question around. Why do you call fgets() the way you do passing parameters? Why not just use:
    
 fgets; 

    if you expect
    
 strip_newline; 

    to work.

    Page 1 of 1


    Source: http://www.dreamincode.net/forums/topic/321559-c-loop-issue/

    tupac back tax deadline death race buffet rule carlos santana dodgers triple play baa

    Despite Rubio?s wooing, radio hosts protest immigration bill

    U.S. Marco Rubio (R-FL) stand with other senators in the gang of eight in an April news conference on immigration??

    Conservative radio talk show hosts have signed a letter opposing the sweeping immigration reform bill in the Senate, bucking tea party favorite Sen. Marco Rubio's attempts to win their support for the bill, which combines enhanced border security with a legalization program for the nation's unauthorized immigrants. Rubio, a member of the "gang of eight" senators who drafted the bill, has become the most prominent conservative spokesman for its passage.

    Conservative talk show host Laura Ingraham, who had Rubio on her show multiple times in the past few months to let him make his pitch for the bill, signed onto the open letter that says the "unsalvageable" measure "would do more harm than good." The statement, signed by more than 100 conservative groups and leaders, argues that the bill is laden with earmarks and "rewards" law breakers by allowing most of the country's 11 million undocumented immigrants to legalize if they pass a background check and pay fines.

    Some influential conservatives have argued that the party needs to embrace reform in order to combat its declining support among Hispanic voters and to fix a broken system, even though the bill is also high on President Barack Obama's agenda.

    In the past, most in the right-wing talk show world have argued that any legalization of unauthorized immigrants is unacceptable "amnesty," forming a unified front that has helped kill previous attempts at reform under George W. Bush. But Rubio had appeared to make inroads with Ingraham and syndicated hosts Lars Larson and Mark Levin, who also signed the letter, this spring when he appeared on their shows.

    Rubio made the case to all three hosts that the current immigration system provides "de facto amnesty" to unauthorized immigrants, while his bill will hold them accountable for overstaying visas or entering the country illegally. Levin, for one, seemed receptive to the argument, saying after his interview with the senator in April that, "It's a problem, we've got to address this problem, and he's right."

    He apparently changed his mind.

    Ingraham blasted her disenchantment with Rubio on her show last week, when she said Republicans had "put all our hopes in a person, instead of in principles," when they trusted Rubio to negotiate on their behalf for immigration reform.

    Rush Limbaugh was notably absent from the list of signatories, though his brother, conservative commentator David Limbaugh, signed. Rush Limbaugh said when Rubio appeared on his show in April that he endorsed the senator as a "genuine conservative," but that he couldn't support the immigration bill.

    We write to express our serious concerns regarding the Gang of Eight's immigration bill, S. 744. We oppose this bill and urge you to vote against it when it comes to the Senate floor. No matter how well intentioned, the Schumer-Rubio bill suffers from fundamental design flaws that make it unsalvageable. Many of us support various parts of the legislation, but the overall package is so unsatisfactory that the Senate would do better to start over from scratch.

    We have a variety of concerns; some of us share only one, others share all. Among these concerns are that the bill:

    • Is bloated and unwieldy along the lines of Obamacare or Dodd-Frank;
    • Cedes excessive control over immigration law to an administration that has repeatedly proven itself to be untrustworthy, even duplicitous;
    • Legalizes millions of illegal immigrants before securing the borders, thus ensuring future illegal immigration;
    • Rewards law breakers and punishes law enforcement, undermining the rule of law;
    • Hurts American job-seekers, especially those with less education;
    • Threatens to bankrupt our already strained entitlement system;
    • Expands government by creating new bureaucracies, authorizing new spending, and calling for endless regulations;
    • Contains dangerous loopholes that threaten national security;
    • Is shot through with earmarks for politically connected interest groups;
    • Overwhelms our immigration bureaucracy, guaranteeing widespread fraud.

    Reforming our immigration system is an important priority. But S.744 is such a defective measure that it would do more harm than good. We urge you to vote against it and against any cloture vote to bring up the bill. Only then can a constructive, measured debate take place on how to improve America's immigration policy.

    Signed (affiliations are included for identification purposes only):

    List of Gang of 8 Coalition Opposition Letter Signers

    National Conservative Leaders

    Barbara Anderson, Citizens for Limited Taxation

    Gary Bauer, Campaign for Working Families

    Rev. C.L. Bryant, One Nation Back to God

    Howie Carr, New England Talk Radio Host

    Conn Carroll, Senior Editorial Writer, Washington Examiner

    Ann Corcoran, Refugee Resettlement Watch

    Monica Crowley, Ph.D., Nationally Syndicated Radio Host

    Glynn Custred, Professor Emeritus CSU East Bay

    Jim Eagan, Sumner United for Responsible Government (Tennessee)

    Elaine Donnelly, Founder and President, Center for Military Readiness

    John Eastman, former Dean Chapman University Law School

    Ken Eldred, CEO, Living Stones Foundation

    Erick Erickson, Editor of RedState

    Maria Espinoza, Houston Eagle Forum, The Remembrance Project

    T. Willard Fair, President & CEO, Urban League of Greater Miami, Inc.

    John Fonte, Hudson Institute

    David Frum, Frum Forum

    Brigitte Gabriel, President and Founder, Act for America

    Frank Gaffney, President Center for Security Policy

    Victor Davis Hanson, Hoover Institution, Stanford University

    Donna Hearne, Constitutional Coalition, St. Louis, Missouri

    John Hinderaker, Powerline.com

    David Horowitz, David Horowitz Freedom Center

    Laura Ingraham, Nationally Syndicated Radio Host

    Micky Kaus, Columnist, Daily Caller, author The End of Equality

    Roger Kimball, Encounter Books and The New Criterion

    Cliff Kincaid, President, America?s Survival

    Mark Krikorian, Center for Immigration Studies

    Stanley Kurtz, Senior Fellow at the Ethics and Public Policy Center

    Kelly Monroe Kullberg, Christians for a Sustainable Economy

    Stanley Kurtz, Senior Fellow at the Ethics and Public Policy Center

    Lars Larson, Radio Host Compass Media Networks

    Mark Levin, Author and Radio Host

    David Limbaugh, Lawyer and Author

    Herb London, President of the London Center for Policy Research

    Dr. Gina Loudon, Nationally Syndicated Radio Talk Show host

    Michelle Malkin, author of Invasion and syndicated columnist

    Ed Martin, Chairman Missouri Republican Party

    Jenny Beth Martin, Co-Founder and National Coordinator, Tea Party Patriots

    Ken Masugi, Senior Fellow, The Claremont Institute

    Andy McCarthy, executive director, Philadelphia Freedom Center

    Eric Metaxas, Author and Speaker

    Paul Mirengoff, Powerline.com

    Frank L. Morris, Sr., Ph. D.

    Mike Needham, CEO Heritage Action

    Peter K. N??ez, Former U. S Attorney Southern District of California, Former Assistant Secretary for Enforcement Department of the Treasury

    Rev. Rick Scarborough; President of Vision America Action

    John O?Sullivan, Editor-at-Large, National Review

    Daniel Pipes, President, Middle East Forum

    Judson Phillips, Founder Tea Party Nation

    Andy Ramirez, Law Enforcement Advocate and Journalist

    Sandy Rios, Vice-President Family PAC Federal and Morning Host for AFR Talk

    Phyllis Schlafly, President and Founder Eagle Forum

    Smart Girl Politics Action

    Carol Swain, Professor of Political Science and of Law, Vanderbilt University

    Tea Party Nation

    Virginia Thomas, Liberty Consulting

    Brad Thor, #1 New York Times Bestselling Author

    Richard Viguerie

    Former Congressman Allen West

    Tom West, Professor Hillsdale College

    Tim Wildmon, President of the American Family Association and American Family Radio

    Grassroots Activists throughout the Country

    Alabama Federation of Republican Women

    American Grizzlies United (Wisconsin)

    Angela Bean, Coordinator South Atlanta Tea Party Patriots (Georgia)

    Blanchard Tea Party (Idaho)

    Jack and Joan Billman, Greencastle Defenders of Liberty, Greencastle, Indiana

    Martha Brewer, Lamar County Tea Party Patriots (Alabama)

    Canton T.E.A. Party (Georgia)

    Sam Clovis, President Serious Civics for America, Inc. (Iowa)

    Common Sense Campaign of South Alabama

    Carroll County Tea Party Association (Georgia)

    Darin Danielski, Lake County Area Defenders of Liberty, Oconomowoc, Wisconsin

    Dyersville Tea Party (Iowa)

    Kay Edmonds, Precinct Delegate, Clinton, MI, l9.12 Forum Steering Committee Member, Lenawee GOP Executive Committee Member, Veteran (Post Korea)

    Empower Indiana (Indiana)

    Hamilton County Patriots (Indiana)

    Mark Herr, The Midsouth Tea Party (Tennessee)

    Dustin Inmman Society, Georgia

    Bill & Prudence Fields, Eagle Forum Virginia

    Friends of Idaho

    Georgia Conservatives in Action

    Kay Godwin and Pat Tippett, Co-Chairs, Georgia Conservatives in Action

    Becky Gerritson, President Wetumpka TEA Party, Wetumpka, Alabama

    Donna Goeddaeus, Northwoods Patriots Tea Party, Conover, Wisconsin

    Green Bay (Brown County) Wisconsin TEA Party

    Greencastle Defenders of Liberty (Indiana)

    Ron Hei, Tea Party Patriots of Covington County

    Wally Hauck, Ph.D., President of Optimum Leadership, Member of Milford, CT Republican Town Committee

    Marcia Hora, Iowa Grassroots Coalition

    Illinois Tea Party

    Danny B. Joyner, Commander, Alabama Patriots, Brewton, Alabama

    Dave Kramer, Dyersville Tea Party (Iowa)

    Las Vegas Valley Tea Party (Nevada)

    Janna Loar, State Leader Ohio Counts

    Michigan Eagle Forum

    Montgomery Tea Party (Alabama)

    Lisa Nancollas, Mifflin County Tea Party Patriots and Pennsylvania State Coordinator Tea Party Patriots

    Sara Jo Odom, Eagle Forum Oklahoma

    Patriots of Liberty TEA Party, Auburn, Alabama

    Bobbie Patray, President Eagle Forum Tennessee

    Carol Payne, Eagle Forum Lubbock, Texas

    Pennsylvania Coalition for Responsible Government

    John Putnam, Chairman, Jasper County Republican Central Committee (Missouri)

    Merre Putnam, State Committewoman, 32nd Senatorial District

    Steve Ramey and David Hancock, Gwinnett Tea Party (Atlanta)

    Russell Ramland Park Cities/Preston Hollow Leadership Forum, Dallas, Texas

    Jennifer Schubert-Akin, Activist Steamboat Springs, Colorado

    Janet Smith, Local Coordinator, Greenfield Area Tea Party, Greenfield Indiana

    Standpoint Tea Party Patriots (Idaho)

    Rainy Day Patriots (Alabama)

    Jeff Schwilk, San Diegans for Secure Borders Coalition

    Kim Simac and Shirley Kufeldt, Northwood Patriots, Eagle River, Wisconsin

    Todd Isaac ?Ike? Skelton Lebanon Tea Party (Missouri)

    Janet Smith, Greenfield Area Tea Party (Indiana)

    Loretta and Ricky Short, Wetumpka TEA Party (Alabama)

    Eunie Smith, President, Eagle Forum of Alabama

    South West Pennsylvania Eagle Forum

    Pam Stout, Idaho State Coordinator, Tea Party Patriots

    Barbara Susco, Florida Eagle Forum

    Taxed Enough Already Party, Barbour County, Alabama

    Taxed Enough Already Party, Quitman County, Georgia

    Tea Party North (Indiana)

    Vanderburgh County Tea Party Patriots (Indiana)

    Dawn Wildman SoCal Tax Revolt Coalition, Inc.

    Don and Skeet Workman, Eagle Forum Lubbock, Texas

    Sally Zelikovsky, Founder of Bay Area Patriots and Coordinator of San Francisco Tea Party

    Dennis Zellaha, Tea Party Patriots and Iowa Grassroots Coalition (Iowa)

    Source: http://news.yahoo.com/blogs/ticket/despite-rubio-wooing-radio-hosts-protest-immigration-reform-040037879.html

    happy thanksgiving Macys Thanksgiving Day Parade 2012 Turkey Cooking Times Butterball mashed potatoes Apple Black Friday how to cook a turkey

    Immigration bill heads to full Senate

    WASHINGTON (AP) ? A far-reaching bill to remake the nation's immigration system is headed to the full Senate, where tough battles are brewing on gay marriage, border security and other contentious issues, with the outcome impossible to predict.

    The Senate Judiciary Committee approved the measure 13-5 Tuesday night, setting up an epic showdown on the Senate floor after Congress' Memorial Day recess. The legislation is one of President Barack Obama's top domestic priorities ? yet it also gives the Republican Party a chance to recast itself as more appealing to minorities.

    Many involved still vividly recall the last time the Senate took up a major immigration bill, in 2007, beginning with high hopes only to see their efforts collapse on the Senate floor amid a public backlash and interest group defections.

    Some expressed optimism for a better outcome this time around as the Judiciary Committee gave its bipartisan approval. Three Republicans ? Sens. Lindsey Graham of South Carolina and Jeff Flake of Arizona, both authors of the bill, and Sen. Orrin Hatch of Utah ? joined the 10 committee Democrats in supporting the measure.

    "We've demonstrated to the United States Senate we can all work together, Republicans and Democrats," said the panel's chairman, Sen. Patrick Leahy, D-Vt. "Now let's go out of this room and work together with the other members of the Senate, and with the other body (the House), and more importantly work with all Americans, and all those who wish to be Americans."

    In a statement, Obama applauded the committee's action and said the bill was "largely consistent with the principles of common-sense reform I have proposed and meets the challenge of fixing our broken immigration system."

    The legislation would create new routes for people to come legally to the U.S. to work at all skill levels, tighten border security and workplace enforcement, and offer a chance at citizenship to the 11 million people here illegally.

    Senate Majority Leader Harry Reid, D-Nev., has said he would bring the legislation to the Senate floor early next month for a debate that some aides predicted could consume a month or more. The fate of immigration legislation in the House was even less clear, although it was due to receive a hearing in the House Judiciary Committee on Wednesday.

    It was Leahy's 11th-hour decision to hold back on an amendment to extend immigration rights to same-sex married couples that cleared the way for the bill's approval.

    Until Leahy began speaking on the issue to a hushed hearing room Tuesday evening, it wasn't clear how the matter, which had hovered over the three weeks of committee sessions to review the legislation, would play out.

    Leahy had been under pressure from gay groups to offer the amendment, which would allow gay married Americans to sponsor their foreign-born spouses for green cards like straight married Americans can. But Republican supporters of the bill warned that including such a measure would cost their support. As the committee neared the end of its work, officials said Leahy had been informed that both the White House and Senate Democrats hoped he would not risk the destruction of months of painstaking work by putting the issue to a vote.

    "I don't want to be the senator who asks people to choose between the love of their life and the love of their country," Leahy said, adding that he wanted to hear from others on the committee.

    In response, he heard a chorus of pleas from the bill's supporters not to force a vote that they warned would lead to the collapse of Republican support and the bill's demise.

    "I don't want to blow this bill apart," said Sen. Dianne Feinstein, D-Calif., the first to speak up.

    "I believe in my heart of hearts that what you're doing is the right and just thing," said Sen. Richard Durbin, D-Ill. "But I believe this is the wrong moment, that this is the wrong bill."

    Sens. Chuck Schumer, D-N.Y., and Al Franken, D-Minn., added their voices, and Leahy announced that, "with a heavy heart," he would withdraw his amendment.

    Gay rights groups voiced outrage, and the issue is certain to re-emerge when the full Senate debates the legislation. But it is doubtful that sponsors can command the 60 votes that will be needed to make it part of the legislation.

    In the hours leading to a final vote, the panel also agreed to a last-minute compromise covering an increase in the visa program for high-tech workers, a deal that brought Hatch over to the ranks of supporters.

    Under the bill, the number of highly skilled workers admitted to the country would increase greatly, but there were also protections aimed at ensuring U.S. workers get the first shot at jobs, and high-tech companies objected to some of those.

    Under the deal, companies in which foreign labor accounts for at least 15 percent of the skilled workforce would be subjected to tighter conditions than businesses less dependent on H-1B visa holders, and requirements on recruiting and hiring and firing of U.S. workers would be relaxed.

    In defeat, opponents said they, too, wanted to overhaul immigration law, but not the way that drafters of the legislation had done.

    Sen. Charles Grassley, R-Iowa, recalled that he had voted to give "amnesty" to those in the country illegally in 1986, the last time Congress passed major immigration legislation. He said that bill, like the current one, promised to crack down on illegal immigration, but said it had failed to do so.

    "No one disputes that this bill is legalization first, enforcement later. And that's just unacceptable to me and to the American people," he said.

    ___

    AP White House Correspondent Julie Pace contributed to this report.

    Source: http://news.yahoo.com/immigration-bill-heads-full-senate-072306686.html

    grand jury ozzie guillen fidel castro darvish george zimmerman website edmund fitzgerald uss enterprise white house easter egg roll 2012

    Minus environment, patterns still emerge: Computational study tracks E. coli cells' regulatory mechanisms

    May 21, 2013 ? Environment is not the only factor in shaping regulatory patterns -- and it might not even be the primary factor, according to a new Rice University study that looks at how cells' protein networks relate to a bacteria's genome.

    The Rice lab of computer scientist Luay Nakhleh reported in the Proceedings of the National Academy of Sciences that when environmental factors are eliminated from an evolutionary model, mutations and genetic drift can give rise to the patterns that appear. They studied changes that show up in regulatory networks that determine the organism's characteristics.

    Nakhleh and lead author Troy Ruths, a Rice graduate student, said their work is an important step toward understanding Cis-regulatory networks (CRNs), which play a dominant role in cells' information processing systems. Cis -- a Latin word for "on the same side as" -- regulators are regions of DNA (or RNA) that regulate the expression of genes located on the same DNA molecule.

    The researchers generated 1,000 computer models of random Escherichia coli regulatory networks and watched them evolve through millions of generations. However, they did not program into the models environmental factors that might have prompted change through natural selection. Their results supported other studies that suggested networks might evolve spontaneously through mutation, recombination, gene duplication and genetic drift.

    Their "neutral evolutionary" approach sidestepped one taken by other researchers who, Nakhleh said, have tried to understand cellular protein networks by looking at motifs. These motifs are short sequences called subgraphs in the network that appear more frequently than is expected by chance alone. "Biological networks are complex systems, and the community has responded by developing lots of mathematical and sophisticated computational analysis tools to understand these networks," he said. Those researchers argued the emergence and conservation of these regulatory motifs were largely due to adaptation to environment; the Rice researchers argued that isn't necessarily so.

    Nakhleh said he and Ruths decided to tie what scientists now know about the genome -- the entire collection of an organism's DNA -- to the evolution of such networks.

    "Instead of jumping directly to the network, where we don't understand much, we decided to look back at our broad knowledge about the genome and link it to these networks," he said. "In this paper, we zoomed in on the issue of how much of what we see in the network is a result of neutral evolution, where there's no selection involved. How much of what we are seeing is a side effect, so to speak, of random mutations and genetic drift?"

    The wealth of genomic data available for E. coli encouraged the Rice researchers to build a sophisticated model that matched Cis-regulatory networks to their related DNA. "If there is any model in the prokaryotic world that has been studied well and has data, it's E. coli," Nakhleh said.

    Their conclusion, put simply by the paper, is that "neutral evolution acting on genomic properties" can indeed explain bacterial regulatory patterns.

    "There are two sides to the paper," Nakhleh said. "One is that many of these motifs have nothing adaptive in their origin. They emerge because mutation is a random process.

    "The second and, I think, more powerful part of the story is that for the first time, the extent of neutrality in a network has been quantified. ? Our model will never be able to tell you, 'I can rule out adaptation from this.' What we are saying is that you do not need to invoke adaptation to explain what you are seeing.

    "Now we can start to understand how changes at the genome level can result in how these networks form, what some researchers are calling the 'design principles' behind these networks," Nakhleh said. "I don't think there is anything being designed here, so to speak. Patterns emerge in response to mutations; genetic drift and selection then affect the frequencies of these patterns. We showed that genetic drift can explain much of these frequencies."

    The National Science Foundation, Department of Energy, Alfred P. Sloan Foundation and Guggenheim Foundation supported the research. Nakhleh is an associate professor of computer science and ecology and evolutionary biology.

    Source: http://feeds.sciencedaily.com/~r/sciencedaily/top_news/~3/hKSyMWSyBTE/130521194153.htm

    Tippi Hedren Big Tex Sweetest Day optimal Samantha Steele Espn goog Sylvia Kristel

    Advance in nanotech gene sequencing technique

    May 20, 2013 ? The allure of personalized medicine has made new, more efficient ways of sequencing genes a top research priority. One promising technique involves reading DNA bases using changes in electrical current as they are threaded through a nanoscopic hole.

    Now, a team led by University of Pennsylvania physicists has used solid-state nanopores to differentiate single-stranded DNA molecules containing sequences of a single repeating base.

    The study was led by Marija Drndi?, an associate professor in the Department of Physics and Astronomy in the School of Arts and Sciences, along with graduate students Kimberly Venta and Matthew Puster and post-doctoral researchers Gabriel Shemer, Julio A. Rodriguez-Manzo and Adrian Balan. They collaborated with assistant professor Jacob K. Rosenstein of Brown University and professor Kenneth L. Shepardof Columbia University.

    Their results were published in the journal ACS Nano.

    In this technique, known as DNA translocation measurements, strands of DNA in a salt solution are driven through an opening in a membrane by an applied electric field. As each base of the strand passes through the pore, it blocks some ions from passing through at the same time; amplifiers attached to the nanopore chip can register the resulting drop in electrical current. Because each base has a different size, researchers hope to use this data to infer the order of the bases as the strand passes through. The differences in base sizes are so small, however, that the proportions of both the nanopores and membranes need to be close those of the DNA strands themselves -- a major challenge.

    The nanopore devices closest to being a commercially viable option for sequencing are made out of protein pores and lipid bilayers. Such protein pores have desirable proportions, but the lipid bilayer membranes in which they are inserted are akin to a film of soap, which leaves much to be desired in terms of durability and robustness.

    Solid-state nanopore devices, which are made of thin solid-state membranes, offer advantages over their biological counterparts -- they can be more easily shipped and integrated with other electronics -- but the basic demonstrations of proof-of-principle sensitivity to different DNA bases have been slower.

    "While biological nanopores have shown the ability to resolve single nucleotides, solid-state alternatives have lagged due to two challenges of actually manufacturing the right-sized pores and achieving high-signal, low-noise and high-bandwidth measurements," Drndi? said. "We're attacking those two challenges here."

    Because the mechanism by which the nanopore differentiate between one type of base and another is by the amount of the pore's aperture that is blocked, the smaller a pore's diameter, the more accurate it is. For the nanopore to be effective at determining a sequence of bases, its diameter must approach the diameter of the DNA and its thickness must approach that of the space between one base and the next, or about 0.3 nanometers.

    To get solid-state nanopores and membranes in these tiny proportions, researchers, including Drndi?'s group, are investigating cutting-edge materials, such as graphene. A single layer of carbon atoms in a hexagonal lattice, graphene membranes can be made a little as about 0.5 nanometers thick but have their own disadvantages to be addressed. For example, the material itself is hydrophobic, making it more difficult to pass strands of DNA through them.

    In this experiment, Drndi? and her colleagues worked with a different material -- silicon nitride -- rather than attempting to craft single-atom-thick graphene membranes for nanopores. Treated silicon nitride is hydrophilic and has readily allowed DNA translocations, as measured by many other researchers during the last decade. And while their membrane is thicker, about 5 nanometers, silicon nitride pores can also approach graphene in terms of thinness due to the way they are manufactured.

    "The way we make the nanopores in silicon nitride makes them taper off, so that the effective thickness is about a third of the rest of the membrane," Drndi? said.

    Drndi? and her colleagues tested their silicon nitride nanopore on homopolymers, or single strands of DNA with sequences that consist of only one base repeated several times. The researchers were able to make distinct measurements for three of the four bases: adenine, cytosine and thymine. They did not attempt to measure guanine as homopolymers made with that base bind back on themselves, making it more difficult to pass them through the nanopores.

    "We show that these small pores are sensitive to the base content," Drndi? said, "and we saw these results in pores with diameters between 1 and 2 nanometers, which is actually encouraging because it suggests some manufacturing variability may be okay."

    Source: http://feeds.sciencedaily.com/~r/sciencedaily/health_medicine/genes/~3/vAZh4aFM0Ds/130520133718.htm

    robert deniro mexico news the talented mr ripley weather new orleans orcl the hartford illinois primary 2012

    New method for tailoring optical processors

    May 21, 2013 ? Rice University scientists have unveiled a robust new method for arranging metal nanoparticles in geometric patterns that can act as optical processors that transform incoming light signals into output of a different color. The breakthrough by a team of theoretical and applied physicists and engineers at Rice's Laboratory for Nanophotonics (LANP) is described this week in the Proceedings of the National Academy of Sciences.

    Rice's team used the method to create an optical device in which incoming light could be directly controlled with light via a process known as "four-wave mixing." Four-wave mixing has been widely studied, but Rice's disc-patterning method is the first that can produce materials that are tailored to perform four-wave mixing with a wide range of colored inputs and outputs.

    "Versatility is one of the advantages of this process," said study co-author Naomi Halas, director of LANP and Rice's Stanley C. Moore Professor in Electrical and Computer Engineering and a professor of biomedical engineering, chemistry, physics and astronomy. "It allows us to mix colors in a very general way. That means not only can we send in beams of two different colors and get out a third color, but we can fine-tune the arrangements to create devices that are tailored to accept or produce a broad spectrum of colors."

    The information processing that takes place inside today's computers, smartphones and tablets is electronic. Each of the billions of transistors in a computer chip uses electrical inputs to act upon and modify the electrical signals passing through it. Processing information with light instead of electricity could allow for computers that are both faster and more energy-efficient, but building an optical computer is complicated by the quantum rules that light obeys.

    "In most circumstances, one beam of light won't interact with another," said LANP theoretical physicist Peter Nordlander, a co-author of the new study. "For instance, if you shine a flashlight at a wall and you cross that beam with the beam from a second flashlight, it won't matter. The light that comes out of the first flashlight will pass through, independent of the light from the second.

    "This changes if the light is traveling in a 'nonlinear medium,'" he said. "The electromagnetic properties of a nonlinear medium are such that the light from one beam will interact with another. So, if you shine the two flashlights through a nonlinear medium, the intensity of the beam from the first flashlight will be reduced proportionally to the intensity of the second beam."

    The patterns of metal discs LANP scientists created for the PNAS study are a type of nonlinear media. The team used electron-beam lithography to etch puck-shaped gold discs that were placed on a transparent surface for optical testing. The diameter of each disc was about one-thousandth the width of a human hair. Each was designed to harvest the energy from a particular frequency of light; by arranging a dozen of the discs in a closely spaced pattern, the team was able to enhance the nonlinear properties of the system by creating intense electrical fields.

    "Our system exploits a particular plasmonic effect called a Fano resonance to boost the efficiency of the relatively weak nonlinear effect that underlies four-wave mixing," Nordlander said. "The result is a boost in the intensity of the third color of light that the device produces."

    Graduate student and co-author Yu-Rong Zhen calculated the precise arrangement of 12 discs that would be required to produce two coherent Fano resonances in a single device, and graduate student and lead co-author Yu Zhang created the device that produced the four-wave mixing -- the first such material ever created.

    "The device Zhang created for four-wave mixing is the most efficient yet produced for that purpose, but the value of this research goes beyond the design for this particular device," said Halas, who was recently named a member of the National Academy of Sciences for her pioneering research in nanophotonics. "The methods used to create this device can be applied to the production of a wide range of nonlinear media, each with tailored optical properties."

    Source: http://feeds.sciencedaily.com/~r/sciencedaily/top_news/top_technology/~3/NXwTwOcHafs/130521121603.htm

    google io Kelly Rowland Dirty Laundry star trek abercrombie and fitch Rolando McClain angelina jolie abercrombie

    Tuesday, May 21, 2013

    RolePlayGateway?

    It was one of those comfortably warm days, with a light wispy breeze. The kind that you could stay out all day and not worry about getting burnt or too hot. A large car pulled up to one of the houses on the street and a tall woman stepped out of the car slowly a warm smile on her face. Shutting the driver side door she walked to the otherside of the car and opened the door carefully holding her hand out she spoke slowly.

    " come on Ali.... We're home.....this....home" she said wiggling her fingers trying to intice her son out of the car. Ali looked at the large house with interest his eyes full of curiosity. He took his mothers hand gently his grip not really sure of stepping out of the vehicle. After gently coaxing Ali out of the car they both walked slowly Ali's mother supporting his back since Ali wasn't that keen on walking having spent most of the hours in a day in a wheelchair.

    Walking slowly Ali kept his eyes on the floor concentrating on walking both of his hands held onto his mothers arms tightly. " home" he mumbled softly nodding to himself as he walked stopping at the door he tilted his head. His eyes focused on the glass panels showing brightly coloured flowers and birds. Ali liked bright colours as well as textures so he could see and feel them.

    Opening the door slowly Ali's mother helped him up the step and lead him to the living room where some of Ali's toys and his book which contained pictures of things so he could point to them, it was Ali's form of communication at the moment aside from him saying a few words like 'mom', 'dad','yes' and 'no'. But with Ali being home now it was a hope that Ali would speak and learn new things that a normal teenager should do.

    " good boy Ali...now you sit here and we will wait for Dad to come back with everything you need" she sat Ali down in a large chair that held Ali in an upright position incase Ali became unstable when he tried to move a certain way. Ali sat down his fingers feeling the texture of the chair it was softer that the one in the hospital. He smiled and clapped his hands together softly he looked out of the window at the trees. His mother watched him for a while and smiled she was glad her son was home and safe, away from the hospital, his new life was begining and he had to meet his brother yet. His mother and father had explained to Ali about his brother and showed him pictures, although they weren't sure how much Ali understood.

    Source: http://feeds.feedburner.com/RolePlayGateway

    bachelor finale courtney robertson ben flajnik hunger games premiere red meat bachelor ben jon hamm kim kardashian

    Candidate Caught Defacing Campaign Signs (Taegan Goddard's Political Wire)

    Share With Friends: Share on FacebookTweet ThisPost to Google-BuzzSend on GmailPost to Linked-InSubscribe to This Feed | Rss To Twitter | Politics - Top Stories Stories, RSS Feeds and Widgets via Feedzilla.

    Source: http://news.feedzilla.com/en_us/stories/politics/top-stories/307086964?client_source=feed&format=rss

    social darwinism wisconsin recall election april 4 santa monica college wisconsin primary dallas fort worth airport texas tornados

    Supreme Court declines to hear Alaska climate change case

    By Lawrence Hurley

    WASHINGTON (Reuters) - The Supreme Court on Monday declined to hear an Alaskan village's claim that it should be able to sue oil companies and utilities for damages attributed to climate change.

    Lawyers for the village of Kivalina wanted various named defendants responsible for greenhouse emissions, including Exxon Mobil Corp, Chevron Corp and Duke Energy Corp, to pay damages for greater flooding and erosion that they say have caused by a reduction in sea ice.

    The court's refusal to take the case means an appeals court ruling in favor of the defendants remains intact.

    The appeals court said that Kivalina could not pursue its lawsuit under federal common law because the Clean Air Act and Obama administration regulations aimed at cutting emissions displaced such claims.

    That decision was prompted in large part by a 2011 Supreme Court decision, American Electric Power v. Connecticut, in which the court held unanimously that similar claims were displaced.

    Kivalina, an Inupiat native community of about 400 people, sits on the end of a six-mile barrier island on the northwest coast of Alaska.

    The case is Kivalina v. Exxon Mobil Corp, et al, U.S. Supreme Court, No. 12-1072.

    (Reporting by Lawrence Hurley; Editing by Howard Goller and Grant McCool)

    Source: http://news.yahoo.com/supreme-court-declines-hear-alaska-climate-change-case-141110347.html

    Emanuel Steward nyc.gov SAT Notre Dame Football Schedule detroit tigers Tsunami Lil Reese

    JButton To Save Data Of Textfields To A File - Java | 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'] = 32; ipb.vars['search_type_2'] = 'topic'; ipb.vars['search_type_id_2'] = 321490; //]]>

    2 Replies - 25 Views - Last Post: 53 minutes ago Rate Topic: ***** 1 Votes

    #1 puuts ?Icon User is offline

    Reputation: 0

    • Posts: 2
    • Joined: Yesterday, 09:35 PM

    Posted Yesterday, 09:38 PM

    Hello All, Good day! I'm new in Java and Hopefully you can help me with my first post :)

    I have a form with text fields (txt_field1, txt_field2, txt_field3) radiobutton (rad_btn1, rad_btn2) and button (btn_save, btn_cancel)

    I just want, when the user input a data in txt_field1,txt_field2,txt_field3, choose rad_btn1 and click btn_save, it will save in a file prompting "Please enter file name to save" and then it will message "File has been successfully created".


    Is This A Good Question/Topic? 0

    Replies To: JButton to save data of textfields to a file

    #2 puuts ?Icon User is offline

    Reputation: 0

    • Posts: 2
    • Joined: Yesterday, 09:35 PM

    Re: JButton to save data of textfields to a file

    Posted Yesterday, 09:49 PM

    txt_field1 = String
    txt_field2 = double
    txt_field3 = double

    Below is the only code that i have :(

    
  package finalassignment;   public class JFrameNewAccount extends javax.swing.JFrame {        public JFrameNewAccount() {         initComponents();     }           @SuppressWarnings("unchecked")     // <editor-fold defaultstate="collapsed" desc="Generated Code">                               private void initComponents() {          jLabel1 = new javax.swing.JLabel();         jLabel2 = new javax.swing.JLabel();         jLabel3 = new javax.swing.JLabel();         rad_savings = new javax.swing.JRadioButton();         rad_checking = new javax.swing.JRadioButton();         jLabel4 = new javax.swing.JLabel();         jLabel5 = new javax.swing.JLabel();         jLabel6 = new javax.swing.JLabel();         btn_newaccountsave = new javax.swing.JButton();         btn_newaccountcancel = new javax.swing.JButton();         txt_accountnumber = new javax.swing.JTextField();         txt_accountname = new javax.swing.JTextField();         txt_initialbalance = new javax.swing.JTextField();         txt_overdraft = new javax.swing.JTextField();         txt_interestrate = new javax.swing.JTextField();          setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);         setTitle("NEW ACCOUNT");          jLabel1.setText("Account Number:");          jLabel2.setText("Account Name:");          jLabel3.setText("Type:");          rad_savings.setText("Savings");          rad_checking.setText("Checking");          jLabel4.setText("Initial Balance:");          jLabel5.setText("Overdraft:");          jLabel6.setText("Interest Rate:");          btn_newaccountsave.setText("Save");         btn_newaccountsave.addActionListener(new java.awt.event.ActionListener() {             public void actionPerformed(java.awt.event.ActionEvent evt) {                 btn_newaccountsaveActionPerformed(evt);             }         });          btn_newaccountcancel.setText("Cancel");         btn_newaccountcancel.addActionListener(new java.awt.event.ActionListener() {             public void actionPerformed(java.awt.event.ActionEvent evt) {                 btn_newaccountcancelActionPerformed(evt);             }         });          txt_accountnumber.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N         txt_accountnumber.setHorizontalAlignment(javax.swing.JTextField.CENTER);          txt_accountname.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N         txt_accountname.setHorizontalAlignment(javax.swing.JTextField.CENTER);          txt_initialbalance.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N         txt_initialbalance.setHorizontalAlignment(javax.swing.JTextField.CENTER);          txt_overdraft.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N         txt_overdraft.setHorizontalAlignment(javax.swing.JTextField.CENTER);          txt_interestrate.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N         txt_interestrate.setHorizontalAlignment(javax.swing.JTextField.CENTER);          javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());         getContentPane().setLayout(layout);         layout.setHorizontalGroup(             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)             .addGroup(layout.createSequentialGroup()                 .addGap(30, 30, 30)                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)                         .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, 75, javax.swing.GroupLayout.PREFERRED_SIZE)                         .addGroup(layout.createSequentialGroup()                             .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)                             .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)                             .addComponent(txt_accountnumber, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))                         .addGroup(layout.createSequentialGroup()                             .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 81, javax.swing.GroupLayout.PREFERRED_SIZE)                             .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)                             .addComponent(txt_accountname, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE))                         .addGroup(layout.createSequentialGroup()                             .addComponent(jLabel3)                             .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)                             .addComponent(rad_savings)                             .addGap(18, 18, 18)                             .addComponent(rad_checking))                         .addGroup(layout.createSequentialGroup()                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)                                 .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)                                 .addComponent(jLabel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 84, javax.swing.GroupLayout.PREFERRED_SIZE))                             .addGap(18, 18, 18)                             .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)                                 .addComponent(txt_interestrate)                                 .addComponent(txt_initialbalance)                                 .addComponent(txt_overdraft, javax.swing.GroupLayout.PREFERRED_SIZE, 149, javax.swing.GroupLayout.PREFERRED_SIZE))))                     .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()                         .addComponent(btn_newaccountsave, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)                         .addGap(30, 30, 30)                         .addComponent(btn_newaccountcancel, javax.swing.GroupLayout.PREFERRED_SIZE, 79, javax.swing.GroupLayout.PREFERRED_SIZE)                         .addGap(10, 10, 10)))                 .addContainerGap(43, Short.MAX_VALUE))         );         layout.setVerticalGroup(             layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)             .addGroup(layout.createSequentialGroup()                 .addGap(26, 26, 26)                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)                     .addComponent(jLabel1)                     .addComponent(txt_accountnumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))                 .addGap(18, 18, 18)                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)                     .addComponent(jLabel2)                     .addComponent(txt_accountname, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))                 .addGap(18, 18, 18)                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)                     .addComponent(jLabel3)                     .addComponent(rad_savings)                     .addComponent(rad_checking))                 .addGap(18, 18, 18)                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)                     .addComponent(jLabel4)                     .addComponent(txt_initialbalance, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))                 .addGap(18, 18, 18)                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)                     .addComponent(jLabel5)                     .addComponent(txt_overdraft, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))                 .addGap(18, 18, 18)                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)                     .addComponent(jLabel6)                     .addComponent(txt_interestrate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))                 .addGap(27, 27, 27)                 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)                     .addComponent(btn_newaccountsave, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE)                     .addComponent(btn_newaccountcancel, javax.swing.GroupLayout.PREFERRED_SIZE, 28, javax.swing.GroupLayout.PREFERRED_SIZE))                 .addContainerGap(28, Short.MAX_VALUE))         );          pack();     }// </editor-fold>                              private void btn_newaccountcancelActionPerformed(java.awt.event.ActionEvent evt) {                                                              this.setVisible(false);     }                                                          private void btn_newaccountsaveActionPerformed(java.awt.event.ActionEvent evt) {                                                             }                                                           public static void main(String args[]) {         /* Set the Nimbus look and feel */         //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">         /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.          * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html           */         try {             for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {                 if ("Nimbus".equals(info.getName())) {                     javax.swing.UIManager.setLookAndFeel(info.getClassName());                     break;                 }             }         } catch (ClassNotFoundException ex) {             java.util.logging.Logger.getLogger(JFrameNewAccount.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);         } catch (InstantiationException ex) {             java.util.logging.Logger.getLogger(JFrameNewAccount.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);         } catch (IllegalAccessException ex) {             java.util.logging.Logger.getLogger(JFrameNewAccount.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);         } catch (javax.swing.UnsupportedLookAndFeelException ex) {             java.util.logging.Logger.getLogger(JFrameNewAccount.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);         }         //</editor-fold>          /* Create and display the form */         java.awt.EventQueue.invokeLater(new Runnable() {             public void run() {                 new JFrameNewAccount().setVisible(true);             }         });     }     // Variables declaration - do not modify                          private javax.swing.JButton btn_newaccountcancel;     private javax.swing.JButton btn_newaccountsave;     private javax.swing.JLabel jLabel1;     private javax.swing.JLabel jLabel2;     private javax.swing.JLabel jLabel3;     private javax.swing.JLabel jLabel4;     private javax.swing.JLabel jLabel5;     private javax.swing.JLabel jLabel6;     private javax.swing.JRadioButton rad_checking;     private javax.swing.JRadioButton rad_savings;     private javax.swing.JTextField txt_accountname;     private javax.swing.JTextField txt_accountnumber;     private javax.swing.JTextField txt_initialbalance;     private javax.swing.JTextField txt_interestrate;     private javax.swing.JTextField txt_overdraft;     // End of variables declaration                    }  


    #3 bucano ?Icon User is online

    Reputation: 6

    • Posts: 6
    • Joined: 13-May 13

    Re: JButton to save data of textfields to a file

    Posted 53 minutes ago

    A simple look at the Java tutorials section revealed this: Reading and writing to a file in Java

    It is also better practice to declare variables at the top of your class file below the class declaration

    
  public class JFrameNewAccount extends javax.swing.JFrame {  //Global Variables Here  }  


    Page 1 of 1


    Source: http://www.dreamincode.net/forums/topic/321490-jbutton-to-save-data-of-textfields-to-a-file/

    Tiffany Six aaliyah jodie foster seahawks natalie wood patriots Sandy Hook Hoax

    SEO Tips for Twitterverse | social media marketing services ...

    Need Social Media Marketing Services in NH? SearchPro Systems is the solution for youTwitter is one of your company?s most important social media outlets. It allows you to connect with customers quickly and in a public forum that will help you build your public image. Using Twitter isn?t always easy though for your social media marketing services. You have to think of SEO (search engine optimization) every time you use Twitter. Improve your social media marketing services by following these SEO for Twitter tips to help you promote your business.

    • The Right Account Name: The URL of your Twitter profile will be your Twitter account name. To get the most out of SEO, put a relevant keyword in your account name for a boost. Figure out what keyword generates the most search volume and use that to help boost your search engine results. Make sure that your Twitter name conveys your company. This will make it clear what people will find on your Twitter account and will be more likely to read, repost, and respond to your tweets.
    • The Right User Name: Different from your account name, your username will show up next to your Twitter profile. It needs to convey what your brand and social media marketing services strategy is. Make sure to keep it short though so it?s easily retweetable.
    • Optimize your Bio: At max, your bio can consist of 160 characters. Like a description, you can plug in your most important keywords here, but don?t overstuff it with them. Be enticing and creative in your description to attract readers.
    • Increase Visibility: If your Twitter account isn?t easily accessible, no one will ever see it! Add a Twitter share button to your website or blog, let your readers and customers know about your Twitter profile in email or on your site, and promote it in new content. Your social media marketing services can be boosted by promoting your Twitter account to lead to more visitors.
    • Increase Linkbuilding: By having a Twitter account you automatically create a place online to create backlinks for your website or blog. This increases your SEO by having an active social media profile that sends traffic back to your site.
    • The First 42: This refers to the first 42 characters of your tweet, this gets included in your Tweet?s title tag. An important aspect for SEO as the title gets extra exposure on Twitter pages. The first 42 is where your most important keywords should go.
    • Keyword-centric Tweets: Keywords play an important role in any social media marketing services campaign and they need to be everywhere, especially in your individual tweets. This will get picked up by search engines and provide you with free organic traffic. Do a keyword analysis to figure out which are your most important keywords that will generate the most traffic for you.
    • Be Retweetable: Retweets are the way to get noticed on Twitter. You have your audience but then your tweet can also reach each and every one of your followers audience as well. This also means confidence in your Twitter account if you keep getting retweeted. What this means though is that you need to keep your tweets short and to the point. 120 characters and less will still be readable after a retweet.

    Twitter is one of the most powerful social media platforms out there that allows you to reach a wide and varied audience in a quick manner. By following these tips you can improve your social media marketing services and generate more traffic for your website or blog.

    Source: http://www.searchprosystems.com/seo-tips-for-the-twitterverse

    album of the year grammy red carpet grammy award winners the band perry grammy awards whitney houston autopsy dobie gray

    Jordan: Arab Spring paved way for press freedoms

    AMMAN, Jordan (AP) ? Jordan's prime minister says the Arab Spring has forced governments in the region to allow more freedom of expression and of the press.

    Abdullah Ensour said at a meeting of the Geneva-based International Press Institute on Monday that Jordan has "come a long way" in improving both legislation governing press freedoms and the standards of a national media still reeling under long years of state censorship.

    "Obviously, we're not yet where we want to be, but we are determined to continue," he added.

    Jordanian participants at the conference had complained of a controversial press and publications law blamed for significantly restricting press freedoms by placing harsh penalties on violators, ultimately forcing journalists to practice self-censorship.

    The IPI began its two-day annual World Congress meeting in Jordan on Monday.

    Source: http://news.yahoo.com/jordan-arab-spring-paved-way-press-freedoms-134401526.html

    mario manningham mario manningham williams syndrome hoya casa de mi padre corned beef and cabbage diners drive ins and dives

    Monday, May 20, 2013

    Court pondering two cases with religious connotations

    The Supreme Court has yet to decide if it will consider widely watched cases about public schools using a church facility to host graduation ceremonies, and the use of prayers to open township board meetings. But an answer could come as soon as today.

    Supreme_Court_of_the_United_StatesThe case of Elmbrook School District v. Doe involves a controversy over the rental and use of a church sanctuary to host graduation ceremonies for two public schools.

    The court is also considering another case with separation of church and state implications called Town of Greece v. Galloway.

    The court could announce some type of action on both cases on Monday morning, based on its conference last Thursday.

    Constitution Daily contributor Lyle Denniston covered the Elmbrook story and its history in detail last month.

    Related Story: Lyle Denniston: The Constitution and graduation ceremonies in church

    In Brookfield, Wisconsin, a western suburb of Milwaukee, the two local high schools for years staged graduation exercises in the sanctuary of Elmbrook Church, an evangelical congregation not affiliated with any denomination. The practice began in 2000 with a choice by one of the high schools, at the request of its graduating class, to move the ceremony out of the school?s gym, because of limited conditions there.

    The church?s leaders and its congregation had no role in the graduation celebration, and there was no one on hand to offer any kind of religious counseling.

    But for nine people, current and former students and their parents, the site itself was the problem, with its religious symbolism and significance. They said the exposure to artifacts of faith offended them and compromised the experience of graduating.

    The lawsuit continued, even though the district stopped using the sanctuary, as the challengers took the case on to the 7th U.S. Circuit Court of Appeals.

    A three-judge panel there agreed with a trial judge, finding no First Amendment religion problem. But the full circuit court reconsidered. Splitting 7-3, that court found that the Elmbrook Church site could not avoid being coercive for the students and their younger brothers and sisters attending the ceremony.

    The decision was then sent to the Supreme Court for consideration.

    At the heart of the case is the Establishment Clause in the Constitution?s First Amendment, which deals with issues about the separation of church and state.

    In its petition to the court, the attorneys for Elmbrook School District asked the court to decide, ?whether the Establishment Clause prohibits the government from conducting public functions ?such as high school graduation exercises in a church building, where the function has no religious content and the government selected the venue for reasons of secular convenience.?

    Among the parties involved in the case are The Becket Fund for Religious Liberty and the Americans United for Separation of Church and State.

    The court is also mulling over Town of Greece v. Galloway.

    In 2008 two Greece, N.Y., residents sued about the town?s practice of having a prayer delivered before board meetings.

    They believed the practice violated the First Amendment because of the types of prayers offered. A U.S. District Court said the prayers didn?t violate the First Amendment.? But the 2nd Circuit U.S. Court of Appeals in May 2012 overturned the lower court decision.

    ?The town?s desire to mark the solemnity of its proceedings with a prayer is understandable; Americans have done just that for more than 200 years. But when one creed dominates others ? regardless of a town?s intentions ? constitutional concerns come to the fore,? Judge Guido Calabresi wrote for a unanimous three-judge panel last May.

    The community of Greece is mostly Christian and most of the prayers offered at its board meeting were Christian or came from Christian clergy within that community.

    Recent Constitution Daily Stories

    Constitution Check: Who has First Amendment rights in the workplace?

    What is the agency that blew the whistle on the IRS?

    Looking back at the decision that ended segregation

    The (relative) truth about defamation

    Also Read

    Source: http://news.yahoo.com/court-pondering-two-cases-religious-connotations-100211227.html

    jobs report tiger woods masters 2012 nikki haley stan van gundy navy jet crash virginia beach crash stephen hawking