Browser Check Script Needed
Hi,
we need a script, or whatever you sugegst, to include into
index.htm page which contains main flash file to check user's
browser and provide a note to users of FireFox and Opera.
The problem: site built in FLash 8 with Action Script 2 and
exported for latest Flash player. FireFox and Opera displaying bad
results, IF THEY DON'T HAVE latest player installed. Even if there
is a latest player installed for Internet Explorer it does not
reflect on Opera or FireFox. So we need to tell users to go to a
specific page on Adobe site and download and install it using these
browsers.
Please help.
Thx.
P@tty Ayers ~ACE wrote:
> Gary's post might have been a little sarcastic, but he's
entirely right that
> *nobody* is going to download and install software in
order to visit a
> certain web site.
It would be more accurate to say "very few" people will
download and
install the software you recommend. I promote Firefox very
heavily on my
websites, through a Google Firefox referral button. I get
very few sales
- but I do get some.
In the near future, I will likely scale back my campaign in
hopes of
increasing traffic, but I will likely ban visitors using IE
entirely
from adult political sites (once they're finished), partly as
an experiment.
Note, also, that there are actually quite a few sites that
suggest or
recommend particular browsers. For example, if you do some
research on
SVG images, you'll find notes that you can't view them in
certain
websites unless you download a special SVG viewer. Granted,
these are
specialized websites, but aren't all websites unique?
The script Gary showed you will probably work, except that it
targets
ALL non-IE browsers (which may be what you want). You might
also want to
check out
http://explorerdestroyer.com/
> Michael's suggestion of directing them to a non-Flash
version of the site
> makes the best sense..
>
Yes, though it sounds like you have a special situation here.
P.S. Gary White is one of the more respected gurus here. He's
just too
lazy to show you a script that specifies Firefox and Opera
only. :)
www.geobop.org - Family Websites
www.invisible-republic.org - Adult political websites (Mature
adults only)
Similar Messages
-
Hi,
we need a script, or whatever you sugegst, to include into
index.htm page which contains main flash file to check user's
browser and provide a note to users of FireFox and Opera.
The problem: site built in FLash 8 with Action Script 2 and
exported for latest Flash player. FireFox and Opera displaying bad
results, IF THEY DON'T HAVE latest player installed. Even if there
is a latest player installed for Internet Explorer it does not
reflect on Opera or FireFox. So we need to tell users to go to a
specific page on Adobe site and download and install it using these
browsers.
Please help.
Thx.P@tty Ayers ~ACE wrote:
> Gary's post might have been a little sarcastic, but he's
entirely right that
> *nobody* is going to download and install software in
order to visit a
> certain web site.
It would be more accurate to say "very few" people will
download and
install the software you recommend. I promote Firefox very
heavily on my
websites, through a Google Firefox referral button. I get
very few sales
- but I do get some.
In the near future, I will likely scale back my campaign in
hopes of
increasing traffic, but I will likely ban visitors using IE
entirely
from adult political sites (once they're finished), partly as
an experiment.
Note, also, that there are actually quite a few sites that
suggest or
recommend particular browsers. For example, if you do some
research on
SVG images, you'll find notes that you can't view them in
certain
websites unless you download a special SVG viewer. Granted,
these are
specialized websites, but aren't all websites unique?
The script Gary showed you will probably work, except that it
targets
ALL non-IE browsers (which may be what you want). You might
also want to
check out
http://explorerdestroyer.com/
> Michael's suggestion of directing them to a non-Flash
version of the site
> makes the best sense..
>
Yes, though it sounds like you have a special situation here.
P.S. Gary White is one of the more respected gurus here. He's
just too
lazy to show you a script that specifies Firefox and Opera
only. :)
www.geobop.org - Family Websites
www.invisible-republic.org - Adult political websites (Mature
adults only) -
Re: DW8 and "browser-safe" scripts
> the <object> tag doesn't usually cause a problem,
I don't think, unless
> that's what's making IE produce a "click to run
> ActiveX" messagebox when a page with a Shockwave movie
is loaded.
It is.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Fred Riley" <[email protected]> wrote in
message
news:[email protected]...
>>>> Murray
*ACE*<[email protected]> 28/06/2006 12:07:27
>>>
> "Browser-safe", eh? ;-)
>
> Definitely. Are you talking shockwave or Flash? The
former is for
> Director
> files, the latter is for errr Flash files.
>
> F: Shockwave.
>
> Anyhow, your two errors are -
>
> Line 2, syntax error.
> Line 159, object expected.
>
> Fix the first by removing this line -
>
> <?xml version="1.0" encoding="iso-8859-1"?>
>
> F: Aaarrrgggh! Not that blasted line *again*. It's not
me that puts it in
> the page, honest, guv, it was blasted Dreamweaver MX
2004.
>
> It's not needed, and furthermore, it hurts you by
putting IE into quirks
> mode. I'm not quite sure why it's throwing this js error
though. <shrug>
>
> The second error is caused by your failure to upload the
Scripts folder,
> which contains the function called on line 159 -
>
> <script type="text/javascript">
> AC_SW_RunContent( '
>
> F: Hmmm. I'd not noticed that folder appearing in my
site. Ah well, it
> rules out me using the 'browser-safe' scripts then, as
I'd have to create
> and upload a /Scripts folder for every learning object
on my site, and
> that's lots of them. They can't all use the same
/Scripts as they're
> supposed to be standalone and survive if packaged and
moved outside the
> site. No matter, the <object> tag doesn't usually
cause a problem, I don't
> think, unless that's what's making IE produce a "click
to run ActiveX"
> messagebox when a page with a Shockwave movie is loaded.
>
> Do those things and you'll see a difference.
>
> F: No, you're not wrong there, Murray. Maybe the script
is "browser-safe"
> after all. I still think I'll use the <object>
tag, though, but look
> closely at the W3C spec to make sure that I stay within
standards. I'm
> always a bit nervous about doing in Javascript what
should be done in
> HTML.
>
> Thanks anyhoo for the reply, which wasn't expected.
>
> Cheers
>
> Fred> the <object> tag doesn't usually cause a problem,
I don't think, unless
> that's what's making IE produce a "click to run
> ActiveX" messagebox when a page with a Shockwave movie
is loaded.
It is.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Fred Riley" <[email protected]> wrote in
message
news:[email protected]...
>>>> Murray
*ACE*<[email protected]> 28/06/2006 12:07:27
>>>
> "Browser-safe", eh? ;-)
>
> Definitely. Are you talking shockwave or Flash? The
former is for
> Director
> files, the latter is for errr Flash files.
>
> F: Shockwave.
>
> Anyhow, your two errors are -
>
> Line 2, syntax error.
> Line 159, object expected.
>
> Fix the first by removing this line -
>
> <?xml version="1.0" encoding="iso-8859-1"?>
>
> F: Aaarrrgggh! Not that blasted line *again*. It's not
me that puts it in
> the page, honest, guv, it was blasted Dreamweaver MX
2004.
>
> It's not needed, and furthermore, it hurts you by
putting IE into quirks
> mode. I'm not quite sure why it's throwing this js error
though. <shrug>
>
> The second error is caused by your failure to upload the
Scripts folder,
> which contains the function called on line 159 -
>
> <script type="text/javascript">
> AC_SW_RunContent( '
>
> F: Hmmm. I'd not noticed that folder appearing in my
site. Ah well, it
> rules out me using the 'browser-safe' scripts then, as
I'd have to create
> and upload a /Scripts folder for every learning object
on my site, and
> that's lots of them. They can't all use the same
/Scripts as they're
> supposed to be standalone and survive if packaged and
moved outside the
> site. No matter, the <object> tag doesn't usually
cause a problem, I don't
> think, unless that's what's making IE produce a "click
to run ActiveX"
> messagebox when a page with a Shockwave movie is loaded.
>
> Do those things and you'll see a difference.
>
> F: No, you're not wrong there, Murray. Maybe the script
is "browser-safe"
> after all. I still think I'll use the <object>
tag, though, but look
> closely at the W3C spec to make sure that I stay within
standards. I'm
> always a bit nervous about doing in Javascript what
should be done in
> HTML.
>
> Thanks anyhoo for the reply, which wasn't expected.
>
> Cheers
>
> Fred -
My super simple ip checking script
i have a small home network with a PC running arch that acts as a NAT router; in the near future i am planning on setting up VPN access on this arch box. i would assume that it is imperative to know the external IP address of the router in order to connect. my ISP is comcast (cable) and they seem to be rather active in changing my DHCP'd address i get from them (in the past 6 months i have had 3 different ones). so i wrote this bash script that runs in the background and monitors the IP of the external interface. its pretty self explanatory; the mails to "vtext.com" are so i can have it texted to me. pointers would be welcome. i am not particularly a programmer, much more just an admin. the awk stuff seems messy, like there should be an easier way to isolate strings than that.... but idk. i run it
#!/bin/bash
# IP CHECK 2.0 (file name/path: /etc/scripts/ipcheck)
# runs in the background and
# requires sleep, mailx & ifconfig
# assumes external interface named "eth0"
# current ip output file path - single-line file containing current address (needs to be writable)
OPATH="/var/ipcheck/currentip"
# Amount of seconds to wait between checks
WAITSECS=300 # 5 mins
# Read previous IP from specified $OPATH file, if it's there
if [ -f "$OPATH" ]; then
OLDIP=`cat $OPATH`;
fi
# Begin main program loop
while :
do
# retrieve new ip using ifconfig
NEWIP=`/sbin/ifconfig eth0 | awk 'BEGIN{FS="inet ";RS=" netmask"}/</{print $2}' | tr -d '\\n' | tr -d ' '`
# print whatever was awk'd and the current date/time to tty11
echo "========= $NEWIP -- `date`" >> /dev/tty11
# if a different NEW IP is detected AND it isn't a null value, then do the following:
# * write the new address out to the OPATH file, replacing the previous value
# * e-mail the new address to my phone via vtext.com
# * e-mail both the old and new addresses to my main e-mail account
# * reset the $OLDIP value as the new one
if [[ "$OLDIP" != "$NEWIP" && "$NEWIP" != "" ]]; then
echo $NEWIP > $OPATH
echo "======= New Address - Old IP: $OLDIP ---- New IP: $NEWIP" >> /dev/tty12
echo "New IP: $NEWIP" | /usr/bin/mailx [email protected]
echo "Old IP: $OLDIP" | /usr/bin/mailx -s "New IP: $NEWIP" [email protected]
OLDIP=$NEWIP
fi
# pause in between checks, then start again
sleep $WAITSECS
donefalconindy wrote:
Isola wrote:
Here's my IP checking script, modified for mailx
#!/bin/bash
curl ifconfig.me | read IP
[ "x$IP" == "x`tail -n1 /tmp/wanip`" ] && exit 0
echo New IP: $IP
echo -n Old IP:
cat /tmp/wanip
echo -n Number of times you had this IP before:
grep $IP /tmp/wanip | wc -l
} | mailx -s "New IP: $IP" [email protected] [email protected]
echo $IP >> /tmp/wanip
This can't possibly work as is... The assignment in the first line happens in a subshell. It's going to be blank in the rest of the script.
Okay I admit, I just wrote that without testing it
edit:
The 2nd line can be changed for this:
read IP < <(curl ifconfig.me) || exit $?
Or
IP=$(curl ifconfig.me) || exit $?
Last edited by Isola (2012-07-01 00:59:39) -
DW8 and "browser-safe" scripts
I don't know if this is a bug in DW8 or a local problem, and
it's not really important either way, but I did want to get it off
my chest. When I open a HTML page containing a Shockwave movie
embedded with an <object> tag into DW8, I get the prompt that
the <object> tag may not work properly with recent versions
of IE, and do I want to use a browser-safe script instead? Out of
curiousity I've given this a go and uploaded a test page, and
amusingly the page now gives two runtime errors in IE6 which prompt
you to run the Microsoft Debugger - see
http://www.nottingham.ac.uk/nursing/sonet/test/dyslexia_test/2.html.
No such problem in Mozilla 1.7, of course. This is probably caused
by there being other Javascript scripts on the page, but it did
make me chortle anyway. "Browser-safe", eh? ;-)
I was hoping that the fix might kill the irritating but
non-fatal IE prompt you sometimes get on pages with Shockwave
movies, which prompts you to click Ok to run ActiveX content, but I
think I'll live with that rather than runtime errors...
Cheers
Fred"Browser-safe", eh? ;-)
Definitely. Are you talking shockwave or Flash? The former is
for Director
files, the latter is for errr Flash files.
Anyhow, your two errors are -
Line 2, syntax error.
Line 159, object expected.
Fix the first by removing this line -
<?xml version="1.0" encoding="iso-8859-1"?>
It's not needed, and furthermore, it hurts you by putting IE
into quirks
mode. I'm not quite sure why it's throwing this js error
though. <shrug>
The second error is caused by your failure to upload the
Scripts folder,
which contains the function called on line 159 -
<script type="text/javascript">
AC_SW_RunContent( '
Do those things and you'll see a difference.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Fred Riley" <[email protected]> wrote in
message
news:[email protected]...
>I don't know if this is a bug in DW8 or a local problem,
and it's not
>really important either way, but I did want to get it off
my chest. When I
>open a HTML page containing a Shockwave movie embedded
with an <object> tag
>into DW8, I get the prompt that the <object> tag
may not work properly with
>recent versions of IE, and do I want to use a
browser-safe script instead?
>Out of curiousity I've given this a go and uploaded a
test page, and
>amusingly the page now gives two runtime errors in IE6
which prompt you to
>run the Microsoft Debugger - see
>
http://www.nottingham.ac.uk/nursing/sonet/test/dyslexia_test/2.html.
No
>such problem in Mozilla 1.7, of course. This is probably
caused by there
>being other Javascript scripts on the page, but it did
make me chortle
>anyway. "Browser-safe", eh? ;-)
>
> I was hoping that the fix might kill the irritating but
non-fatal IE
> prompt you sometimes get on pages with Shockwave movies,
which prompts you
> to click Ok to run ActiveX content, but I think I'll
live with that rather
> than runtime errors...
>
> Cheers
>
> Fred -
How to use dreamweaver to check scripts.
I am both new to scripting and in using dreamweaver, I n
eed to be able to copy an asp code and paste in dreamweaver and c
ontinue with it, can anyone please help me on how to do this? , I a
m testing dream weaver cs4I don't understand your subject line, "How to use dreamweaver to check scripts". Can you explain what you mean by this?
>I need to be able to copy an asp code and paste in dreamweaver and
>continue with it, can anyone please help me on how to do this?
You just copy the code from one page and paste into another. If you are having problems, you need to be more specific about what is not working. -
I am looking for some Plumtree Classes or Interfaces that I can use to enable client browser checking - check to see if the client is using what version of IE or Netscape or Mozilla. We are trying to trap these process and make this a Plumtree UI solution-side instead of handling this through IIS. We are attempting to place these browser checking proccesses inside OnBeforeLogin PEI. Handling a browser check to detect the client browser to see if they are using an out-dated browser version, if client is using out-dated browser version, throw them a message box stating that client will lose some functionality if using dated browsers. Has someone here already done and went through this task?
I have seen the classes before but do not remember what Plumtree-centric object package they belong with and now I cannot find it. If anyone know what the classes or objects are could you guys point me to the right direction??
Thanks for the assist
Ray Salgado, State of Maryland, 410.260.6083Thanks Don!
Got that, that is great for the first step of the browser sniffing process. To get the browser type.
Second step is to get the browser version - We also need to detect the client browser version so as create a condition as something like "If IE version 4 below" or "Netscape 5 or below" then we can create a redirect to a community page that has some User Advisory messages warning them that if they continue with the request with the browser they are using then navigation and presentation performance and experience may vary. User can choose to continue or backup.
Thanks
Ray -
Indesign CS5.5 Relink Script needs help
Hi, I'm trying to relink images in an InDesign CS5.5 file to a different server using a script. This is what I have so far, but when I run the script I get errors and can't relink because "Either the file does not exist, you do not have permission, or the file may be in use by another application". Does anyone know how to make this script work? I'm fairly new to scripting.
Here is the script I have:
tell application "Adobe InDesign CS5.5"
tell document 1
set linkList to links
set errInfo to "" -- We'll display error if we can't relink an item
repeat with x in linkList
if (x's status) is not normal then -- I usually check for any link that has an error
-- This should only return an AppleScript path with ":" separators
set linkPath to (x's file path) as string
if "Volumes/Calendars_2013 FPO" is in linkPath then
set AppleScript's text item delimiters to "Volumes/Calendars_2013 FPO"
set linkPath to (linkPath's text items) -- Create a list of text items
set AppleScript's text item delimiters to "Volumes/Calendars_2013"
set linkPath to (linkPath as string) -- Concatenate with new path
set AppleScript's text item delimiters to "" -- Reset TIDs
try
-- Need to make our string (path) into an alias path
relink x to alias linkPath
try
update x -- This can be helpful
end try
on error err
-- We'll store link name if error occurs
set errInfo to (errInfo & return & x's name)
end try
end if
end if
end repeat
-- If an error occurs while trying to relink, we'll display it
if (count errInfo) > 0 then display dialog ("Can't relink:" & errInfo)
end tell
end tell
--HectorI just tried adding collens to the end of the folder path. For some reason the script skipped the relink line. Below is the code with your update. I'm thinking its not finding the images because the script needs to make a list of all the images and choose the one that matches the missing image.
tell application "Adobe InDesign CS5.5"
tell document 1
set linkList to links
set errInfo to "" -- We'll display error if we can't relink an item
repeat with x in linkList
if (x's status) is not normal then -- I usually check for any link that has an error
-- This should only return an AppleScript path with ":" separators
set linkPath to (x's file path) as string
if "Calendars_2013 FPO:" is in linkPath then
set AppleScript's text item delimiters to "Calendars_2013 FPO:"
set linkPath to (linkPath's text items) -- Create a list of text items
set AppleScript's text item delimiters to "Calendars_2013:"
set linkPath to (linkPath as string) -- Concatenate with new path
set AppleScript's text item delimiters to "" -- Reset TIDs
try
-- Need to make our string (path) into an alias path
relink x to alias linkPath
try
update x -- This can be helpful
end try
on error err
-- We'll store link name if error occurs
set errInfo to (errInfo & return & x's name)
end try
end if
end if
end repeat
-- If an error occurs while trying to relink, we'll display it
if (count errInfo) > 0 then display dialog ("Can't relink:" & errInfo)
end tell
end tell
--Thanks for you help -
Check(Script) - Pageformat
Hi friends,
I need the pageformat to assign as exactly as to my Check script.Here,Im using only the check window as needed to print the check details same to my client bank cheque.So, as u aware, the height of the check size will be upto approx 8cm and my client are using the dot matrix serial print cheques(continuous one as rolling format).
Just reply me the exact pageformat.
****I've tested with available std INCH4/4C/2 and scheck formats but got no results.
Pls advise.
thanks & regards
sankar.Hi,
Solution for this problem will solve by your client, ask cleary the what the pageformat they are using. and by trail and error basis set the window heights, and Format the line, Paragrah, characer format.
Bye -
Bash Server Ping Checking Script
Posted this on my blog yesterday, but thought i'd share it here too.
I had alot of fun writing this little ping testing utility. It works/looks best if you have a color enabled terminal.
Could be easily modified to email you if the server failed. Anyway, just thought I'd share
#!/bin/bash
# Bash Server Ping Checking Script
# 09-24-2009 Crouse
# Pretty simple, add servers/ip's/Ln (line numbers) in the format shown in the two column examples.
# Tested with over 50 servers, worked for what I needed, thought i'd share :) ~~Crouse.
# Ideas --- ad another array for Headers. so Hn could print headers with bold/etc. Might be neat.
declare -a Sn # Server Name
declare -a Ip # IP address of server.
declare -a Ln # Line number to display on in Row1.
declare -a Sn2 # Server Name
declare -a Ip2 # IP address of server.
declare -a Ln2 # Line number to display on in Row2.
############################################################################### Server List Row 1
Sn[1]="usalug.org"
Ip[1]="67.15.6.98"
Ln[1]="6"
Sn[2]="archlinux.me"
Ip[2]="208.92.232.122"
Ln[2]="7"
############################################################################### Server List Row 2
Sn2[1]="usalug.org"
Ip2[1]="67.15.6.98"
Ln2[1]="6"
Sn2[2]="archlinux.me"
Ip2[2]="208.92.232.122"
Ln2[2]="7"
tput civis # Hide the cursor
maxcount=${#Sn[*]} #should report number of Servers listed in Sn variable
maxcount2=${#Sn2[*]} #should report number of Servers listed in Sn2 varialbe
clear
#tput setf 2; #echo -e '\e[1;33m'
echo " "
tput setf 0;tput setb 2;
echo " Bash Server Ping Checking Utility version 2.0 Crouse. "; #tput rmso;
tput setf 7; tput setb 0; # List out servers now.
for (( loop=1; $loop < $maxcount+1; loop++ ))
do
( tput cup ${Ln[$loop]} 10; echo "${Sn[$loop]}"; tput rc)
done
for (( loop2=1; $loop2 < $maxcount2+1; loop2++ ))
do
( tput cup ${Ln2[$loop2]} 50; echo "${Sn[$loop2]}"; tput rc)
done
# Set traps so when we exit the big loop stuff is normal again.
gracefulexit () {
tput cnorm;
tput setb 0;
echo "Stopping Application"
tput setf 2;
exit
trap gracefulexit INT TERM EXIT
# Begin big loop
while true
do
#First Row
for (( loop=1; $loop < $maxcount+1; loop++ ))
do
(tput sc ;tput setb 0; tput setf 0; tput cup 4 10 ;
echo "........................................................................";tput rc)
(tput sc ;tput setb 0; tput setf 6; tput cup 4 10 ;
echo "Checking ${Sn[$loop]} at IP: ${Ip[$loop]}" ; tput rc)
(tput sc ;tput setb 0; tput setf 0; tput cup ${Ln[$loop]} 1 ; echo "........." ; tput rc)
(tput sc ;tput setb 0; tput setf 6; tput cup ${Ln[$loop]} 1 ; echo "TESTING" ; tput rc)
count=$(ping -c 5 ${Ip[$loop]} | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
(tput sc ;tput setb 0; tput setf 0; tput cup ${Ln[$loop]} 1 ; echo "........." ; tput rc)
if [[ "$count" == [45] ]]; then
(tput sc ;tput setf 0; tput setb 2;tput cup ${Ln[$loop]} 5 ; echo " OK " ; tput rc)
else
if [[ "$count" == [123] ]]; then
(tput sc ;tput setf 0; tput setb 6; tput cup ${Ln[$loop]} 4 ; echo "ALERT" ; tput rc)
else
(tput sc ;tput setf 7; tput setb 4; tput cup ${Ln[$loop]} 2 ; echo "WARNING" ; tput rc)
fi
fi
done
#Second Row
for (( loop2=1; $loop2 < $maxcount2+1; loop2++ ))
do
(tput sc ;tput setb 0; tput setf 0; tput cup 4 10 ;
echo "........................................................................";tput rc)
(tput sc ;tput setb 0; tput setf 6; tput cup 4 10 ;
echo "Checking ${Sn2[$loop2]} at IP: ${Ip2[$loop2]}" ; tput rc)
(tput sc ;tput setb 0; tput setf 0; tput cup ${Ln2[$loop2]} 41 ; echo "........." ; tput rc)
(tput sc ;tput setb 0; tput setf 6; tput cup ${Ln2[$loop2]} 41 ; echo "TESTING" ; tput rc)
count2=$(ping -c 5 ${Ip2[$loop2]} | grep 'received' | awk -F',' '{ print $2 }' | awk '{ print $1 }')
(tput sc ;tput setb 0; tput setf 0; tput cup ${Ln2[$loop2]} 41 ; echo "........." ; tput rc)
if [[ "$count2" == [45] ]]; then
(tput sc ;tput setf 0; tput setb 2;tput cup ${Ln2[$loop2]} 45 ; echo " OK " ; tput rc)
else
if [[ "$count2" == [123] ]]; then
(tput sc ;tput setf 0; tput setb 6; tput cup ${Ln2[$loop2]} 44 ; echo "ALERT" ; tput rc)
else
(tput sc ;tput setf 7; tput setb 4; tput cup ${Ln2[$loop2]} 42 ; echo "WARNING" ; tput rc)
fi
fi
done
done
Last edited by crouse (2009-09-25 14:40:42)http://social.technet.microsoft.com/Forums/exchange/en-US/6b8d299d-eed9-4493-bd49-42399f478f93/exchange-2010-server-up-time-script-help-needed?forum=exchange2010
-
Working with Firefox v3.511. This version is required by business requirements. I researched how to disable the default browser as part of the install on the web but I cannot disable the default browser check pop-up.
It is best not to modify files in the Firefox program folder.
You can lock the pref browser.shell.checkDefaultBrowser to false or create a file user.js in the default template folder (C:\Program Files\Mozilla Firefox\defaults\profile) to set the pref to false.
See http://kb.mozillazine.org/Locking_preferences<br />
pref("browser.shell.checkDefaultBrowser", false);
In user.js you need to use <br />
user_pref("browser.shell.checkDefaultBrowser", false); -
HD problem - disk utility says "1 HFS volume checked" "Vol needs repair"
This all started with very slow response when applications were opened on iMac purchased 10/07 - went to Disk Utilty and tried to Repair Disk - but not allowed to click on that option(still grey). So, went to Disc 1 of Installer set of disks , inserted in drive and attempted to reinstall Mac OS X that came with Oct '07 (Tiger-right before Leopard became standard) purchase. When I get to the Select A Destination part of the Install MacOS X directions, there are no choices(ie- HD not recognized). Went to disk utility option available with the Installer disk and did a Repair Disk option. Following messages in RED
Invalid Volume Header
Invalid Mode Sgtructure
The volume Mac HD needs to be repaired ( ie- Volume check failed)
then Disk Utility boxpops up andsays Error: The underlying task reported failure on exit
Finally
1 HFS volume checked VOLUME NEEDS REPAIR in red
Huuuum.
Next step? I am using my wife's PC to send this HELP message and it's painful. Rescue me as the song says! Is it time to box up for Apple store visit, or ......Houston, welcome to Apple Discussions.
It appears you have some directory damage on your hard drive. Disk Utility cannot fix some of these type problems. DiskWarrior can probably fix your problem. DiskWarrior by Alsoft
http://www.alsoft.com/DiskWarrior/index.html
Cheers, Tom -
I need a recommendation for a PHP calendar script. It should
have both a
large display for use on a single page as well as a small one
for use in
a sidebar, like on a home page. The script needs to be able
to handle
links from within an event and must be easy for a user to
update.
And finally, it must integrate easily into an existing
design.
Any ideas?
Thanks,
Harvey WassermanYou're welcome!
eclipsme wrote:
> Thanks, MD
>
> Harvey
>
> Mad Dog wrote:
>> If you want to be able to change the PHP files, then
this is a
>> problem. If you don't need to mess with them (and I
don't know why
>> you would when there are plenty of variables and CSS
you can mess
>> with the make the changes) then there's nothing to
worry about.
>> Installation is a breeze as long as you have Zend
Optimizer or
>> IonCube on the server. MD
>>
>>
>> "eclipsme" <[email protected]> wrote in message
>> news:ga8a3l$1o0$[email protected]..
>>> Thanks for the reference. Yes, this looks
interesting, but I don't
>>> like that that the script is encoded. For
instance, this line
>>> bothers me: "DON'T GIVE UP! Installation of
encoded files can be tough.
>>> If you
>>> haven't already, try the Auto-installer."
>>>
>>> Harvey
>>>
>>> Mad Dog wrote:
>>>> www.easyPHPCalendar.com
>>>>
>>>> I've used it on several sites including
integrating it into a
>>>> Wordpress-run site.
>>>>
>>>> Mad Dog
>>>>
>>>>
>>>> eclipsme wrote:
>>>>> I need a recommendation for a PHP
calendar script. It should have
>>>>> both a large display for use on a single
page as well as a small
>>>>> one for use in a sidebar, like on a home
page. The script needs
>>>>> to be able to handle links from within
an event and must be easy
>>>>> for a user to update.
>>>>> And finally, it must integrate easily
into an existing design.
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> Thanks,
>>>>> Harvey Wasserman -
Health check script suggestions...
I used the health check script from metalink and it gave me few suggestion regarding my replication environment. One of them is ...
+ SUGGESTION: One or more propagation processes contain rule sets.
+ If a Propagation process will unconditionally forward all incoming
+ messages to its destination queue, and no rule-based transformations are
+ performed by the Propagation process, you should consider removing
+ the rule set for the Propagation process via dbms_propagation_adm.alter_propagation.
+ This will improve Propagation performance.
What is get from this is since i have same rule defined in propagation also as the one in capture, So suggestion from orcale is remove the propagation rule and let everything propagted through...anyhow since i want everything a capture process captures to be replicated on destenation.. so i removed the propagation rule. ..
But now the replication has stoped performing after that.....
can any one suggest me if my undersanding for above healthcheck suggestion is wrong then wht does it mean?
KapilDid you remove both the rule AND the rule set, or did you remove only the rule?
If it was a positive rule set and you removed only the rule, you left an empty rule set as a positive rule set for the propagation. This will cause it to discard all messages.
An empty positive rule set is not the same as no (null) positive rule set. A null rule set means "forward all messages, since there is not filter rule", but an empty rule set means "there is a rule: that no message will be forwarded".
Ilidio. -
Hi all! I'm sure this one has been done to death, but with. It's a script to monitor a laptop battery and react accordingly. I wrote this for use with FVWM, to send out warning notices using libnotify when the battery gets too low. Since my laptop is quite old, the battery runs out quite quickly after getting to 25% capacity. The script backgrounds itself on being run. It starts when I begin an FVWM session, and I have FVWM kill the script when I logout.
Being a script it's easy to tweak to your particular requirements. The example below just warns, but it would be easy to have the script suspend or hibernate the system, or change the percentage charge at which the script performs different actions. I hope it's useful.
#!/bin/bash
# battery check script
# ====================
# Designed to be run continuously while WM is running
# Requires libnotify to be installed
ICONPATH=/home/rob/.fvwm/icons/24x18
BATDIR=/sys/class/power_supply/BAT0
NOTIFYSEND=/usr/bin/notify-send
if [ ! -x $NOTIFYSEND ]
then
exit 0
fi
# check every $CHECK seconds
CHECK=60
( while true
do
BATSTATE=`cat ${BATDIR}/status`
# Note valid BATSTATE values are: Charged, Charging, and Discharging
if [ "$BATSTATE" = "Discharging" ]
then
REM_CAP=`cat ${BATDIR}/charge_now`
FULL_CAP=`cat ${BATDIR}/charge_full`
CHARGE=`echo $(( $REM_CAP * 100 / $FULL_CAP ))`
if [ "$CHARGE" -lt "25" ]
then
$NOTIFYSEND -i $ICONPATH/battery_critical.png -u critical -t 30000 "battery critical" "Shutdown or connect power now"
sleep $CHECK
continue
fi
if [ "$CHARGE" -lt "30" ]
then
$NOTIFYSEND -i $ICONPATH/battery_low.png -u normal -t 20000 "battery low" "Connect power soon"
fi
sleep $CHECK
elif [ "$BATSTATE" = "Charged" ]
then
$NOTIFYSEND -i $ICONPATH/battery_full.png -u normal -t 20000 "battery fully charged" "Disconnect from power"
sleep $CHECK
else
sleep $CHECK
fi
done
# end of file
Edited 21/10/2011 to use /sys/class/power_supply/BAT0 instead of /proc/acpi/battery/BAT0
Last edited by Painless (2011-10-21 12:48:05)I'm not exactly sure what you're trying to accomplish; your script seems to me to be prone to high cpu-useage loops. If all you want is a warning message if your battery is low when your adaptor is not plugged in, then you could try the following script.
One caveat, I don't have a laptop and I don't know what the output of
acpi -b
looks like, so I don't know which field contains the battery charge info. In the script below, I'm guessing that it is field number 3, so if it is different than that, the script below is incorrect and will not work.
If you don't understand what I am talking about, run
acpi -b
on your laptop, and post the output for me.
#!/bin/bash
trap "exit" SIGINT SIGTERM
delay=60
warning=50
while :
do
adapter=$(acpi -a | grep on)
b=$(acpi -b | cut -d ' ' -f 3)
[[ -z "$adapter" && "$b" -lt "$warning" ]] &&
notify-send "WARNING - LOW BATTERY" "Battery has ${b}% left."
sleep $delay
done
Last edited by rockin turtle (2011-01-15 06:08:45)
Maybe you are looking for
-
Creating objects in BO universe designer
Hi All, I have designed a universe on the top of BEx Query. I want to create additional objects at Universe Level. I am able to create objects in the Universe and they gets parsed, but when I pulled the same objects in the report query it generates a
-
Transactional Iview passing parameters for search help window
Hi Experts, I have to create a transaction ivew through which i need to pass parameters to search help window (having two entries ). In has to select the particular entry and then go to next step. Can somebody give me guide me how to do it as i could
-
Having an issue with errors on a livecycle project, can anyone tell me what's wrong?
Hello! I've uploaded screenshots of the errors here : http://imgur.com/a/0mKtU When you click the add button to add another column, the column appears (exactly how it should) but then this error comes up. I don't know much about any of this, but I th
-
Impossible to use an import function
Hi everybody, When I launch the Import/html file function (for example) for the first time after restart, I can see the import box very quickly but it is immediatly hidden. RH is blocked until I tip the Escape touch. At the next tries, I cannot see a
-
Switch between sim cards from 2 different countries in an iphone 5
I live in switzerland but study in the UK and I was planning on buying the iphone 5. Is it possible to change between my swiss sim card and uk sim card in an unlocked iphone 5 without any trouble? thanks!