Trouble with Simple RegExp_Instr

We have a need to examine a string to see if there are any alpha characters and I decided to learn something new and use some of the new RegExp functions. I hope someone can show me the error of my ways. I am using the class alpha but the only letter I find is "A" or "a".
DB and SQLPlus version 11.1.0.6.0 or 10.2.0.4.0.
07:54:55 sys@itsdb>
07:54:55 sys@itsdb> SELECT REGEXP_INSTR ('ABCDEFG',
07:54:55 2 '[:alpha:]',
07:54:55 3 1,
07:54:55 4 1,
07:54:55 5 0,
07:54:55 6 'i'
07:54:55 7 ) alpha_pos
07:54:55 8 FROM DUAL;
ALPHA_POS
1
1 row selected.
07:54:55 sys@itsdb>
07:54:55 sys@itsdb> SELECT REGEXP_INSTR ('123456ABCDEFG',
07:54:55 2 '[:alpha:]',
07:54:55 3 1,
07:54:55 4 1,
07:54:55 5 0,
07:54:55 6 'i'
07:54:55 7 ) alpha_pos
07:54:55 8 FROM DUAL;
ALPHA_POS
7
1 row selected.
07:54:55 sys@itsdb>
07:54:55 sys@itsdb> SELECT REGEXP_INSTR ('GFEDCBA123456',
07:54:55 2 '[:alpha:]',
07:54:55 3 1,
07:54:55 4 1,
07:54:55 5 0,
07:54:55 6 'i'
07:54:55 7 ) alpha_pos
07:54:55 8 FROM DUAL;
ALPHA_POS
7
1 row selected.
07:54:55 sys@itsdb>
07:54:55 sys@itsdb> SELECT REGEXP_INSTR ('BCDEFG123456',
07:54:55 2 '[:alpha:]',
07:54:55 3 1,
07:54:55 4 1,
07:54:55 5 0,
07:54:55 6 'i'
07:54:55 7 ) alpha_pos
07:54:55 8 FROM DUAL;
ALPHA_POS
0
1 row selected.

Very true, my bad, thanks Max ;)
Borrowing from your suggestion and moving to the other point Marc mentioned about obtaining the information on whether the 4th position in the string is a letter or not:
SQL> with t as (
  2  select 'ABCDEFG' col1 from dual union
  3  select 'abc4' col1 from dual union
  4  select '123456ABCDEFG' col1 from dual union
  5  select '123.56' col1 from dual union
  6  select 'ZZZ123456ABCDEFG' col1 from dual union
  7  select '11111' col1 from dual union
  8  select '123A56' col1 from dual union
  9  select 'GFEDCBA123456' col1 from dual)
10  -- end of sample data
11  select col1,
12         regexp_instr(col1, '[[:alpha:]]') ex1,
13         regexp_instr(col1, '^(.{3}[[:alpha:]])', 1, 1, 0, 'i') is_pos_4_letter
14    from t
15  /
COL1                    EX1 IS_POS_4_LETTER
11111                     0               0
123.56                    0               0
123456ABCDEFG             7               0
123A56                    4               1
ABCDEFG                   1               1
GFEDCBA123456             1               1
ZZZ123456ABCDEFG          1               0
abc4                      1               0
8 rows selected
SQL>

Similar Messages

  • Having trouble with simple tasks in pages 09

    I am trying to put a single horizontal line above the page footer in a pages document that I am trying to create as a template
    I've spent quite a long time with it and cannot figure it out
    As much as a pain Word is, doing something like this is very simple - I thought Pages would be even easier!

    sean
    You look in exactly the same place, it is a paragraph (text) format.
    +Inspector > Text > More > Border & Rules > choose a stroke > click on a position > choose color, thickness & offset (how far above the text)+
    You can also draw a line, using the Shapes menu on the Toolbar.
    Peter

  • Trouble with simple Query by Example

    Hey all, I am well aware that similar topics are all over the forums. I've exhausted myself fishing around for just the right thread.
    I am new to APEX. I have this book "Easy Oracle HTML-DB". It is somewhat helpful, but its examples are hard to follow - possibly because the product keeps moving along.
    I have a simple single table listing report. I wanted to add some selection criteria and was attempting to do so in a new region on the same page as outlined in this book. I added a few text fields and tied them into the query without issue. To submit the criteria, I added a "Go" button (just like the book says) and tied a "Reset Pagination" process to it.
    The book example doesn't specify button branching conditions. Without any though, clicking "Go" causes an error: "ERR-1777: Page XX provided no page to branch to." . So I added a branch back to the same page. Now it appears to be working, but it resets all my selection field values and runs the same report over again.
    I think a workaround is simply to put the criteria in a separate page altogether. I'm just about resigned to taking this approach. It sure looks like people do this all the time though. What did I miss ?
    Thanks in advance,
    Snake

    Rene said: "It's also nice to add : onKeyPress="checkEnter(event)"
    to the HTML Form Element Attributes of the items in the search region. This way you can also start the search by pressing Enter in the item."
    Hi Rene,
    I'd like to include the feature, but the action is no different with or without this attribute. When you press enter, it just stays there in the field.
    Nice to note though that most every behavior I've checked is the same whether using Firefox or IE. I like browser independence.
    Snake

  • Trouble with Simple XNET CAN Example...

    I am trying to get a simple XNET CAN write frame going. Here is the VI I created...
    I keep getting this:
    I looks like I have a frame set up, so what else could be the issue?

    Hey,
    I am "trying" to create a session and send data on the fly. I changed my vi back to the simple one I had earlier in the day:
    Attachments:
    XNET_CAN_Write.vi ‏12 KB

  • Having trouble with simple word game, mainly records

    OK. I need help with a lot of stuff. This is an applescript I made to be a lot like the game Jotto, except one player. Here it is:
    set yescontinue to true
    set totallyfinished to false
    set tip10jots to false
    repeat while totallyfinished is false
    repeat while yescontinue is true
    set finish to false
    set totallyfinished to true
    set yescontinue to false
    set x to {"abaca", "abaci", "aback"}
    set setx2 to {"ninth", "nipas", "nippy"}
    set abcde to (random number from 1 to 2)
    if abcde is 1 then
    set y to (some item of x)
    else
    set y to (some item of setx2)
    end if
    set z to count characters of y
    set y to characters of y as list
    if z is 5 then
    set yescontinue to true
    end if
    set guessamount to 0
    set listofrecords to ""
    set recordofgame to {}
    if yescontinue is true then
    repeat while finish is false
    set jots to 0
    set guess1 to text returned of (display dialog "Please type your guess:" default answer "")
    set zguess to count characters of guess1
    if zguess is 5 then
    set kldsafjhlasdkjfhaslkdjfhalskdjfh to true
    else
    display dialog "Please only use 5 letter words."
    if yescontinue is true then
    set yescontinue to false
    end if
    end if
    if yescontinue is true then
    set guess1 to characters of guess1 as list
    repeat with theletter in y
    repeat with theletter2 in guess1
    if (theletter as string) is (theletter2 as string) then
    set jots to jots + 1
    end if
    end repeat
    end repeat
    if guess1 is y then
    set jots to "won"
    end if
    set guessamount to guessamount + 1
    if jots is 1 then
    set listofrecords to listofrecords & guessamount & ". " & guess1 & " " & jots & " jot" & return
    else if jots is "won" then
    set jots to "Jotto"
    if (guess1 as string) is (y as string) then
    set listofrecords to listofrecords & guessamount & ". " & guess1 & " " & jots & return
    display dialog "You win! The entire game:" & return & return & listofrecords
    set jots to 10
    else
    set jots to 10
    set tip10jots to true
    end if
    else
    set listofrecords to listofrecords & guessamount & ". " & guess1 & " " & jots & " jots" & return
    end if
    set listofrecords to listofrecords as string
    if jots is 1 then
    if tip10jots is true then
    display dialog "OK. " & guess1 & " was " & jots & " jots. That was guess #" & guessamount & ". Tip: Ten jots means you have all of the letters correct, but they're in the wrong order. Here is the entire game so far:" & return & return & listofrecords
    else
    display dialog "OK. " & guess1 & " was " & jots & " jot. That was guess #" & guessamount & ". Here is the entire game so far:" & return & return & listofrecords
    end if
    else
    if tip10jots is true then
    display dialog "OK. " & guess1 & " was " & jots & " jots. That was guess #" & guessamount & ". Tip: Ten jots means you have all of the letters correct, but they're in the wrong order. Here is the entire game so far:" & return & return & listofrecords
    else
    display dialog "OK. " & guess1 & " was " & jots & " jots. That was guess #" & guessamount & ". Here is the entire game so far:" & return & return & listofrecords
    end if
    end if
    else
    set yescontinue to true
    end if
    end repeat
    end if
    end repeat
    end repeat
    As you can see, for now I only have 6 sample words to save time compiling and running for now on my bad computer.
    I need help creating a record instead of listofrecords, and also if anybody could shorten all the extra code I probably have. I also would like to limit being able to guess fake words, for example guessing aaaaa. Thank you so much, and if you have any ideas to help, please let me know.

    Hello
    I had fun on this. You may try the following script.
    (Please copy the code from this web page, not from subscribed email text)
    It has been tested except for the parts using 'do shell script' and 'TextEdit'.
    The 'do shell script' is used in looking up dictionary and 'TextEdit' is used in keeping a log.
    (Perl code has been tested with MacPerl 5.6.1under OS9.1.)
    You may use any dictionary file that contains words (one word per paragraph delimited by LF) encoded in UTF-8. (For code points in U0000..U007F, UTF-8 is identical to ASCII)
    By default, it uses /usr/share/dict/words.
    Cheers,
    H
    PS. The word game 'Jotto' may have been copyrighted in a way such that it's not allowed to reproduce the (part of) game protocol in this sort of computer programme without permission. If such is the case, (cough-cough,) please just disregard this.
    --SCRIPT
      Guess Word
      v0.3
      * The dictionary file must be a text file that -
        1) is encoded in UTF-8; and
        2) consists of paragraphs (delimited by LF (U+000A)) each of which represents one word.
    guessword()
    on guessword()
    script o
    --property dict : choose file with prompt "Choose dictionary file (in UTF-8)"
    property dict : "/usr/share/dict/words" as POSIX file as alias
    property wordLength : 5 -- length of word
    property maxGuesses : 20 -- maximum guess count
    property wonSign : ""
    property givenUpSign : "?"
    property exhaustedSign : "#"
    property NL : return
    property mss1 : "Please enter your guess word of " & wordLength & " letters."
    property mss2 : "Current results:"
    property mss3a : "You won!" & NL & "Secret word = "
    property mss3b : "You gave up." & NL & "Secret word = "
    property mss3c : "You have exhausted guess count." & NL & "Secret word = "
    property btt1 : {"Give Up", "OK"}
    property btt2 : {"Quit", "New Game"}
    property errs1 : "Specified word is not found in the dictionary. Please choose other word."
    property errs2 : "Specified word has been already used. Please choose other word."
    property errs3 : "Word must consist of " & wordLength & " letters. Please choose other word."
    property errs4 : "Couldn't get word from dictionary."
    property line1a : "# New game started at "
    property line1b : "# Word length = " & wordLength
    property line1c : "# Maximum round = " & maxGuesses
    property line2 : "Round" & tab & "Guess" & tab & "Match"
    property line3a : "# You have guessed right. The secret word is "
    property line3b : "# You have given up. The secret word is "
    property line3c : "# You have exhausted guess count. The secret word is "
    property line4 : "# This game ended at "
    property rr : {} -- work list for result
    property aa : {} -- work list for bsearch()
    property tt : {} -- list of used guess words
    on bsearch(xx, x)
      list xx : source list
      anything x : item to be searched in xx
      property aa : working list
      return integer : index of x in xx if {x} is in xx, or 0 if not.
    local i, j, k
    set my aa to xx
    if {x} is not in my aa then return 0
    set i to 1
    set j to count my aa
    repeat while j > i
    set k to i + (j - i) div 2
    if {x} is in my aa's items i thru k then
    set j to k
    else
    set i to k + 1
    end if
    end repeat
    return i
    end bsearch
    on matchWords(x, y)
      string x, y : source strings
      return integer : number of characters that are in both x and y, where each common character is counted once.
        e.g. Given x = "every" and y = "river", result = 3 (i.e. {"e", "v", "r"})
    local yy, s, k
    set yy to y's characters
    set s to 0
    repeat with x in x's characters
    set k to bsearch(yy, x's contents)
    if k > 0 then
    set yy's item k to 0 -- set to non-character not to count again
    set s to s + 1
    end if
    end repeat
    return s
    end matchWords
    on lookup(re, dict) -- english-only (word does not contain letters in [U+0080,])
      string re : regexp pattern to search
      string/alias dict : HFS path (or alias) of dictionary text file (which contains one word per paragraph)
    try
    return (do shell script "egrep " & quoted form of re & " " & quoted form of POSIX path of dict)
    on error
    error errs4 number 9016
    end try
    end lookup
    on lookup(re, dict) -- multi-lingual
      string re : regexp pattern to search
      string/alias dict : HFS path (or alias) of dictionary text file (which contains one word per paragraph)
    local s_, r
    set s_ to "perl -e 'use strict; use utf8;
    open DICT, \"< " & (POSIX path of dict) & "\" or die \"Can't open dictionary file: $!\";
    local $/ = \"\\n\";
    my @a = grep {/" & re & "/} <DICT>;
    close DICT;
    chomp @a;
    local $, = \"\\n\";
    print @a;'"
    try
    set r to (do shell script s_)
    if r = "" then error number 9016 -- probably redundant
    return r
    on error
    error errs4 number 9016
    end try
    end lookup
    on makeGuess()
    local b, t
    repeat
    display dialog mss1 default answer "" buttons btt1 default button 2 --with icon 1
    set {b, t} to {button returned, text returned} of result
    if b = btt1's item 1 then return givenUpSign
    if (count t) = wordLength then
    if t is not in my tt then
    try
    lookup("^" & t & "$", dict)
    exit repeat
    on error
    display dialog errs1 with icon 2 buttons {"OK"} default button 1
    end try
    else
    display dialog errs2 with icon 2 buttons {"OK"} default button 1
    end if
    else
    display dialog errs3 with icon 2 buttons {"OK"} default button 1
    end if
    end repeat
    set end of my tt to t
    return t
    end makeGuess
    on logText(t, {append:append})
    --tell application "AppleWorks 6"
    tell application "TextEdit"
    if not _append then
    make new document at front
    end if
    tell document 1
    make new paragraph at end with data t --with properties {font:"Palatino"}
    end tell
    end tell
    end logText
    local _done, _exit, w, t, s, r, l, m, sgn
    logText("", {_append:false}) -- open new empty log file
    set _done to false
    repeat until _done
    -- (1) set secret word (w = some (wordLength)-letters word)
    set w to some paragraph of lookup("^.{" & wordLength & "}$", dict)
    logText(NL & line1a & (current date) & NL & line1b & NL & line1c & NL & NL & line2 & NL, {_append:true})
    set my rr to {line2}
    set my tt to {} -- reset used guess words list
    repeat with i from 1 to maxGuesses
    -- (2) get guess word
    set t to makeGuess()
    -- (3) evaluate number of matches
    set s to matchWords(t, w)
    -- (4) check exit conditions and set game summary if necessary
    set {_exit, sgn} to {false, ""}
    if t = w then -- guessed right
    set {l, m, _exit, sgn} to {line3a & w & "." & NL & line4, mss3a & w, true, space & wonSign}
    else if t = givenUpSign then -- gave up
    set {l, m, _exit, sgn} to {line3b & w & "." & NL & line4, mss3b & w, true, space & givenUpSign}
    else if i = maxGuesses then -- exhausted guesses
    set {l, m, _exit, sgn} to {line3c & w & "." & NL & line4, mss3c & w, true, space & exhaustedSign}
    end if
    -- (5) log latest result and show results of this game
    set r to "" & i & tab & t & tab & s & sgn
    set end of my rr to r
    logText(r & NL, {_append:true})
    choose from list my rr default items my rr's item -1 with prompt mss2 with empty selection allowed
    -- (6) log and show game summary
    if _exit then
    logText(NL & l & (current date) & NL & NL, {_append:true})
    display dialog m buttons btt2 default button 2 with icon 1
    if button returned of result = btt2's item 1 then set _done to true
    exit repeat
    end if
    end repeat
    end repeat
    end script
    tell o to run
    end guessword
    --END OF SCRIPT

  • Having trouble with the most simple of things: Static IP

    I am having trouble with the most simple of things: Static IP.
    I am working in Windows Server 2008 R2 SP1.
    "Control Panel\Network and Internet\Network and Sharing Center\Local Area Connections>Properties>Internet Protocol Version 4 (TCP/IPv4) and Internet Protocol Version 6 (TCP/IPv6)"
    IPv4: I have went to "ipconfig /all" and found the "preferred" IP Address and the Default Gateway. 
    Assign DNS Servers?
    IPv6: I used "netsh interface ipv6 show address level=verbose" and found 3 usable IPv6 IPs.
    Assign IP Address, Default Gateway and DNS Servers?

    What is the question?
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Trouble with 3rd party VST installs for Garageband, can't find instruments

    Hi,
    I am having trouble with Audio Units for Garageband when installing 3rd party software, VSTs, loops, instruments. I have more issues with Logic Pro. I am hoping that it is the same underlying issue and that I am just missing something. I have the manuals (not great for troubleshooting). I am confused with some installs use User Library and others use the Computer Library. I do go to the mfgs sites for updates. The installs sometimes work as standalones but I don't see ALL of the components of the software in say Garageband or Logic. Mostly, I am missing the "instruments" and "loops" that I want to access within the DAW. Some examples:
    • Here is some of the software I am talking about:  East West sample libraries (Play and Native Instruments); Vienna Symphonic librarires; Sylenth1 (just last night); Sample Tank 2 and Total Workstation 2 from IK Multimedia and others.
    • In GB I see the Audio Units for Vienna, Play, Sylenth, some of the IK Multimedia but NOT any instruments when I go to the "Sound Generator" -- I seem to be missing the instruments and loops. I see less AUs in Logic Pro. Some of these are VST instruments.
    • Can I just drag-drop samples to the library folders to fix this?
    • The plug-ins do not seem to work (though Sylenth1 worked for a single sound). When there is a standalone app (as in Sample Tank), I finally got the "sounds" to be reinstalled and loaded, those sounds/samples don't show up in any DAW.
    • When and if the sounds/loops/samples show up in GB's "Instruments" section will I be able to tell that they belong to that particular software or library?
    Thanks in advance.
    John

    Found the answer myself, it was simple:
    • Select the Track
    • Show the Instrument (info area)
    • Click on Edit
    • Click on the "Sound Generator" pop up field.
    • At the bottom of the pop-up list, select from the Audio Units that you have installed. This is where you see "Sample Tank 2, Vienna Instruments..."
    • NEXT -- IMPORTANT:   CLICK ON THE PICTURE next to the Sound Generator pop-up field.The AU unit loads up, the interface pops up, you load up the instruments in this AU Unit. You do NOT see the sounds from the AU unit in the normal Apple instrument list.
    This was not intuitive but once you know it, fairly simple.
    Still, the devil is in the details -- more questions on the way.

  • Having trouble with itunes and windows 8

    anyone else having trouble with windows 8 and itunes?  My computer doesn't seem to recognize my shuffle.

    A simple search would have answered such a silly question.

  • Having trouble with persist

    I have created a simple application where a user can order items and then i'm saving the order and all the items (details of order) to the dataBase.
    i'm using jdk1.5 with jboss and mySql (also hibernate).
    i'm having troubles with saving the details of the order, the relevant code is-
    order entity -
    @Entity
    public class Orders implements Serializable
        @Id @GeneratedValue
        private long orderId;                    //generated in db
        private String name;
       public Orders(String userName)
            this.userName=userName;
        public long getOrderId() { return orderId; }
        //getters and setters...
    detailsOfOrder entity -
    @Entity
    public class DetailsOfOrders implements Serializable
    @Id
    private long orderId;
    @Id
    private int productId;
    private int quantity;
    public DetailsOfOrders(long orderId,int productId)
         this.productId=productId;
         this.orderId=orderId;
    public long getOrderId() { return orderId; }
    public int getProductId() { return productId; }
    //getters and setters...
    }session bean (order method) -
            List<SCItem> listOfItems;                         //SCItem is a regular class
            Orders order=new Orders(userName);
            manager.persist(order);
            long orderId=order.getOrderId();   //get order id after persisting
            for(SCItem item : listOfItems)    //save details of order
             DetailsOfOrders detail=new DetailsOfOrders(orderId,"1");
             manager.persist(detail);                                                   //exception occures here
           }when i'm trying to make an order i'm getting the exception-
    javax.transaction.RollbackException: [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] [com.arjuna.ats.internal.jta.transaction.arjunacore.commitwhenaborted] Can't commit because the transaction is in aborted state
    what is the problem?
    thanks in advanced.

    yes, the entity classes have no-arg constructors (i just tried to write it shortly here...)
    about the other thing , well i'm sorry , the right code is-
    session bean (order method) -
       List<SCItem> listOfItems;                         //SCItem is a regular class
       Orders order=new Orders(userName);
       manager.persist(order);
       long orderId=order.getOrderId();   //get order id after persisting
       for(SCItem item : listOfItems)    //save details of order
         DetailsOfOrders detail=new DetailsOfOrders(orderId,item.getProductId());
         manager.persist(detail);                                                   //exception occures here
         }what else could it be?

  • Update of photoshop CC - trouble with NVIDIA Quadro 1000M display driver. PS freezes

    Hey guys,
    Since today I've got trouble with my PS CC.
    I've updated PS CC yesterday 2014-12-12.
    I was doing some drawings today and two times PS freezes during switching layers of or selecting a mask.
    A message appeared that there was trouble with the display driver an PS switched off the GPU support because of that issue.
    Ok, I thought let's update the display driver and so I've done today. I switched to actual NVIDIA display driver version 314.21
    I'm working with an NVIDIA Quadro 1000M on a DELL mobile Workstation Precision M4600 with 8 GB RAM.
    Now when I start up PS and press alt+k, my 2 displays showing a black screen for 1-2 seconds.
    After closing the general setup window again black screen for 1-2 sec and the top menu bar is showing no entries.
    When I move the mouse pointer over the bar, the menus appear again. But the bar is like transparent at the parts where no menues are.
    When I unlock the window from the screen an put it back fitting to the screen everything looks like normal.
    Till today I hadn't any problem with my notebook in that kind of way.
    Maybe someone has or had similar problems.
    Would be nice if someone can help me.
    thanks

    Oh, that sounds very bad. It's not that bad for me. It's not crashing that often at the moment, only black screens at start up or if setting dialog is opened. But I will see tomorrow how often it will crash, during today it crashed 2 times when doing some ridiculous simple actions like switchid to another layer  and the other time when trying to edit an mask layer. I will contact the support chat on monday regarding this issue. Maybe there is a solution or an update soon... I keep may fingers crossed for you.

  • Trouble with Safari - it keeps shutting down - all because I tried to get rid of MacKeeper

    trouble with Safari - it keeps shutting down - all because I tried to get rid of MacKeeper ad - after I install what I thought was an update since I already had MacKeeper, it would not allow me to continue without buying the new one. Make a long story short I switch to Firefox and deleted as much as I could of Safari (files, preferences etc) Now I'm at OS Yosemite X 10.10.2 and would like to get Safari up and running again - I've searched for Adware in applications etc but could not find it. Found what to do from the community, but before I go that route...Do I have to know where or if I actually have this spyware?    And if I were to reinstall  Maveric - would my files and such be undisturbed?  so that only Safari would be replaced?    I"M LOST .... (as if you couldn't tell)
    I've been working with Mac for 30 years or more and although I'm hands on taught the only thing I lack is the newer "buzz words" so if you can help me out - please make it simple ??  thanks

    There is no need to download anything to solve this problem.
    You may have installed one or more of the common types of ad-injection malware. Follow the instructions on this Apple Support page to remove it. It's been reported that some variants of the "VSearch" malware block access to the page. If that happens, start in safe mode by holding down the shift key at the startup chime, then try again.
    Back up all data before making any changes.
    One of the steps in the article is to remove malicious Safari extensions. Do the equivalent in the Chrome and Firefox browsers, if you use either of those. If Safari crashes on launch, skip that step and come back to it after you've done everything else.
    If you don't find any of the files or extensions listed, or if removing them doesn't stop the ad injection, ask for further instructions.
    Make sure you don't repeat the mistake that led you to install the malware. It may have come from an Internet cesspit such as "Softonic" or "CNET Download." Never visit either of those sites again. You might also have downloaded it from an ad in a page on some other site. The ad would probably have included a large green button labeled "Download" or "Download Now" in white letters. The button is designed to confuse people who intend to download something else on the same page. If you ever download a file that isn't obviously what you expected, delete it immediately.
    Malware is also found on websites that traffic in pirated content such as video. If you, or anyone else who uses the computer, visit such sites and follow prompts to install software, you can expect more of the same, and worse, to follow. Never install any software that you downloaded from a bittorrent, or that was downloaded by someone else from an unknown source.
    In the Security & Privacy pane of System Preferences, select the General tab. The radio button marked Anywhere  should not be selected. If it is, click the lock icon to unlock the settings, then select one of the other buttons. After that, don't ignore a warning that you are about to run or install an application from an unknown developer.
    Still in System Preferences, open the App Store or Software Update pane and check the box marked
              Install system data files and security updates (OS X 10.10 or later)
    or
              Download updates automatically (OS X 10.9 or earlier)
    if it's not already checked.

  • Trouble with image sizes....

    I have a freelance job where I am creating a few simple animations for a digital menu board for a Dairy Queen. I am having trouble with the size of my stage translating to the proper size on the LCD monitor. Is there a trick for making the conversion? The stage is huge and in writing is way bigger but still comes up smaller when viewed on the monitor. The monitor we are using is 768 x 1366 (or 15.5” x 27.5”) and my stage is 5100px x 7688px ( or 70"x106"). So you would think the flash file would be huge but it is too small by about 4in?!?!
    --Matt--

    those aspect ratios are different.  to fill the screen, you will need to make a descision to leave space at the top/bottom, crop your stage width or distort your stage. 
    you can publish for 100%x100% and use the scaleMode property of the stage to select your option.

  • Trouble with first progråµ

    I'm having trouble with my simple calculator, which is similar to the calculator in "cocoa programming for dummies".
    http://public.me.com/schoolkid144
    its firstproject.zip
    The trouble is that when I get the value of the two text fields, it always returns 0 even when the value of both text fields is 1.

    Hi S-T Programmer, and welcome to the Dev Forums!
    The connections between the FuseBox outlets and the three text fields just need to be reversed in Interface Builder. An IBOutlet instance variable is associated with an Interface Builder object by Ctrl-Dragging from the object which owns the variable to the object the variable wants to reference. For example, to connect the FuseBox ivar named answerField to the text field which is to display the answer, Ctrl-Click on the FuseBox icon in the xib window then drag to the desired text field object. The text field object may either be found as an icon in the xib (Document) window, or as the full-scale drawing of the object in the IB Editor window (where you lay out the view). When you release the mouse at the end of the drag, a black list of all the FuseBox class outlets will pop up. Select the outlet you meant to connect (in this case answerField), and the connection will be made.
    The problem with giving IB instructions in the forum is that a picture is worth a thousand words, and this post is on the wrong side of that equation. So I'm hoping you'll be able to see enough of the picture from all these words. There are two other ways of making IB connections that are harder to use, but easier to explain:
    1) If you Ctrl-Click (without dragging) on any icon in the xib window, a floating, black panel will pop up showing every possible connection to that object. To make the same connection discussed above from the answerField outlet to the right-hand text field, Ctrl-Click on the FuseBox icon and find answerField in Outlet list. You can now drag directly from the connector symbol to the desired text field. This time there's no popup when you release the mouse because IB already knows which outlet is to be connected. After the connection is made, you can Ctrl-Click on the text field icon and see its connection panel. You'll know the connection is going in the right direction when the connection to the text field is listed under +Referencing Outlets+ and the connection back at the FuseBox object is listed under Outlets.
    The floating, black connection panels are especially useful for deleting connections. Since your project currently has three backwards connections, you can use these panels to delete those by clicking on the 'X' which is visible on each connection line.
    2) There's also a tab in the Inspector window for making connections. Select one of the objects you want to connect and select Tools>Connections Inspector from the top menu if you have trouble finding the tab. You can make connections in this window if you want, but you can also use the Connections Inspector to view the connections previously made by dragging.
    This topic is covered in more detail (including some screen shots! yay!!) under Creating and Managing Outlet and Action Connections in the +Interface Builder User Guide+.
    I think your connection between the Calculate button and the FuseBox was correct. This post has gotten so long I can't remember if I had to reverse that one too, but I don't think I did. Anyway you'll be able to check for yourself now that you know what to look for, right? The connection between an object's Sent Action and an IBAction method goes in the direction opposite to an IBOutlet connection. Thus to connect the Calculate button you need to drag from the button to the FuseBox.
    _Outlet from_ the FuseBox
    _Action to_ the FuseBox
    Hope that helps!
    \- Ray

  • Trouble with a Dell Printer on a network with PCs.

    I've searched the forum and found only trouble with people getting their files to print on a mac, but I can print, only it's terrible quality while the PCs are printing out high-quality. It's a Dell 5100cn, and I've installed the updated driver from the Dell website, and called them for help, but they said they couldn't help with a Mac problem. I'm connected through an IP address over a wireless connection.
    Has anyone help?
      Mac OS X (10.4.5)  

    It was a simple problem after all. Sadly my hard disc was about to snuff it. I changed disk, reinsalled Tiger and all is as smooth as ever.

  • Trouble with array to spreadsheet string

    I am having trouble with the array to spreadsheet string.
    I have a 1-d array of string, the output spreadsheet string never puts a space on the first row, but all others.
    example:
    05:59:29.170    00000101     8        00 00 07 00 0B 0E 0D 0C
     05:59:29.198    00000100     8        00 00 3A 3A 39 39 39 39
     05:59:29.220    00000101     8        00 00 07 00 0B 0E 0D 0C
     05:59:29.248    00000100     8        00 00 39 39 39 39 39 39
    format string is %s and default tab is delimiter.
    this is screwing up my program because of the "scan for string" function can't be used correctly if the spreadsheet string isnt consistent.
    Any suggestions?
    Thanks

    You don't need to use "array to spreadheet string": You could use plain formatting for full control over the output.
    Still, your observation is a bit odd. Could you attach a simple VI that shows the behavior? (Put your input array into a diagram constant).
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • Imac 15" flat panel

    Question, is there any web sites that show "How to put a larger display on 15 older Imac G4 Flat Panel Imac?" The type that look like a half ball, with the display on a pole. I would like to put a larger 19" analog LCD display on this Imac, one you c

  • Consolas hyphen problem in PDFs

    Here's the setup: FrameMaker 7.2, Windows XP, Acrobat Pro 8.1.3, although I think all versions are actually irrelevant to the issue. I recently switched to Consolas font for my code listings.  But when Acrobat/Distiller converts the FrameMaker file t

  • JCO Connection and Changing Parameters

    Hi, I am trying to retrive the content populated in changing parameter using the following code                  JCoTable titles = function.getChangingParameterList()                                               .getTable("TITLE_HELP");             

  • How to open .mkv file in premiere pro 5.5

    having trouble opening .mkv files?

  • Illustrator 6 missing plug-ins, won't open new files

    I was initially getting an error message when attempting to open Illustrator 6 on my Mac (running 10.6.8). An unknown error has occurred (4294967253). Adobe Illustrator will now quit. I read a post where the user was to select shift+option+command ri