Storing whitespace in db that comes from textarea

hi guys,
i am taking user input from a textarea in a form and saving
that in my db.
as we all know when one does that the whitespace is sent from
the browser to the server but from there on it can get 'lost'
in a previous application i built i think i did something
like this -- replace(form.text_from_textares,chr(10),"<br
/>,"all") -- and then stuck that in the db
but to be fair i never really understood exactly what chr(10)
represented and if that was infaliable (ie did it catch all 'white
space'?)
anyway - i dont think this is ideal as if one then want to
search for a string that is broken up with a carridge return or
similar your search code would be unlikely to find it as you've
gone and stuck a BR tag in the middle of it.
what is considered best practice here?
PS if anyone is able to explain the differences between CR
and LF and what they're all about that would be great!
PPS what's with the "wrap" attribute in textarea - is that
depreciated now?
PPPS would using the regex shortcut of \s be a way to tackle
this issue?
thanks in advance
Nick

happysailingdude wrote:
> hi guys,
>
> i am taking user input from a textarea in a form and
saving that in my db.
>
> as we all know when one does that the whitespace is sent
from the browser to
> the server but from there on it can get 'lost'
>
Actually, unless something unusual is going on in your
system, the white
space is not 'lost'. Most likely it is right there in the
database
where it is supposed to be.
The issue here, generally, is to understand the technologies
being used
and how they function. The primary one here is the HTML
standard that
says ALL white space (spaces, tabs, newlines, carriage
returns, etc.) is
collapsed into a single space character.
So the whitespace is not getting lost, it is getting ignored
according
to the standard specification of the technology being used.
In fact if
one where to view the source in the browser one would see all
the white
space that is being ignored by the browser as it is designed
to do.
The first way around this is to use the features of the
technology
designed to work with this. In HTML that is the
<pre>...</pre> and
<code>...</code> tags. CFML adds functions such
as htmlEditFormat() and
htmlCodeFormat() to also work with this type of data. Beyond
this you
can role your own solution to display the received data in a
desired format.
Dan's suggestion is that you do not do any transformations on
the data
going into the database, because this locks you into a single
format.
If one just stores the data as is in the database, and then
do the
transformation to the desired format at display time, one can
then
create different displays for different technologies and
purposes from
the same data.

Similar Messages

  • Hi, i am trying to open and view a report that comes from another server with different odbc connection

    hi, i am trying to open and view a report that comes from another server with different odbc connection
    i created a crystal report for a mysql database on my machine and everything works great
    but we have other reports that come from other machines with different odbc connection
    and this its not working when opens the report asks for credentials
    and i cannot use the remote ip for these reports that come from other machine
    question
    if i cannot connect to remote ip to open the report
    for each report i have to create a database the report database on my machine and then open the report ?
    or there is some other way to open the report ?
    i am using visual studio 2013 and mysql and
       <add key="MYSQLODBCDRIVER" value="{MySQL ODBC 5.3 UNICODE Driver}"/>
    thanks

    short
    i have a report that it was created on another server with a specific dsn
    now i am trying to open the report on my machine
    the database from the other server does not exist on my machine
    the server machine where the report was created the ip its not accessible
    question ?
    can i open the report on my machine or its impossible ?
    thanks

  • Problem in saving data in spreadshee​t that comes from DAQ

    Hi
    I am new for using the Labview. I have problem saving the data in spreadsheet. mine just save the last reading that come from DAQ. And can not figure it out .
    If  there is way to make it save all the data with the time when I start run it till I stop it,please
    Thanks in advince
    Attachments:
    2 temp recording spreadsheet Ver_ 3.vi ‏141 KB

    I've changed the architecture to something that is way better then the sequence structure you had (State Machine).  Just to give you an idea on how it could be done.
    Still the dynamic data type is in there (which I don't like), but I'm not going to change your method.
    I've cleaned up your code a bit.  It's still not perfect, but it's done in 2mins. 
    I do have one question though : why are you saving an entire column (the last) of data which contains the same value (namely the total time the test ran)???
    Kind regards,
    - Bjorn -
    Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's
    LabVIEW 5.1 - LabVIEW 2012
    Attachments:
    2 temp recording spreadsheet Ver_ 4SM.vi ‏100 KB

  • [svn:fx-trunk] 9171: Adding the change notes that come from the TLF folks

    Revision: 9171
    Author:   [email protected]
    Date:     2009-08-07 08:57:35 -0700 (Fri, 07 Aug 2009)
    Log Message:
    Adding the change notes that come from the TLF folks
    bug: nope
    qa: nope
    checkintests: no need
    Added Paths:
        flex/sdk/trunk/frameworks/projects/textLayout/ReleaseNotes.txt

  • How come all my email that comes from facebook comes with the same from name

    All e-mail that comes from my facebook has the same from name like sandy wenfel when its from my mother,wife,friend ect.
    What did i do and how do i fix it

    Airmail you my friend are a Genius.
    I've been living with that nightmare for months, and you fixed it in seconds.
    I should have asked this question here a long time ago. Thank You Kevin (AKA)''Teeter-Kick-Azz [[#question-1056669|said]]''
    <blockquote>
    All e-mail that comes from my facebook has the same from name like sandy wenfel when its from my mother,wife,friend ect.
    What did i do and how do i fix it
    </blockquote>

  • Getting "Join in business component definition 'CG Opportunity My Accounts' has source fields that come from tables 'S_OPTY' and 'S_ORG_EXT'(SBL-DAT-00452)" error after upgradating to siebel Open UI 8.1.1.11

    Hello Team,
    We have upgraded from Siebel 8.1.1.3 to Siebel Open UI  8.1.1.11.
    But after up-gradation we are getting the below error in   "My Account Opportunity" View.
    We detected an Error which may have occurred for one or more of the following reasons:
    Join in business component definition 'CG Opportunity My Accounts' has source fields that come from tables 'S_OPTY' and 'S_ORG_EXT'(SBL-DAT-00452).
    Thanks,
    Tirupati Nanda
    Mob:-9742404115

    Hello Team,
    We have upgraded from Siebel 8.1.1.3 to Siebel Open UI  8.1.1.11.
    But after up-gradation we are getting the below error in   "My Account Opportunity" View.
    We detected an Error which may have occurred for one or more of the following reasons:
    Join in business component definition 'CG Opportunity My Accounts' has source fields that come from tables 'S_OPTY' and 'S_ORG_EXT'(SBL-DAT-00452).
    Thanks,
    Tirupati Nanda
    Mob:-9742404115

  • I am calling an xml , that come from rtmp server and i want to play a video . when i pause it show an error of cross domain. what i can i do?

    I am calling an xml , that come from rtmp server and i want to play a video . when i pause it show an error of cross domain. what i can i do?

    Please quote the exact error message, word-for-word, verbatim.
    What is your operating system?
    What version of Lightroom?

  • I'm having troubles with italics that come from nowhere

    I am going to paste the code in--don't know if any of you will be willing to wade through it or not. Line 52 is Don't put hands inside of Container. That is supposed to be in italics, a different color. But everything after that appears in italics also. I have tried removing that code, but all I get is the loss of color. Everything past that point is still in italics. I will also paste in the temporary address where it can be viewed. Any help is greatly appreciated. Oh, and the italics don't show up in the Dreamweaver in terface. Odd. Here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Disposal Instructions</title>
    <style type="text/css">
    <!--
    body,td,th {
        font-family: Comic Sans MS, cursive;
        color: #black;
        font-weight: bold;
        font-size: 18px;
        text-align: center;
    -->
    </style></head>
    <body>
    <table width="900" border="0" cellpadding="0" align="center">
      <tr>
        <th scope="col"><span style="text-align: center"><img src="images/logo_round.gif" width="208" height="205" alt="logo" longdesc="http://logo" /></th>
        <th scope="col"><span style="text-align: center"><p><img src="images/SANE.jpg" width="247" height="115" alt="sane" longdesc="http://sane" /></p></span>
        <span style="text-align: center">
        <p style="color: #00F; font-family: Arial, Helvetica, sans-serif; font-size: 24px;">Disposal Instructions</p></span></th>
        <th scope="col"><span style="text-align: center"><img src="images/logo_round.gif" width="208" height="205" alt="logo" longdesc="http://logo" /></span></th>
      </tr>
    </table>
    <p> </p>
    <p align="center"><span style="color: #39F; font-family: 'Comic Sans MS', cursive;">Disposal<br />
      of Used Syringes
    </span></p>
    <p align="center"><span style="color: #990099; font-family: 'Lucida Console', Monaco, monospace;">Even though you do not have to turn in used syringes in order to  get new, free syringes from SANE, we advocate for and ask participants to return  their used syringes to SANE so we may get rid of them safely<strong><span style="color: #39F; font-family: 'Comic Sans MS', cursive;"><sup>1</sup></span></strong>.  SANE will provide you  with official biohazard waste containers (also known as sharps<sup><span style="color: #39F; font-family: 'Comic Sans MS', cursive;">2</span></sup>) to put your used syringes in and/or give you written  instructions on how to make your own sharps container<sup><span style="color: #39F; font-family: 'Comic Sans MS', cursive;">3</span></sup>.  These instructions tell  how to handle used syringes safely (so you don’t get stuck) as well as tell you  what to do if you get stuck with a needle (called an accidental needle-stick  injury<strong><span style="color: #39F; font-family: 'Comic Sans MS', cursive;"><sup>4</sup></span></strong>).  If you want to get rid of your used syringes  on your own, we will give you a list of places where you can get rid of your  used syringes for free <strong><span style="color: #39F; font-family: 'Comic Sans MS', cursive;"><sup>5</sup></span></strong>.  Also, if you see syringes in public  places, call us &amp; we will come out and get them in a safe manner and  <sup><span style="color: #39F; font-family: 'Comic Sans MS', cursive;">6</span></sup> dispose of them safely. <br />
      <u>A few do’s &amp; don’ts for safer handling of used syringes</u>:</p>
    <ul>
      <li><u> Do NOT RECAP syringes</u> – yours or anyone else’s.</li>
    </ul>
    <p align="center">Place used syringe and cap in sharps container.  Recapping syringes can increase your risk of  getting stuck by a syringe.</p>
    <ul>
      <li> <u>Always wear gloves</u> (latex or others  that allow you to move your fingers easily) when handling used syringes.</li>
    </ul>
    <ul>
      <li><u>Always use tongs</u> to pick up used syringes.</li>
    </ul>
    <p> </p>
    <ul>
      <li><u>Do NOT put anything other than  syringes and caps into the sharps container</u> – no  cigarette butts, bloodied wipes, plastic bags, etc.- ONLY used syringes &amp;  caps (other materials in sharps containers jam the disposal machines, which  then costs a lot of money to repair).</li>
    </ul>
    <ul>
      <li><u>Do not overfill containers</u></li>
    </ul>
    <p align="center"><li>To reduce needle-stick injuries, do not jam or push with hands  or force syringes into containers.  <em><span style="color:#FF6600; font-family: ont-family: 'Comic Sans MS', cursive" >Do not put hands or fingers inside  container.</span></li></p>
    <ul>
    Return full containers to SANE  <li>You can call us to pick  them up (phone numbers are in Footnote 4) or get rid of them yourself by taking  them to the County site in your area that accepts syringes and sharps  containers.  For places in Sacramento  County see Footnote 5 below (we will be adding sites in  other nearby counties soon).</li>
    At the end of the <u>Footnotes</u> section is a list of California laws and policies related to syringe possession<strong>6</strong>.  The list was put  together by the Harm Reduction Coalition (HRC - see Links) and is written in  legal language (legalese).  If you would  like to know what the laws and policies mean, go to {click here}.  SANE gives  you a copy of the laws &amp; policies with each sharps container or whenever  you ask.
    >As always, please call us if you have any questions or comments  or give us your feedback on the <em>Tell Us What You Think</em> link on SANE’s  home page</p><<br />
      <span style="color: #39F; font-family: 'Comic Sans MS', cursive;">Stay safer with SANE.</span></p>
    <ul>
      <li><u>Footnotes</u><br /></p>
        <strong> <span style="color: #39F; font-family: 'Comic Sans MS', cursive;"><sup>1</sup></span></strong> Used  syringes can carry infected blood from one person to another.  Removing used, possibly-infected syringes  from circulation in the community is one of the ways SEPs slow the spread of  infectious diseases, particularly HIV &amp; HCV. <br />
        <strong><span style="color: #39F; font-family: 'Comic Sans MS', cursive;"><sup>2</sup></span></strong><strong> </strong>We have sharps containers in the following sizes: 8-gal; 2½-gal; ¼-quart, and FitPaks  (FitPaks hold about 10 syringes). </li>
      <strong align="center"><span style="color: #39F; font-family: 'Comic Sans MS', cursive;"><sup>3</sup></span></strong>  <u>Homemade disposal  containers</u><br />
        To make your own “sharps” container:</li>
      <li>Use <em><span style="color:#FF6600; font-family: ont-family: 'Comic Sans MS', cursive" >puncture proof  containers</span></em>, e.g. hard plastic, liquid laundry detergent bottles, coffee  cans, etc. (2-liter soda bottles are not hard enough – syringes can poke  through them; glass can break).</li>
    </ul>
    <ul>
      <li>Use containers with a small opening on top and a cap or lid (a  lid that screws on is best) to prevent spills.</li>
    </ul>
    <p align="center"> </p>
    <ul>
      <li>If possible, <u><span style="color:#FF6600; font-family: ont-family: 'Comic Sans MS', cursive" >write</span></u> on the container: <em><span style="color:#FF6600; font-family: ont-family: 'Comic Sans MS', cursive" >Biohazardous medical wast</span></em><em>e </em><u>or</u> <em><span style="color:#FF6600; font-family: ont-family: 'Comic Sans MS', cursive" >sharps container</span></em> <u>and/or</u> <em><span style="color:#FF6600; font-family: ont-family: 'Comic Sans MS', cursive" >Danger</span></em>.  Any or all of these words will do.</li>
    </ul>
    <ul>
      <li>When the  sharps is full, <em><span style="color:#FF6600; font-family: ont-family: 'Comic Sans MS', cursive" >tape the lid</span></em> closed.</li>
    </ul>
    <p align="center"> </p>
    <p align="center"><strong><span style="color: #39F; font-family: 'Comic Sans MS', cursive;"><sup>4</sup></span></strong><strong>  </strong><u>If you get  stuck with a needle</u> <br />
      (accidental needle-stick injury):</p>
    <ul>
      <li>Squeeze the site where the needle point went into the skin – try  to make it bleed</li>
    </ul>
    <ul>
      <li>Let the blood run out of the opening for a few seconds</li>
    </ul>
    <p> </p>
    <ul>
      <li>Clean the opening with rubbing alcohol or hydrogen  peroxide.  You can buy both of these at  the local grocery store or drug store; they only cost a few dollars.</li>
    </ul>
    <ul>
      <li>If you think the syringe that poked you may have been used by  someone with a disease or infection, call anyone at SANE. </li>
    </ul>
    <p align="center">(916) 397-2434     968-2563    968-1387    869-9335</p>
    <p align="center"><strong><span style="color: #39F; font-family: 'Comic Sans MS', cursive;"><sup>5</sup></span></strong><strong> </strong> Sacramento County  disposal sites: <br />
      North Area Transfer Station        Sacto. Recycling  &amp; Transfer Station <br />
      4450  Roseville Road                              8491 Fruitridge Road <br />
      Tuesday, Thursday, Saturday,                      Friday &amp; Saturday
    Sunday <br />
      8:30  am  - 4 pm                                            8 am – 5 pm<br />
      (We will be adding sites for other counties soon). </p>
    <p align="center"><strong><span style="color: #39F; font-family: 'Comic Sans MS', cursive;"><sup>6</sup></span></strong><strong> </strong>HRC’s list of Calif. Laws &amp;  policies <br />
      <strong>Needles and syringes in sharps containers are <u>not</u> considered paraphernalia.</strong> Section 11364 (b) of the  California Health and Safety Code states that hypodermic needles or syringes  stored in a container that “meets state and federal standards for disposal of  sharps waste” shall not be classified as drug paraphernalia.<br />
      <strong>California law permits authorized needle exchange programs and  exempts program workers from paraphernalia charges.  </strong>Needle exchange programs that  distribute sterile syringes to injection drug users may be locally authorized  pursuant to H&amp;S Code 12134.9.   California law exempts needle exchange personnel from prosecution for  furnishing drug paraphernalia under H&amp;S Code Section 11364.7.<br />
      <strong>California permits over-the-counter sales of up to 10  syringes.  </strong>Pursuant to local authorization of (Business &amp; Professions  Code 4145 (2)(c)), adults may obtain up to ten syringes from a pharmacy or physician  without a prescription.<br />
      <strong>California law permits possession of up to 10 syringes for personal  use from an authorized source. </strong>H&amp;S Code Section 11364 (c)  applies if syringes are acquired from an authorized source, such as a pharmacy  or syringe exchange program.<br />
      <strong>Drug residue in a syringe is not sufficient evidence to prove drug  possession.</strong> Police should be aware that pursuant to a CA Supreme  Court ruling, an individual shall not be convicted of possession of a controlled  substance based solely on drug residue in a used syringe.<br />
      <em>For more information about  these statutes, go to </em><a href="http://syringeaccess.com"><em>http://syringeaccess.com</em></a><br />
       <img src="images/logo_round.gif" width="208" height="205" alt="logo" longdesc="http://logo" /><br />
      <strong>Stay safer with SANE.</strong></p></ul>
    <table width="203" height="123" border="0" cellpadding="20"align="center">
      <tr>
        <td width="159" height="119" align="right" valign="bottom"><img src="images/logo.gif" width="84" height="74" alt="logo" longdesc="http://logo" /><a href="home.html"><span style="color: #FF6600; font-family: 'Comic Sans MS', cursive;">HOME</span></a></td>
      </tr>
    </table>
    <p> </p>
    </body>
    </html>
    Here is the link:
    http://digitalzenphotography.com/Disposal%20Instructions.html
    Thanks!

    Comic Sans: the favored font of middle-school breakup letters  and silly greeting cards is NOT content appropriate.
    You should switch to a more traditional font-family for this project.
    Comic Sans
    http://www.codinghorror.com/blog/2005/06/comic-sans-the-font-of-the-gods.html
    Web Safe Fonts
    http://www.ampsoft.net/webdesign-l/WindowsMacFonts.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb

  • My Mail account will pick up all emails but not those that come from aol addresses.

    I receive emails without problems to my usual email address set up on the Mail application on my Desktop OSX 10.5.8 unless they are sent from an aol address. Oddly these emails come to my phone (Samsung Galaxy 2). These aol emails are received on the webmail (ie on my ISP server's email) so why can't I get them on my normal email system? Please help but in simple language!

    Thanks for suggestion. Just tried to do that, forwarding from my own email address on webmail to my own email address on my client email. It worked! Spooky.
    I'm thinking that my computer is either trying to protect itself in some way from this particular sender's emails or it just won't recognise them, but I can't find anything in the security settings that would be blocking them and according to my service provider they haven't set anything up either. I have received other aol email from different senders in the past.

  • The extreme heat that comes from my macbook pro

    my macbook pro gets so hot where my left palm rests on the laptop that it becomes unbearable. This happens often when I have alot of processes running and I could understand if the laptop just got a little bit hot from doing this task, but this intense heat generation is unacceptable and generally occurs more when I use the apple OS on my computer than the windows OS (even when i am playing hardware intense games on windows it never gets this hot)
    I am currently downloading files wirelessley, listening to music, the keyboard is illuminated, the fans are spinning at a normal 1999 rpm's and the temperatures of my hardware seem normal, I am typing on my lap in a chair, but I am allowing proper ventillation from the back of the laptop and it still gets this hot occasionally when I am using it on a surface.
    The heat only comes from that one spot underneath my wrist, any suggestions?
    Message was edited by: CaptainHowdy
    Message was edited by: Host

    Hi, I have the exact same problem. You can read my thread on:
    http://discussions.apple.com/thread.jspa?threadID=1076379&tstart=15
    Well, besides FanControl, there is also the CoolBook utility were you can undervolt the CPU (without decreasing performance). However, the area we’re worried about is where the HD is located, lowering the CPU heat might not help. But since the entire case is in aluminum, it just might
    I haven’t messed with CoolBook yet, as it doesn’t fully support Santa Rosa yet, and would also like to hear more experience from other MBP users.

  • How to hyper link the text that comes from database ?

    Hi all,
    Jdev Ver :11.1.1.4.0
    I have one usecase like, to highlight(using af:commandlink) the keywords from some content..
    And i have some set of keywords, and where ever the keywords appears in the content i need to show those words as a af:commandlink in the page ..
    Anyone aware of this kind of usecase ? Please suggest some ideas..
    thanks,
    Gopinath J

    Hi,
    It is not straight forward, here is the sample code to do that where i replaced the text key with the hyperlink and bounded it to outputText
        <af:outputText value="#{<Bean>.text}" escape="false"/>
        //variable text inside bean with setters and getters
        private String text = "This is a sample text where the text key is shown as hyperlink";
        public void setText(String text) {
            this.text = text;
        //replaces the text "key" references with the hyperlink
        public String getText() {
            text = text.replace("key","<a href=\"http://google.com\">key</a>"); //escape sequence the quote to provide value for href
            return text;
        }Sireesha

  • Translating English strings that comes from database from into Hindi

    Hi
    I am developing an application for a school trust.
    The application generates progress reports of the students of the school.
    I have to design reports in Hindi language since the school is Hindi medium. How can I translate the English strings that I am taking from database into hindi.
    Please help.

    Hi,
    In my application it may not require to translate the meaning of the string. (ie, "Excellent" to it's hindi equivalent).It will do if I can only
    display the string in hindi. (ie, "Shailendra" in hindi). But since there are more than 3000 student names (and will be increasing per year), I can not do this by storing the translation somewhere. Is there any other method to do that. Is the code to display an English string into hindi
    or somewhat similar to this available on the net. Please Help.
    Thank you.

  • How to grab the view that comes from Onyx?

    Hello,
      i started using Onyx project recently. That's really amazing what it does. I am wondering if there is some possibility to check the main view ... let my try to explain this.
    I want to change option for esxi5 box - advanced/Logging to external syslog server.
    While in gui i did my steps and Onyx prints the output:
    # ------- UpdateOptions -------
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    $_this = Get-View -Id 'OptionManager-EsxHostAdvSettings-456'
    $_this.UpdateOptions($changedValue)
    This is working as expected. I can throw this to powercli and it will set up the option. This will work only for that particular esxi box. I want to create a loop that will change this option for each esxi box in the cluster.
    The view that onyx is using is : "Get-View -Id 'OptionManager-EsxHostAdvSettings-456'"
    So he already knows the view/host moref .
    But if i would like to have this in a loop so it will do it for each host, so  how can i get to that kind of view ?
    So far i could only build something like
    foreach($vmhostview in (get-view -viewtype HostSystem -Searchroot (get-cluster "xxyyzz").id))
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    $number=$vmhostview.moref.split("-")[1]
    $_this = Get-View -Id OptionManager-EsxHostAdvSettings-$number
    $_this.UpdateOptions($changedValue)
    Which is totally stupid approach i belive although it's working.. splitting moref...
    After some time i noticed that
    http://pubs.vmware.com/vi-sdk/visdk250/ReferenceGuide/vim.option.OptionManager.html
    Says that OptionManager is the property from Config manager. So from that i could get the id of this view:
    ((get-vmhost myHost |get-view).ConfigManager.AdvancedOption).ToString()
    which will result in output : OptionManager-EsxHostAdvSettings-456
    So having this i could do my loop at the end:
    foreach($vmhostview in (get-view -viewtype HostSystem -Searchroot (get-cluster "xxyyzz").id))
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    $_this = Get-View -Id ($vmhostview.ConfigManager.AdvancedOption).ToString()
    $_this.UpdateOptions($changedValue)
    Now i do not know that it was just a luck that i found the location of this view name or is this the way how i am supposed to find the view id name. I am wondering how other people are handling that kind of case, if there is easier way to do it. If someone could share his experience i would really appreciate it.
    Regards,
    Greg

    There is no need to construct these View-Ids as you see them coming from Onyx.
    In fact I would write that script like this
    $changedValue = New-Object VMware.Vim.OptionValue[] (1)
    $changedValue[0] = New-Object VMware.Vim.OptionValue
    $changedValue[0].key = "Syslog.global.logHost"
    $changedValue[0].value = "tcp://x.x.x.x:514"
    Get-View -ViewType HostSystem -Searchroot (Get-Cluster "xxyyzz").ExtensionData.MoRef | %{
      $optMgr = Get-View $_.ConfigManager.AdvancedOption
      $optMgr.UpdateOptions($changedValue)
    Move the part that doesn't change with each HostSystem outside the loop
    The ConfigManager is an array with MoRefs that point to the respective Managers. You can just do a Get-View with a MoRef and it will return the object representing the Manager
    From the Manager object you can now call the method
    Btw, you better consult the latest SDK Reference.
    You can find the HostConfigManager here.

  • Does anybody know how to stop emails that come from spamers selling direct TV to mortgages? I've blocked every feature  i know and they still  get thru.  they never show the "to" email address it's always blank. It's not on my email server either.  These

    i've never owned a phone that i've had so much trouble from spammers.  I've tried every trick i know and yet they still come in droves usually in the middle of the night but also a few during the day.  They range from mortgages to home warranties to dating.  I've blocked everything including my hotmail and microsoft live accounts from receiving mail.  Still, they come.  They are not coming to my regular PC and they never have a "to" email in the address field like my normal business emails do.  Any information is appreciated before i get an I phone!

    Hi lbadek
    I can help with this please send us an email using the contact the mods link in my proifle and we will investigated from there.
    Thanks
    Stuart
    BTCare Community Mod
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Cannot Save pictures that come from a Samsung phone on iPad/iPod/iPhone

    I've tried this across several devices and have found a conflict only with this specific set of devices. If I try to send a picture from certain Samsung phonse to an iOS device (be it iPad, iPod, or iPhone) via email or MMS I am able to view but not save the image. I've posted a problem image on the web so that others can observe this issue.
    Using safari navigate to http://twitpic.com/3humzm/full . The image displays fine.
    Press-and-hold the image to open the menu and then save the image.
    Go to the photo application and attempt to view the photograph. It won't allow you to view the photograph.
    What I don't understand is the image displayed just fine within Safari, within e-mail, and within the messaging application. The problem only occurs if one decides to save the image. The other confusing thing is this only happens if the image came from certain Samsung phones.
    I can't pin the problem on Samsung or Apple. My Apple devices have no problems with images from other devices, and other devices have no problems with images from the Samsung. Does any one have a clue what is happening here?

    Update: I got a friend to try it on an iPhone with 3.1.3 and the problem does not occur for her. I don't have iPhones laying around with all the other possible firmware versions, but I am starting to think this is specific to the 4.2 firmware.

Maybe you are looking for