I need to append a random string to a loadVariablesNum file...

i need a little help creating a random (2 digit?) string to
append to this html call... if someone wouldn't mind helping me
with this...
url = "xxxxx";
loadVariablesNum(url+"_main.html", 0);
something like:
string = "whatever()";
url = "xxxxx";
loadVariablesNum(url+"_main.html?"+string, 0);
i'm guessing...?
thanks much,
GN

will this work:
end = "Math.floor(Math.random() * 10) + 1";
loadVariablesNum(url+"_main.html?"+end, 0);
?

Similar Messages

  • Need to append the assembly entry in web.config file while installing NuGet

    Hi,
    Consider that I need to create three NuGets. Second and third are dependents for first one. Each one has its own web.config file, which file content is same except one tag's value. While I'm installing the first NuGet, it will install the second and third too
    which is fine. The NuGets are installing one by one. But the issue is while I'm installing the NuGet in an ASP.NET project, the web.cofig file gets replace with one another that means the last NuGet's web.config file is only remains at last. But I need to
    append that tag value one by one. Is there any possibilities to create NuGets in that way? Please help me as soon as possible. Thanks in advance.
    I need this...
    <assemblies>
    <add assembly="Abc.EM, Version=10.0.0.1, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
    <add assembly="Def.EM, Version=10.0.0.1, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
    <add assembly="Ghi.EM, Version=10.0.0.1, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
    </assemblies>
    But I got this...
    <assemblies>
    <add assembly="Ghi.EM, Version=10.0.0.1, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
    </assemblies>

    Hi mathikp,
    One solution is to use the DTE object model to find the ASP.NET project, enumerate all the project items in the project to find the Web.config file. Then change the content by your self. This will be done after you install the Nuget package in the project.
    https://msdn.microsoft.com/en-us/library/envdte.project.projectitems.aspx
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Append a constant string to every element in an array

    Hi Friend,
    I have a small stuck in my labview program that is I need to append a constant string to each element of an array. Could someone provide guidance on this? Prior thanks to your help.
    Have a nice day!
    Lee Joon

    Pass the array into a for loop with autoindexing; concatenate each element with the constant and then use the array output from the loop...
    I was a few seconds behind the post above; great minds think alike!
    Message Edited by Phillip Brooks on 11-15-2007 08:42 AM
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness
    Attachments:
    Append String.gif ‏33 KB

  • How do I generate a random String

    Hi, there is probably a very simple answer to this question, but nevertheless....
    Is there a class I can use which will allow me to generate a random String of any length?
    Many thanks.

    depending on which chars you want to use for the String, sometimes it is more handy to use a char[], something like
    publc static final char[] CASE_SENSITIVE_ALPHNUM = {'a', ...., 'A',....'1',...};//for alphamumeric case sensitive chars
    public static final char[] CASE_INSENSITIVE_ALPH = {"a", ....,'z'};
    public String randString(int length, char[] charset) {
    StringBuffer sBuf = new StringBuffer();
    for (int i = 0; i < length; i++ ) {
    sBuf.append(charset[(int)(Math.random() * charset.length)] )
    return sBuf.toString();

  • Generate random string ABAP

    Does anyone have sample code to generate a random string of 12 characters?
    Urgently needed.
    Thanks very much for any replies.

    You could generate a random number between 1 and 999999999999 (see RUTRANDU program). Then you could convert each position in the number to a corresponding character. 0 = A, 1 = B, etc.
    Hope it helps
    Regards

  • Need Help in Splitting a String Using SQL QUERY

    Hi,
    I need help in splitting a string using a SQL Query:
    String IS:
    AFTER PAINT.ACOUSTICAL.1..9'' MEMBRAIN'I would like to seperate this string into multiple lines using the delimeter .(dot)
    Sample Output should look like:
    SNO       STRING
    1            AFTER PAINT
    2            ACOUSTICAL
    3            1
    4            
    5            9" MEMBRAIN
    {code}
    FYI i am using Oracle 9.2                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    There's this as well:
    with x as ( --generating sample data:
               select 'AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN' str from dual union all
               select 'BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN' str from dual)
    select str,
           row_number() over (partition by str order by rownum) s_no,
           cast(dbms_xmlgen.convert(t.column_value.extract('//text()').getstringval(),1) as varchar2(100)) res
    from x,
         table(xmlsequence(xmltype('<x><x>' || replace(str,'.','</x><x>') || '</x></x>').extract('//x/*'))) t;
    STR                                                S_NO RES                                                                                                
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 1 AFTER PAINT                                                                                        
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 2 ACOUSTICAL                                                                                         
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 3 1                                                                                                  
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 4                                                                                                    
    AFTER PAINT.ACOUSTICAL.1..9" MEMBRAIN                 5 9" MEMBRAIN                                                                                        
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          1 BEFORE PAINT                                                                                       
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          2 ELECTRIC                                                                                           
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          3 2                                                                                                  
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          4                                                                                                    
    BEFORE PAINT.ELECTRIC.2..45 caliber MEMBRAIN          5 45 caliber MEMBRAIN      
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • When accessing certain websites, I am met with a random string of characters in the browser window. What could be causing this?

    When trying to access certain websites, http://redditenhancementsuite.com/ or http://www.channel4.com/programmes/the- ... od#3293733 for example, all I get is a random string of characters in my browser window like the following:
    ‹­XmoÛ6þ>`ÿáª/Ý€ZÊËú²Í6Ð%ÍZ¬íŠ&A±O%щTI*®‡ýø='J¶”8^†._L‰wÇ{yîá)ÓG§¿Ÿ\üñᜟx÷vþí7ÓÂWeû+Eο•ô‚ ïë‰üÜš›YtbŽ—ÚO.ÖµŒ(O³ÈË/>aåŸ)+„uÒÏ¿˜ŒˆØˆWŸ”ó2Ï•§Wº:“ŒÐy£Œœ&a‚¥Ò×de9‹œ_—ÒRúˆ<ŽêNÈœ‹š°r1‹¬t1?Îÿ›Z$kœ7ÕÄp#¹úÜH»ž4jr¿ˆŸÅa7‡S.³ªöC/®Äo#r6›Eœ Ÿ’$3¹Œƒ¹83Uoù0~WJÇWpvšExý»É•ëÜqïŽÅ‡¹º5/Y–r"Ž(×^enìàÃÍUâ+ƒ‹ÆVwNOŠ€A8’š| aÅï€Åšhš«›v%0Ú‚"A†UµUQ•XJ—”fiâZ/#Z©Ü³èèé@$Õ²ðxx—¹YÄ‚\!qÛjmMÌØÞa<õzÂÛ#ûÇ°ÙÛçug²ìà„i"˜¶‘¶Q!B-BTÓ†‘ð‡¶˜"ìÍeµh¢hþÚTh"Ï!žC%7+]‘‡zua­YEóÓnsŸ…Ÿá~I8ë÷©@z²ºWùøêœÎðžOe›å_ !Qûds“5Ì Â+£;·N‡ïö)‹Zu*/?ŒÙ'˜¬Ôµÿ»ŸEŠ¥Ð×ÑüÞîS©i|¯GÂÓ€-ì4 …fL/­iêŸ.®(óf€xÿŸ+BØÀVq8ç¬þÄÇ€gŒí°OЄÀ¿Ò©¥–9žœÒKÇüíL œ rz鳊,ךPý%ÒRR.\‘aóâçMÊ|–Jò†rå èPòèK‘£îwxg¬€…*œŽp…LÍ¥Ü%xYçÂÃé÷òFZ\9‹‡Ëd‡ÙSÕ¥ôÎÛmÀ—šóƃ®ÜZˆ¶§ŽÝ]’yÁíuOçcwÜùÏÜvþ‹£™ ×ûR"NN4¿‰Cýz&xšK¿ uŒÜãVÚm|;<ÌÛ;ošÔœ="" ò1êgôt;®]ôÍ+ÐÖ1]:0ªŒ‘ÛpJç;G †ÑÆ«…‚%€‚広ÜȲ6T rawpgYàÜñ•9J†ˆ®‘›“vŒ€Ó-_ö›”5S˜©cw\%Ê~bÞE Ñ#@8BšrÔ8DGN°fLï'¡×S誇#gCÑ1+žU0óàòŒLÀG‰Ë‡Ó5Á‚äºMËöÌ'H*ŸŽ…š®‹ZT„)¹‘­ûˆ.P%£îRU*\Äp?dÚÏ^J‡ëù«Áˆ‚õ7ù0™ÝØvJ2€­—倕:)*Î.œUºODÈïškÙ˜rú±§+TS#òÜè Zñ1£Ûš”ß—br|‹F·”òókºB’j‘]£\mMR¢XŠì\ãðÿožËJ42“9ÞÍùþèoCÁí¢·ÁÁcÐX·ÃóæîK¶C$ý}ï8šGr·žål0 ŽäöL…#¹]£àHàAóßHãÎÐ7Úý—Io${ÏxÇùçaÎRÒç—ñ„P–VTøZ[RºÞŽÝ'ãjµŠ|x@UÖø€5Õ݉óÜcö¡s“JÜVbNßm*70Ý~x‚3l24͇Olã{º|ƒ;•ÂûüÊ…V²Ìōʙ¡ônßN[)zÉwS§ÊÁÌâãÕø¹u°ŠŠÉµÈoÒ}‚¿*þò—ÔTÄ
    The characters change depending on the website. I've tried disabling all extensions and plugins, reinstalling firefox and reinstalling java to no avail. The issue seems to be isolated to firefox, chrome is able to display the webpages without a problem. The problem occures following a malware in infection which would redirect goolgle searches in firefox. It was dealt with using Malwarebytes Anti-malware and by removing some entries from C:\WINDOWS\system32\drivers\etc\hosts file.

    Hi,
    I tried everything above but to no avail. Windows firewall seemed to be allowing Firefox through without it actually being in the exception list. However, I did remove Firefox but this time removing all profile data too. Reinstalling Firefox seemed to make the websites work. However I then restored my bookmarks, and suddenly the websites stopped functioning again, displaying the random string of characters. Could this be an issue with my bookmarks?

  • How do you append to a "string" type field?

    ABAPers,
    I am trying to understand how to append values to a "string" data type in an efficient way. One way to append to a string is using "concatenate" feature.
    data: myRetVal type string.
    DO
      CONCATENATE myRetVal ',' myNewData INTO myRetVal.
    ENDDO.
    However, CONCATENMATE is not efficient in this scenario. Each time you call it, myRetVal gets copied into myRetVal all over. As the string grows, this statement will execute slower and slower.
    The other option I thought is to use offset mechanism.
    MOVE myNewData to myRetVal+myRetValLen.
    However, it appears "string" and "xstring" type fields do not support offset and length operations.
    Is there a third choice that I am missing?
    Thank you in advance for your help.
    Pradeep

    There is no such operator.
    But if just using literals, you can use the &, like this.
    data: string type string.
    string = 'This is the first part ' & 'This is the second part'.
    Again, this will not work with variables.
    Regards,
    Rich Heilman

  • Need reg_exp for checking the string contains only alphanumeric or not

    Dear All,
    I need to check the given string in if condtion contains only the alphanumeric or not pls help me..
    like
    if reg_exp then
    end if;
    thanks,
    Oracle

    Hi,
    REGEXP_LIKE ( str
                , '[^[:alnum:]]'
                )returns TRUE if the string str contains any character other than an alphanumeric.
    You can use this wherever conditions are allowed, such as a WHERE clause or a CASE expression. For example:
    SELECT     str
    .     CASE
             WHEN  REGEXP_LIKE ( str
                         , '[^[:alnum:]]'
             THEN  'Contains speace, punctuation or special symbol'
             ELSE  'Okay'
         END               AS is_alnum
    FROM     table_x
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say what version of Oracle you're using.
    Edited by: Frank Kulash on Dec 30, 2011 4:37 AM

  • White spaces append to restulting strings

    Hello All,
    I'm faced with a weird issue. There are white spaces append to the strings. The only workaround I have is to use the TRIM function. However, I sense that this this maybe be a characterset conversion issue.
    I've included the NLS setting for bother Oracle and MySQL as well as my odbc.ini file
    QUERY:
    SQL> select '"'|| "User" ||'"' as Username from "user"@MYODBC5;                  
    Results (there is white spaces added right after the username, as the result shoudl have been "intm","root" as opposed to "intm                                "
    ===============================================================================================================
    USERNAME
    "intm
    USERNAME
    "root
    QUERYWORK AROUND:
    SQL> select '"'|| trim("User") ||'"' as Username from "user"@MYODBC5;
    USERNAME
    "root"
    "intm"
    NLS _SETTINGS  ORACLE
    ==============================================================
    Oracle:
    ======
    NAME                      
    VALUE$
    NLS_LANGUAGE              
    AMERICAN
    NLS_TERRITORY             
    AMERICA
    NLS_CURRENCY              
    $
    NLS_ISO_CURRENCY          
    AMERICA
    NLS_NUMERIC_CHARACTERS    
    NLS_CHARACTERSET          
    AL32UTF8
    NLS_CALENDAR              
    GREGORIAN
    NLS_DATE_FORMAT           
    DD-MON-RR
    NLS_DATE_LANGUAGE         
    AMERICAN
    NLS_SORT                  
    BINARY
    NLS_TIME_FORMAT           
    HH.MI.SSXFF AM
    NAME                      
    VALUE$
    NLS_TIMESTAMP_FORMAT      
    DD-MON-RR HH.MI.SSXF
    F AM
    NLS_TIME_TZ_FORMAT        
    HH.MI.SSXFF AM TZR
    NLS_TIMESTAMP_TZ_FORMAT   
    DD-MON-RR HH.MI.SSXF
    F AM TZR
    NLS_DUAL_CURRENCY         
    $
    NLS_COMP                  
    BINARY
    NLS_LENGTH_SEMANTICS      
    BYTE
    NLS_NCHAR_CONV_EXCP       
    FALSE
    NAME                      
    VALUE$
    NLS_NCHAR_CHARACTERSET    
    AL16UTF16
    NLS_RDBMS_VERSION         
    11.2.0.2.0
    NLS _SETTINGS  MYSQL
    ==============================================================
    Oracle:
    ======
    NAME :
    +--------------------------+----------------------------+
    | Variable_name            | Value                      |
    +--------------------------+----------------------------+
    | character_set_client     | utf8                       |
    | character_set_connection | utf8                       |
    | character_set_database   | latin1                     |
    | character_set_filesystem | binary                     |
    | character_set_results    | utf8                       |
    | character_set_server     | latin1                     |
    | character_set_system     | utf8                       |
    | character_sets_dir       | /usr/share/mysql/charsets/ |
    +--------------------------+----------------------------+
    ===========================================================ODBC INI
    [myodbc5]
    Driver = /usr/lib64/libmyodbc5a.so
    Description = Connector/ODBC 5.3.4 Driver DSN
    SERVER = 127.0.0.1
    PORT = 3306
    USER = intm
    PASSWORD = *********
    DATABASE = mysql
    OPTION = 0
    TRACE = OFF

    Hi,
      I reproduced the problem on my systems with Oracle AL32UTF8 and MySQL latin1 database selecting from a char column.
    The solution was to add -
    CHARSET=latin1
    to the MySQL odbc.ini entry.
    If I set -
    CHARSET=utf8
    then the problem happened.
    Try this and let us know what happens.
    Regards,
    Mike

  • How to generate random strings

    Gday all,
    So I have to create a simple guessing game where the user guesses a 3 letter string that is randomly generated:
    "For each new game your program will generate three unique random numbers between 0 and 9
    inclusive, and convert them into a String of three characters in the range A to J. This String will be an
    input to a game, where the user tries to guess the correct letters in the correct order. Examples of valid
    input Strings would be, �JAD�, �ABC�, �IBE� and �EFG�. Examples of some invalid input Strings could be
    �abc�, �AAA�, �123�, �AdE� or �NME�."
    Just wondering how to create this random string? I know how to generate a random 3 char number (num = (int) (Math.random() * 1000)) but I dont know how to convert this into a corresponding string, as the instructions say.
    I know this is very basic, but any tips?

    I know how to generate a random 3 char number (num = (int) (Math.random() * 1000)) but I dont know how to convert this into a corresponding stringUse string concatenation (+ with one or two String operands).
    int i = 42;
    char ch1 = '*';
    char ch2 = '!';
    String str = "foo";
        // the System.out.println() is not important
        // in each case a string is being created and printed
    System.out.println("" + i);
    System.out.println("2 times i = " + (2 * i));
    System.out.println(i + "*2=" + (2 * i));
    System.out.println("" + ch1 + ch2); // hint, hint
    System.out.println(1 + 2 + "???");
    System.out.println("???" + 1 + 2);

  • Need to Append one ByteArrayOutputStream to Another ByteArrayOutputStream

    hi all i need to append a ByteArrayOutputStream object to another one will anyone get me solution pls
    regards
    Mahesh

    hi all i need to append a ByteArrayOutputStream object to another one will anyone get me solution plsAppending one OutputStream to another does not make sense so I don't understand your question.
    You can use the writeTo(OutputStream out) method to append the content of one ByteArrayOutputStream to another.
    will anyone get me solution plsWhy don't you tell us what you've tried and what's your problem.

  • Genarating random strings?

    could someone please tell me if this code will generate a 'b' and a 'w'
    if i tell it too. and how do i make it 5 characters long. And its says
    this is how you call it and i dont have a clue what that means. and when
    you answer this please dont use techincal terms cause im just learning
    and i probaly wont have a clue what your talking about. thankyou.
    <?php
    // function to generate random strings
    function RandomString($length=32)
    $randstr='';
    srand((double)microtime()*1000000);
    //our array add all letters and numbers if you wish
    $chars = array ( 'a','b','c','d','e','f');
    for ($rand = 0; $rand <= $length; $rand++)
    $random = rand(0, count($chars) -1);
    $randstr .= $chars[$random];
    return $randstr;
    ?>
    and call it like this
    <?php
    echo RandomString(8);
    ?>
    Example
    ebbfbcbae

    Well, first of all this is PHP code and not Java. And I am not sure but I don't think it's possible to call PHP functions in Java Code (the otehr way around it should be working though, at least with the Java Extension for PHP). So, if you are writing a Java programm, you will probably have to translate this code piece to Java.
    Second. It will do what you want it to do - given you make a few modifications. You will have to change the line
    $chars = array ( 'a','b','c','d','e','f');
    to
    $chars = array ( 'b','w');
    as these are the characters you want. And you will have to call the function like this
    echo RandomString(5);
    if you want a string with five letters.
    I don't know how much this will help you, since this code is PHP and written procedural and not object-orientented as you have to write Java in, and the translation to Java might not be that easy if you don't know much about Java.

  • Need some Help ( formating strings vs formatting input files)

    I have a program that reads in a text file and stores each line as a string. The input file has no delimiters and varying amounts of white space. The problem is, I am trying to display each line of the file the same way. Here is an example of what the string looks like when I read it in and then output the strings.
    (I am using the underline to represent white space just in this message post.)
    1.Fred Smith____GA_____23_______42______23.5_____3____5
    2.Jon Doe____SC___42_______3_______39.2_____6_____12
    Now here is is how I would like the output to look like.
    1.Fred Smith_______GA_______23_____42_____23.5_____3_____5
    2.Jon Doe__________SC_______42_____33_____39.2_____6_____12
    Any thoughts or insight on how to achieve this would be great. Thanks for the time.

    Hi, before I'd do anything more complicated, I'd replace some spaces with tabs and see if that does the trick.
    Cheers, HJK

  • Need to Append the records in file and want to Overwrite the file

    Dear SDners,
    I facing one scenario i am sending 5lacs records in 50k slots want to append these records in same file in one day and next day i want to overwrite the existing file............
    Plz suggest......
    Regards
    Ganga

    hI Santosh,
    I am not duplicating the posting .now i have now change my interface design my interface is not meeting my req ,by this append opreation as you also know that first want to append the records whole day in one file and then next day with same processing i want to over write the file.
    I think now u will get my point......................:)
    Regards
    Edited by: gangadhar kh on Feb 4, 2010 2:24 PM

Maybe you are looking for

  • I Cannot See Job Queue Processes (Jnnn) in v$session

    Hello, My Oracle environment is 9.2.0.8 on IBM AIX platform. I found that I cannot see any job queue process (Jnnn) in v$session. However, the program of the relative process in v$session is null value. Does anybody know what is going wrong? Thank yo

  • Why OSPF use wildcard mask? Not subnet mask?

    Why OSPF use wildcard mask? Not subnet mask? Any advantage of using wildcard in OSPF? How wildcard in OSPF work? I saw some OSPF configuration for class b network use 0.0.0.255 as an OSPF wildcard mask. What does it mean? Is that mean to exchange onl

  • Flash installer is very poor show.

    I doubt anyone will listen - but just want to add my feedback to others who have been upset by how flash installs updates.  I was asked to update by flash in the big black box on start up.. did so and it downloaded Macafee without my permission.  Ins

  • Integrating EP 6.0 with Solution Manager 3.2 .

    Can anyone please help me regarding the steps for integrating EP 6.0 with solution Manager 3.2. It would be nice if any one would direct me to any link or any presentation where in the steps for the above subject are illustrated. Regards, Ashish .A.

  • BAPI for updating Evaluation Group1 field in Asset Master

    Hi, The business requirement is to Update the Assets master fields with the current location of the Tools with respect to movement of the material only to be used for assets. To keep a track for tools being moved to vendor location or internal compan