Mod_Rewrite/Restart Regex Problem

I'm trying to migrate to SJWS 7.0R1 from Apache, and trying to migrate the following rewrite functionality:
Rewriterule ^(.*/)$ asp.php?url=$1index
Rewriterule ^$ asp.php?url=index
Rewriterule ^admin(/+(.*))?$ admin.php?url=$2
RewriteCond %{REQUEST_FILENAME} !-f
Rewriterule ^(.+)\.asp$ asp.php?url=$1&%{QUERY_STRING}
RewriteCond %{REQUEST_FILENAME} !-f
Rewriterule ^([^\.]+)$ asp.php?url=$1
RewriteCond %{REQUEST_FILENAME} !-f
Rewriterule ^(.+)$ file.php?url=$1
I've successfully started with redirecting the base to asp.php?url=index, but beyond that, I'm getting errors related to either the backreference not being picked up, or being undefined. The URL I'm working with at the moment is:
(From the Virtual Server's obj.conf file)
<Object name="default">
NameTrans fn="restart" from="/" uri="/asp.php?url=index" (This Works)
This directive (See Error #1)
<If $uri =~ "^/([a-z].*)">
NameTrans fn="restart" uri="/file1.php?q=$1"
</If>
or, this directive (See Error #2)
<If $uri =~ "^/([a-z].*)">
NameTrans fn="restart" from="^/([a-z].*)" uri="/file1.php?q=$1"
</If>
The errors that I'm getting:
Original URL: /sun_components/index.asp
Error #1:
failure (24219): trying to GET /file1.php whiletrying to GET /asp.php while trying to GET /, HTTP2297: Cannot restart request for /file1.php?q=file1.php (Exceeded maximum of 50 restarts)
(Notice that the backreference doesn't get picked up, and is instead referencing file1.php)
Error #2:
failure (24219): for host XXXXX trying to GET /sun_components/index.asp, handle-processed reports: TTP2298: Error interpolating parameters for restart (Backreference $1 undefined)
Thanks very much in advance for any help you can give me.
-Doug

OK, I had used the $restarted check, and that's all working great. However, on a separate VirtualServer, I'm having the following problem: when I include the $restarted check, it returns a 404 error; when I remove it, it ends up in an infinite loop. If I manually put in the rewritten url, all works fine. Logs are below, which show that it restarts, but after it restarts, it continues trying to process on the original URI, rather than on the restarted one.
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/index.php, =~ reports: Subject "/new_hampshire/docs/990_party_stores/index.php" matches pattern "^/new_hampshire/docs(.*)$" with 1 capturing subpattern(s)
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/index.php, func_exec reports: executing fn="restart" uri="docs.php?url=/990_party_stores/index.php" Directive="NameTrans"
[12/Dec/2007:11:19:15] fine ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/index.php, restarting request as docs.php?url=/990_party_stores/index.php
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, func_exec reports: fn="restart" uri="docs.php?url=/990_party_stores/index.php" Directive="NameTrans" returned -4 (REQ_RESTART)
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, process-uri-objects reports: processing objects for URI /new_hampshire/docs/990_party_stores/docs.php
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, process-uri-objects reports: adding object name="default"
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, func_exec reports: executing fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true" Directive="AuthTrans" magnus-internal="1"
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, func_exec reports: fn="match-browser" browser="*MSIE*" ssl-unclean-shutdown="true" Directive="AuthTrans" magnus-internal="1" returned -2 (REQ_NOACTION)
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, func_exec reports: executing fn="ntrans-j2ee" name="j2ee" Directive="NameTrans"
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, func_exec reports: fn="ntrans-j2ee" name="j2ee" Directive="NameTrans" returned -2 (REQ_NOACTION)
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, func_exec reports: executing fn="pfx2dir" from="/mc-icons" dir="/sun/webserver7/lib/icons" name="es-internal" Directive="NameTrans"
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, func_exec reports: fn="pfx2dir" from="/mc-icons" dir="/sun/webserver7/lib/icons" name="es-internal" Directive="NameTrans" returned -2 (REQ_NOACTION)
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, func_exec reports: executing fn="check-acl" acl="default" Directive="PathCheck"
[12/Dec/2007:11:19:15] finest ( 7564): for host XX trying to GET /new_hampshire/docs/990_party_stores/docs.php while trying to GET /new_hampshire/docs/990_party_stores/index.php, func_exec reports: fn="check-acl" acl="default" Directive="PathCheck" returned -2 (REQ_NOACTION)

Similar Messages

  • I'm trying to update to CC (2014) and keep getting this message: "Installation Failed. Installation encountered an error. Please restart your system and try again. (15) I've done the restart, same problem.

    I'm trying to update to CC (2014) and keep getting this message: "Installation Failed. Installation encountered an error. Please restart your system and try again. (15) I've done the restart, same problem.
    Help!

    Hi stijill2,
    In case you are facing issues uninstalling the app's then please try manual cleanup of Adobe from your machine by following the below mentioned steps:
    1. Navigate to Applications and trash all Adobe app's and Adobe folder.
    2. Navigate to Applications/Utilities/ and trash Adobe Application Manager,Adobe Creative Cloud, Adobe Installer folder.
    3. Go to Library/Application Support and trash Adobe.
    4.Go to ~/Library/Application Support and trash Adobe.
    Try installing the CC app's and let us know if still the error persists.
    Regards,
    Romit Sinha

  • The camera on my ipad cannot be launched,the shutter appears closed and the button for taking a picture is not there. When tryying to use intsgram the message camera cannot be launched appears .tried to restart but problem still there

    My camera is not working .shutter appears closed.tried to restart ipad but problem still there.no problem with photo booth problem with istangram

    Try closing the Camera app via the taskbar and see if it works properly when you re-open the app : from the home screen (i.e. not with the Camera app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Camera app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    And by restart do you mean a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear (you won't lose any content, it's the iPad equivalent of a reboot). If not, and if closing the app doesn't fix it, then you could try that.

  • RegEx Problem with flag COMMENTS

    Hello,
    I have the following Exception:
    java.util.regex.PatternSyntaxException: Unclosed group near index 9
    when my program is running with this flags:
    Pattern patt = Pattern.compile("^(@#@.+)$", Pattern.MULTILINE | Pattern.COMMENTS);but when I run this:
    Pattern patt = Pattern.compile("^(@#@.+)$", Pattern.MULTILINE);it works fine.
    Any COMMENTS ;-) for this problem? The entire RegEx is much bigger. I want to comment it.
    Thanks sacrofano

    Hi,
    thanks for your help, but it did not work.I did not suggest anything that would work! I was trying to point out that the Javadoc says that everything from # to the end of the pattern is treated as comment.
    I run this
    Pattern patt =
    Pattern.compile("^(?:(@#@.+))$",(Pattern.COMMENTS));[/
    code]So why, based on reading the Javadoc, would you expect this RE to compile? Everything after the # is treated as comment so your effective regular expression is "^(?:(@" which is obviously an invalid RE!
    with same exception as above.
    Is there a problem with the Flag Pattern.COMMENTSNo! RTFD.

  • I have a Power MAC G5 dual 2ghz that has a peculiar problem.  The monitor will not report until the machine is stopped and started 5 or 6 times.  Once booted it will restart without problem if done so from the apple menu.  Swapped out all hardware

    My Power MAC G5 has a peculiar problem.  The monitor fails to report until the machine is started and shut down 5 or 6 times.  Once it has booted it can be restarted without incident from the Apple menu.  I have swapped out all of the hardware.  Monitor, Memmory,Video Card and reset the PRAM.  After resetting the PRAM it booted on the first attempt and I thought it was solved.  But the next day it was back to starting and stopping until the Monitor came on.  Does anyone have a suggestion?  Thanks

    It could be a bad PRAM battery corrupting your PRAM.  Typically when I have monitor issues on startup it is a bad PRAM battery.
    Texas Mac Man's PRAM, battery, PMU tutorial - https://sites.google.com/site/macpram/mac-pram-nvram-cuda-pmu-battery-tutorial
    Apple's PRAM reset directions - http://docs.info.apple.com/article.html?artnum=2238
    If you have a digital multimeter you can check the condition of your present battery.  It should read at least 3.2V if it is the 3.6V half-AA battery type.  A new battery provides 3.67 Volts DC. A bad battery provides under 3.2 Volts DC.  Ideally this should be measured while the battery is under load; added recommendation from Hans777:
    >I have recently found out that an exhausted battery will still indicate >3.6 V with a high internal resistance VM.
    >
    >Checking incircuit: powercord disconnected press PMU reset button for >about 5 sec before measuring.
    >
    >Checking outside: load the battery with a 1500 Ohm resistor when measuring.
    Alternatively, test the battery while it is still in the computer.
    If the battery is more than 5 years old, especially if you totally disconnect the computer from the power regularly, or have left it unplugged for several months at one time, it is likely the battery is dead.
    Sometimes you have to do a more intensive reset of hardware management:
    [Resetting Cuda/PMU on Power Mac G5, Power Mac G4, Power Macintosh G3|http://support.apple.com/kb/HT1939]
    [How to reset the SMU on a Power Mac G5 (Late 2004) or Power Mac G5 (Late 2005)|http://support.apple.com/kb/HT1436]
    [iMac G5: How to Reset the SMU|http://support.apple.com/kb/HT1767]

  • C3-01 is restarting (software problem)

    Hi.
         I have problem with Nokia C3-01.
    When I input in: Menu -> Messaging -> Others messages -> Flash message and click "Back", phone is restarting.
    Every time when I'm trying exit from "Flash message", phone is restarting
    Somebody have that problem?
    My software version: 05.65
    Language: 05.65

    carlo1986,
    Yes the 7.20 is released & available (but depends on the region / service provider).
    Vist http://europe.nokia.com/support/download-software/device-software-update/can-i-update & see whether your device can be upgraded (by entering the Product Code)
    Cheers!
    Pls click the green star at left if you find my post useful.
    C3-00 V07.20 Devices since 1999 Motorolla A130 ETACS, MicroTAC ETACS, M3788, Accompli 008, C200 Nokia RinGoIII (NHX-7A) ETACS, 7250i, 3210, 5210, 6030, 3230, 2300, 2310, 3110c, 6300 Ericsson KF788 TDMA, A1018s Sony Ericsson K510 Samsung SGH-600, C210, GT-C3200 Blackberry 7130g

  • Restart/Freeze Problem

    I recently gained many glitches in my laptop. My iTunes and Safari quit unexpectedly a lot, as well as the Mac OSX system. There are many times where I'll be online or something and either Finder as well as all other running applications will freeze and the rainbow pinwheel will show up and I can't do anything but force shut down and restart, or I will get a Kernel error asking me to restart the computer. I also had this problem towards the end of my run with my old iBook G4, and I'm not sure what the problem is.

    Sounds like you may need some system maintenance done.
    Boot from your system install DVD, run your Disk Utility and repair your permissions. Also, run OnyX and clean your system and user cache under the Automation tab.
    Dave M.
    MacOSG Founder/Ambassador  An Apple User Group  iTunes: MacOSG

  • 2008 r2 hyper-v guest with static IP always looses network connectivity after every restart - no problem with DHCP

    Hello,
    We are running 2008 R2 domain with one physical DC and other running in VM on Hyper-V host (2008 R2 Standard). The host has 4 NICs and is configured to use one physical NIC for itself (management) and the hyper-v guest is configured to use another dedicated/physical
    NIC (through microsoft virtual switch) just for itself.
    I noticed that after setting the hyper-v guest with a static IP address all works fine only until guest restart. When the guest boots up the IP address is still configured correctly in IPv4 properties, but there is no network connectivity at all and in fact
    the guest shows running APIPA config in ipconfig /all output. That situation continues until I remove the virtual NIC from hyper-v guest, remove the virtual switch from dedicated NIC on host and then reconfigure it (using same settings as they were). very
    annoying.
    For time being I switched the virtual DC (problematic hyper-v guest) to a DHCP IP and configured DHCP server (running on physical DC machine, not on hyper-v host) to store a reservation for the hyper-v guest so it always gets the same "static"
    IP configuration.
    Is there some kind of a problem/bug with using static IP on (2008 R2) hyper-v guests? is there a hotfix for static IP config in hyper-v guest environment?
    both 2008 R2 OSes (host and guest) are up to date with all updates (synced with Microsoft, not WSUS).

    OK, I'm not at the office now, but took my time to test out the restart scenarios on problematic virtual guest remotely.
    No dice, same as it was, everything works fine after guest has IP configured in DHCP mode (IP reservation of 192.168.1.5 for specific MAC address) and it doesn't work after restart in static IP mode (same address, works before restart of guest).
    I also took "arp -a" outputs at each step from host server and that was always saying there is only a single host (192.168.1.5 = VDC = problematic virtual guest) assigned to that IP address and always with same MAC, so that pretty much rules out
    ARP/MAC troubles and no issues with switches/routers getting spoofed. Problem is most likely with the virtual guest (WS2008R2) or within the host running same OS.
    Here are outputs:
    A) VDC has IP configured in DHCP mode - always same, survives through restart (all works)
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . : CD.lan
    Description . . . . . . . . . . . : Microsoft Virtual Machine Bus Network Adapter
    Physical Address. . . . . . . . . : 00-15-5D-01-D3-00
    DHCP Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    Link-local IPv6 Address . . . . . : fe80::b9af:6679:3142:8799%13(Preferred)
    IPv4 Address. . . . . . . . . . . : 192.168.1.5(Preferred)
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Lease Obtained. . . . . . . . . . : Thursday, January 30, 2014 5:34:48 PM
    Lease Expires . . . . . . . . . . : Friday, February 07, 2014 5:35:26 PM
    Default Gateway . . . . . . . . . : 192.168.1.254
    DHCP Server . . . . . . . . . . . : 192.168.4.5
    DHCPv6 IAID . . . . . . . . . . . : 268440925
    DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1A-6F-5F-C2-00-15-5D-01-D3-00
    DNS Servers . . . . . . . . . . . : 192.168.1.5
    192.168.4.5
    NetBIOS over Tcpip. . . . . . . . : Enabled
    ARP -a output from host server at that time:
    Interface: 192.168.1.4 --- 0xc
    Internet Address Physical Address Type
    192.168.1.5 00-15-5d-01-d3-00 dynamic
    B) VDC has IP configured in static mode - BEFORE RESTART (all works)
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Microsoft Virtual Machine Bus Network Adapter
    Physical Address. . . . . . . . . : 00-15-5D-01-D3-00
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    Link-local IPv6 Address . . . . . : fe80::b9af:6679:3142:8799%13(Preferred)
    IPv4 Address. . . . . . . . . . . : 192.168.1.5(Preferred)
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.1.254
    DHCPv6 IAID . . . . . . . . . . . : 268440925
    DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1A-6F-5F-C2-00-15-5D-01-D3-00
    DNS Servers . . . . . . . . . . . : 192.168.1.5
    192.168.4.5
    NetBIOS over Tcpip. . . . . . . . : Enabled
    ARP -a output from host server at that time:
    Interface: 192.168.1.4 --- 0xc
    Internet Address Physical Address Type
    192.168.1.5 00-15-5d-01-d3-00 dynamic
    C) VDC has the same IP configured in static mode - AFTER RESTART (no more network connectivity at all, LAN in Public zone)
    Windows IP Configuration
    Host Name . . . . . . . . . . . . : VDC
    Primary Dns Suffix . . . . . . . : CD.lan
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No
    DNS Suffix Search List. . . . . . : CD.lan
    Ethernet adapter Local Area Connection:
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : Microsoft Virtual Machine Bus Network Adapter
    Physical Address. . . . . . . . . : 00-15-5D-01-D3-00
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    Link-local IPv6 Address . . . . . : fe80::b9af:6679:3142:8799%13(Preferred)
    Autoconfiguration IPv4 Address. . : 169.254.135.153(Preferred)
    Subnet Mask . . . . . . . . . . . : 255.255.0.0
    Default Gateway . . . . . . . . . : 192.168.1.254
    DHCPv6 IAID . . . . . . . . . . . : 268440925
    DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1A-6F-5F-C2-00-15-5D-01-D3-00
    DNS Servers . . . . . . . . . . . : 192.168.1.5
    192.168.4.5
    NetBIOS over Tcpip. . . . . . . . : Enabled
    ARP -a output from host server at that time:
    Interface: 192.168.1.4 --- 0xc
    Internet Address Physical Address Type
    192.168.1.5 00-15-5d-01-d3-00 dynamic
    Throughout the testing, the hyper-v host IP configuration and IPconfig output was always staying same.
    The Network Connection #2 is the only one the host uses (not shared with hyper-v guests).
    The Network Connection #4 is assigned to Microsoft Virtual Switch hence why it doesn't show up in results, like below:
    Windows IP Configuration
    Host Name . . . . . . . . . . . . : HYPER-V
    Primary Dns Suffix . . . . . . . : CD.lan
    Node Type . . . . . . . . . . . . : Hybrid
    IP Routing Enabled. . . . . . . . : No
    WINS Proxy Enabled. . . . . . . . : No
    DNS Suffix Search List. . . . . . : CD.lan
    Ethernet adapter Local Area Connection 3:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : HP Ethernet 1Gb 4-port 331i Adapter #3
    Physical Address. . . . . . . . . : 9C-8E-99-52-15-91
    DHCP Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    Ethernet adapter Local Area Connection 2:
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : HP Ethernet 1Gb 4-port 331i Adapter #2
    Physical Address. . . . . . . . . : 9C-8E-99-52-15-90
    DHCP Enabled. . . . . . . . . . . : No
    Autoconfiguration Enabled . . . . : Yes
    Link-local IPv6 Address . . . . . : fe80::dc78:8a3b:38a5:7af3%12(Preferred)
    IPv4 Address. . . . . . . . . . . : 192.168.1.4(Preferred)
    Subnet Mask . . . . . . . . . . . : 255.255.255.0
    Default Gateway . . . . . . . . . : 192.168.1.254
    DHCPv6 IAID . . . . . . . . . . . : 312250009
    DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1A-67-52-8F-9C-8E-99-52-15-93
    DNS Servers . . . . . . . . . . . : 192.168.4.5
    192.168.1.5
    NetBIOS over Tcpip. . . . . . . . : Enabled
    Ethernet adapter Local Area Connection:
    Media State . . . . . . . . . . . : Media disconnected
    Connection-specific DNS Suffix . :
    Description . . . . . . . . . . . : HP Ethernet 1Gb 4-port 331i Adapter
    Physical Address. . . . . . . . . : 9C-8E-99-52-15-93
    DHCP Enabled. . . . . . . . . . . : Yes
    Autoconfiguration Enabled . . . . : Yes
    On Monday I will install more test guests in Hyper-V host (WS2008R2), in variety of flavors like 7x64, 8.1x64, ws2012r2, and see if they show similar problems with static IP configuration when utilizing a dedicated NIC from host server.
    Don't get me wrong, I can live with virtual DC running on DHCP IP reservation (which is based on MAC), because the virtual DC pretty much requires a physical PDC (hosting also DHCP in my network) to be present for safety reasons ... however I prefer a static
    IP configuration on all servers, hence my question and surprise why it doesn't work.

  • Hi everyone,I am new to this so please forgive me any mistakes I may make.Early 2008 Mac Pro desktop installed ML ok but next day nothing, reinstall ok restart same problem ML installer remains on my  snow leopard disk. Any help appreciated.Kind regards

    There I go first mistake straight off. I was wondering how to fit my big long problem in. My fault I am sure but if anyone can help please.
    Early 2008 Mac Pro Desk Top, 2 hard drives 1)snow leopard, 2)lion.
    I have downloaded Mountain Lion usuing disk 1,selected no.2 as my destination, installed ok everything fine, set my startup as no.2 in preferences, switch off. Next day start up - nothing, my only way to get moving was physcally remove disk 2, and let snow leopard restart.
    Reinstalled, everything fine, then same problem on restart next day, remove disk,and so on.
    The mountain Lion installer remains in the snow leopard dock.
    I know the problem is me, so if anyone is kind enough to be able to offer a solution it needs to be in easy speak (press button a, press button b) because I am not that savvy.
    my best regards to all, and thank you.

    Where did you get Mountain Lion? Did you download the 4+ GB file from the App Store? If so, then I would try doing the following:
    Drive Partition and Format
    1. Open Disk Utility in your Utilities folder.
    2. After DU loads select your second drive on which Lion is installed (this is the entry with the mfgr.'s ID and size) from the left side list. Note the SMART status of the drive in DU's status area.  If it does not say "Verified" then the drive is failing or has failed and will need replacing.  SMART info will not be reported  on external drives. Otherwise, click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed.
    Install Mountain Lion
    Double-click on the Mountain Lion Installer application in your Applications folder. Follow instructions to install Mountain Lion on your old Lion drive - Drive 2. When the installer finally finishes it will restart the computer automatically from Drive 2. At this point there is no need to change the Startup Disk unless you want to boot from your Snow Leopard drive.
    You will startup to the Setup Assistant in which you will configure your own admin account. You can, if you want, omit that part and instead choose to migrate your Home folder and other data from the Snow Leopard drive. I would recommend you do that unless you wish to do it manually at a later time. In this case create your new admin account using the exact same username and password that you now use on your Snow Leopard system.

  • Phone field regex problem

    Hi, I need a little help with my regex... it works good, except for one last issue.
    /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4} ?)$/
    I have a single phone field. And  it to allows just 10 digits, or digits with dashes, or digits with parenthesis, or digits with spaces. And it even allows the user to insert a white space at the end (by accident).  This all works good.
    But I was told that no area codes in the US start with a 0 or 1?  How can I make it only have a range of 2 to 9 for the area code?
    I tried to use [2-9] but this doesn't work.
    Thanks in advance!

    The problem is that you are trying to match three digits with a [2-9] range, not just the first number.
    for example:
    333-444-555 will match because all three of the first section of digits are between 2 and 9,
    211-222-333 will not work, because 1, is the second number and you are only looking for 2-9.
    does this make sense? you have the three first numbers group together in one rule
    -Julia

  • N8 restarting, sim problem

    Hi, I have N8 for two weeks now and it just restarts 6times a day, and also got a sim-problem few times a day. I tried to reinstall the firmware twice, also deleted all apps and still the same...
    Any ideas whers the problem?

    Did you try to use another SIM card?
    Maybe you can try the one of a relative or a friend... if it works, you can consider moving your number to a new SIM and replace the current one.

  • Blank Screen after Restart / No Problems after a full Shutdown - Windows 10 Pro

    When the machine is shutdown then powered back on everything works fine. If the machine is restarted or times out and goes into the sleep mode, you can see evidence of Windows coming back up as the HDD light flickers and normal start up sounds come from the speakers. But, the screen is only backlit and blank. The only way to recover is to force power off the machine and power up normally. As a work around I have found that if I disable the graphics driver (Intel HD Graphics) the machine responds normally however one looses the sleep mode as an option. The  processor is an i7 620M (1st generation)  I am running Windows 10 Pro. The product ID is - SJ341UP#ABA All of the items in the Device Manager are normal except for the graphics adapter showing an off normal condition. Thanks // Jeff

    I have found that changing the refresh rate from 60Hz to 40Hz corrects the blank screen problem. Have no idea what that has to do with anything but at least we are not getting the blank screen on restart now. I do not consider this a fix but more of a workaround. Right clicking on the Intel Icon in the system tray then selecting Graphics Properties took me to the panel where I made this change.

  • Small RegEx problem

    Hello fellow Programmers!
    I turn to you because this small regular expression is turning me NUTS! AHHH!
    My String:
    blalba[morebla]evenmorebla]blaMy RegEx:
    \[.*(\]){1}My Aim:
    To get the first Bracket and everything between and inculding the second bracket. So that would be:
    "[morebla]"
    The Problem is I get the first bracket and everything until the LAST bracket.
    "[morebla]evenmorebla]"
    I assume this is so because ".*" just runs over everything until a final bracket appears...
    Any thoughts?

    anox wrote:
    Smithberrys suggestion worked.
    The other one didn't work out with my regEx but I am currently looking into that question mark and its functions.
    Thanks guys!Didn't work? How did you use it? Where did you use it?
    public class RegexpSample {
        public static void main(String[] args) {
            String data = "blalba[morebla]evenmorebla]bla";
            Matcher matcher = Pattern.compile("\\[.*?\\]").matcher(data);
            matcher.find();
            System.out.println(matcher.group());
    }Prints:
    [morebla]
    * is normally greedy, and a question mark makes it reluctant.
    You can find more info in the javadoc for the Pattern class, and on www.regular-expressions.info
    Kaj

  • IMac keeps freezing, needing a restart - Graphics problem

    Hi
    My 2011 21.5 inch iMac keeps freezing.  Strangely, the trackpad works but nothing on the screen reacts to moving the cursor around or clicking anywhere. requiring a restart (using the power button on the back). 
    When I then restart, I get an immediate error message saying "A graphics problem has been detected" and enables me to report the problem, which I do.
    However, this happens several times a day and only since an upgrade to Yosemite and I have tried a software update.
    Anyone have any solutions?
    Many thanks

    Hi Brenden
    Thanks for your suggestions.
    I have been trying to work out, by process of elimination, what the issue could be and it seemed to me that every time I could think of, I had Back To My Mac running. 
    I therefore removed my iCloud account from my iMac and reinstalled iCloud.  Thus far I haven't had a repetition but I am monitoring it very clearly!
    Best
    Richard

  • "Time Machine completed successfully", restart.   Problem - Does not boot?

    Time machine is on an external HD - works fine. Installed a new 1TB HD into a Dual PPC G5 MAC. Used Leopard disk to go to UTILITIES - PARTITION - ERASE on the new HD. Everything looked good. I then RESTORED FROM BACKUP under UTILITIES. I did not reinstall the Leopard OS from the disc, since it was on time machine. Proceeded to restore and after two hours, I got a message that stated "RESTORE COMPLETE SUCCESSFULLY", restart computer. Took out the Leopard disc, restarted computer and that is where I experienced the following. PROBLEM: On booting, I hear the music; then get the gray apple; then get the gear going around for a few minutes; then black screen; then the process starts over again. It will just keep up this loop until pressing the power off. Got out the leopard disc. Went to UTILITIES - REPAIR DISC - "appears ok". Then REPAIRED PERMISSIONS - Warning - came back with four SUID files that were modified but not repaired. It stated that permissions were repaired. I look at the new HD in UTILITIES and it looks like 204GB of data is on it, which is from the restore from TIME MACHINE. Do not see anything that appears wrong. Any help would sure be appreciated as I am not sure what to do next.

    Solved this problem differently than what I would have guessed. Did a lot of reading and it seems that I did everything according to how it was supposed to be done. Went back in and redid time machine and this took hours to accomplish. Used the Leopard disc again and ran into the identical problem. I decided to install Leopard and then I restored the time machine to the new hard drive. Nothing else I tried worked until I installed the OS. From there it was rather easy and it appears that everything is as it was on the original HD. I would still like to understand why restore did not work the other way. I'm on an iMac now but will be back to the G5 shortly. Good luck if anyone runs into this problem.

Maybe you are looking for

  • APX Crashes when trying to open an external folder with LOTS of subfolders.

    Has anybody else encountered this? I have an external harddrive hooked up to my Airport Extreme (801.11n). I can access everything on it and I can copy things to and from it; however, there is one folder I cannot access. Every time I try to open my m

  • Filter for rolling CMOS rolling shutter flash frames?

    I seem to recall stumbling upon a filter that removed offending frames from footage shot with a rolling shutter camera during flash photography. I didn't download it- but now I need it. Is there a easy fix or plug in that will remove the rolling flas

  • HT4623 Anyone else bricked their iPhone4 by going to IOS6?  iTunes can't see it now...

    Saw the over-the-air option to upgrade to IOS, but as already successfully upgraded my mom's iPhone4 to IOS6, knew it was a long process. Second unit had no SIM in the tray, not modified in anyway, freshly charged, backed up... and now BRICKED. Scree

  • Cant open enbedded videos; youtube for example

    Hi, I have just upgraded to mozilla beta version (latest version) and guess what: Now I cant open videos on youtube and other webpages.. help needed and uppreciated. Thank you

  • Wireless driver for a R51 2888-CTO

    I have reinstalling an R51 model 2888-CTO S/N L3-CTCD [the rest is worn out]  with Microsoft XP SP3 and cannot find a driver for the wireless ethernet.  Can anyone tell me which model wireless controller is in this device?  I have tried all five list