Is there a way 2 rite prog to continuously monitor the CD Drive?
Hello,
I want to write a program which will be monitoring the CD drive continuously from the time the computer has started till it is shutdown.(i.e whether a CD has been inserted or not)
I have tried to search the API's for a class that might help but can't find any.
I will be grateful if you can help me out
Thankyou
You could try something like this if you feel inclined:
import java.io.*;
class CheckEDrive extends Thread {
public static void main(String[] argv) {
new CheckEDrive().start();
public void run() {
try {
while (true) {
Process myProcess = Runtime.getRuntime().exec("cmd /c start e:");
Thread.sleep(10000);
myProcess.destroy();
Thread.sleep(50000);
catch(InterruptedException ie) {
System.out.println(ie);
catch(IOException ioe) {
System.out.println(ioe);
}
Similar Messages
-
Howdy folks!
I have an 20 year old Powerbook 180 with what I think is an unreliable floppy drive. Sometimes while accessing a diskette the screen flickers and usually power to the whole computer drops out.
I'm not familiar with Mac connectivity. Is there a way to access the hard drive--to get data off of, and install files, etc onto, the hard drive? 3.5 inch drives are 20th century.
But... I am happy because my old Powerbook still boots up just fine and I can look at my old files installed on the HD ok.
Thanks,
Hayward MattHi Hayward,
This may be a power supply issue, not necessarily a problem with the floppy drive itself. Any change if you try removing the battery?
Would it be correct to assume that it is a plain PowerBook 180 (not 180c)? Which power adapter are you using? It must have a 7.5 DC output, but is it capable of supplying at least 2.0 A?
Unfortunately it is difficult to remove and connect the (2.5" SCSI) hard drive to a modern computer. Had it been 2.5" IDE, things would have been much easier.
It is possible to set up a serial null-modem connection from a PowerBook 180 to another computer. See the following discussion for details:
https://discussions.apple.com/thread/4974860
If the PB 180 has an internal modem (or an external modem connected to the modem port), you could send files to another modem-equipped computer over the phone lines. With the proper software installed, the PB 180 can even use a dial-up Internet connection.
Alternatively, another semi-old (pre-1998) Macintosh computer with built-in Ethernet could be used as an intermediary, You could use LocalTalk (or a plain Mac printer cable) for file sharing between the PB 180 and the semi-old Mac (the latter could then forward files over a local network or via the Internet). It is also possible to connect the PB 180 to the semi-old Mac in SCSI disk mode (see the user guide below for additional information).
manuals.info.apple.com/en_US/0302674APB160180UG.pdf
Jan -
RE: Is there a way to have 2 network cards on the samemachine
Sean,
I mean I am always connecting to the nodemgr of the 2nd environment
successfully. Only when I run the client part of the application that I know
is up, I get a response from the Name Server that it is actually the first
IP address.
I checked again. I defenitely have FORTE_NS_ADDRESS set to IP:5004, in my
case, and not the hostname. I don't have FORTE_LOCATIONS set any where. the
NS_ADDRESS for env2 has only 1 IP address associated with it. My Forte
Control Panel on the client, and hence the NS address has only one entry.
I tried going into escript like you said, and the name service still thinks
it is IP1.
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: Sean Brown [SMTP:[email protected]]
Sent: Monday, June 22, 1998 1:31 PM
To: Venkat Kodumudi; 'Sean Brown'
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same
machine
Hmmmm? That is a little odd! Let me rehash what I think you are saying.
You now have two environments each with their own name service with
FORTE_NS_ADDRESS set to a different IP:Port combination. For example you
are doing the steps:
FORTE_NS_ADDRESS=255.255.255.1:5000
start the nodemgr for env 1
FORTE_NS_ADDRESS=255.255.255.2:5000
start the nodemgr for env 2
Now when you start a client you are always getting the address for env 1
back from the nodemgr. I assume you actually mean the name service? Or, do
you mean you are always connecting to the nodemgr & name service for env
1?
If the first scenario is the case and you are connecting to the nodemgr
for
env 2 but getting back IP's for services listening on the card for env 1 I
would ask you what you are setting the FORTE_LOCATIONS value to before you
start each service. If you are not setting it or are using the host name
it
will register using the IP for the primary network card associated with
the
machine name and I am again assuming that this is env 1. You need to set
the FORTE_LOCATIONS variable to 255.255.255.2:0 (based on the steps above)
before starting your services.
If the second scenario is the case I would have you check what the
FORTE_NS_ADDRESS is set to before you start up the client. Once again it
must be the IP:Port combination not host:port combination if you want to
get
anything other than the primary card.
I would also suggest that you do the following. After everything is up
and
running execute the following commands:
escript -fns "ip for env1":port
findsub nameservice
showpart
What you should see is everything currently registered under the name
service. It will have the name and any "locations" (IP and port) that it
is
registered as listening on. I would look for the nodemgr and see where it
has advertised itself. I would then look for any services you expect to
be
registered there and also verify where the have advertised themselves. If
there are multiple locations listed for any one service, the client will
use
the first one in the list.
Do the same for env 2.
Sean
-----Original Message-----
From: Venkat Kodumudi [mailto:[email protected]]
Sent: Monday, June 22, 1998 9:57 AM
To: 'Sean Brown'
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same machine
I am giving the actual IP address. and not the host name. That is why I
don't understand what is going on.
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: Sean Brown [SMTP:[email protected]]
Sent: Monday, June 22, 1998 10:53 AM
To: Venkat Kodumudi; 'Sean Brown'
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same
machine
Hello Venkat,
I probably should have mentioned this before. Your are correct. Forteis
doing a host lookup if you are providing a name for examplemachine1:5000.
You can bypass the host lookup by using the actual ip dot addressinstead
for example 255.255.255.255:5000. This way you are taking the name
service
out od the picture and Forte will use the address provided.
Sean
-----Original Message-----
From: Venkat Kodumudi [mailto:[email protected]]
Sent: Monday, June 22, 1998 9:27 AM
To: 'Sean Brown'
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same machine
My requirement is that my second card serves as best case performance
testing piece. This eliminates the network completely. We went one step
ahead and created a new enviromnent for the second card. Whatever I do,
the
nodemgr is returning back the IP address of the first card, even thoughmy
FORTE_NS_ADDRESS does not have the first card in the picture any where.
I think Forte is doing a host look up and returning the first IP address
it
finds, as opposed to returning the IP address specified in theenvironment
variable FORTE_NS_ADDRESS. Is there a way to trick it?
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: Sean Brown [SMTP:[email protected]]
Sent: Thursday, June 18, 1998 9:54 AM
To: Venkat Kodumudi
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same
machine
OK, you ran into one of the issues. That is, if both addresses areknown
to
the client that is trying to contact the partition it will always usethe
first address in FORTE_LOCATIONS. This is because FORTE_LOCATIONS was
designed more as a failover mechanism. So it will always try the
first
address in the list and if it succeeds, there is no reason to move onto
the
second.
Now, the second issue is that there is currently a problem with theclient
failover to the secondary address in FORTE_LOCATIONS. If the firstentry
fails it is supposed to retry on the second entry. Instead, it
retries
the
first entry again. I know that Forte knows about this but I do nothave
a
bug number on it.
With that said, lets look at a possible solution for you. If the real
objective here is to have a back up network card available for fail
over
on
the same machine, or use one card to advertise outside your firewalland
one
to use inside, then you will have to contact Forte to determine whenthe
failover problem will be fixed. But, if the objective is to loadbalance
across the network cards you could have the environment manager listenon
both ports and then alternate your server partitions across both
cards.
For
example:
set FORTE_NS_ADDRESS=card1:5000;card2:5000 and then start up the
environment
manager
set FORTE_LOCATIONS=card1:0 (the 0 in the port causes the OS to pick a
port)
and start partition one
set FORTE_LOCATIONS=card2:0 and start partition two
and so on....
In this scenario the environment manager will be listening on bothcards
but
each server will be listening on only one of the two cards. So if a
request
comes in for partition1 it will go through card one and if it is for
partition two it will go through card two. You could assign your
partitions
to cards based on expected load.
Well, I am done. I hope this helps!
Sean
-----Original Message-----
From: Venkat Kodumudi [mailto:[email protected]]
Sent: Thursday, June 18, 1998 8:06 AM
To: 'Sean Brown'; 'John Jamison'
Cc: [email protected]; Jose Suriol
Subject: RE: Is there a way to have 2 network cards on the samemachine
Sean,
Thanks for your reply. I tried the approach. I was not very specificin
my
question. I do need the ability for server applications to listen and
server
on both the network cards.
I was succesfully able to make the nodemgr listen on both the cardsand
actually serve requests coming in from both the cards. But, followingyour
advise, I took a cautious step with FORTE_LOCATIONS. Here is what I
noticed.
I have an application that has 6 partitions in total. I used
FORTE_LOCATION
to make it listen on 1. Both the cards. 2. Swapped the IP addresses
for
both
cards for this application. 3. One card that I want it to listen on. I
tried
all approaches by exporting the locations variable for just this
application. The nodemgr recieves a request from this pc connected onthe
second card to talk to one of the partitions. The node mgr responds
with
a
proxy - with the ip address and socket number of the first card. The
FORTE_NS_ADDRESS variable looks like this:
IP1:5002;IP2:5002.
Is it possible atall to resolve my problem, without having a seperate
environment?
Thanks
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: Sean Brown [SMTP:[email protected]]
Sent: Wednesday, June 17, 1998 10:42 AM
To: 'John Jamison'; Venkat Kodumudi
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the
same
machine
Venkat,
Actually, it is possible for Forte to listen on more than one IP andport
combination. The first reply to your message was correct. If you
set
the
FORTE_NS_ADDRESS to contain multiple entries before starting the
name
service, it will advertise on both. For Forte servers you use the
FORTE_LOCATIONS env variable to get it to advertise on multipleip:port
combinations.
We were doing something very similar with another customer I was at
to
get
around a firewall. I will warn you that there are some issues with
FORTE_LOCATIONS that may keep that portion from working. However,
from
reading your note, it appears that all you need is for the nameservice
to
advertise and listen on multiple ports and that works fine. I justtested
it again for sanity sake and it worked. I ran my test on NT using
Forte
3G2.
Sean
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of John Jamison
Sent: Tuesday, June 16, 1998 4:51 PM
To: Venkat Kodumudi
Cc: [email protected]
Subject: Re: Is there a way to have 2 network cards on the samemachine
Venkat,
Technically yes this is possible, though not in Forte. A nameserver
can
only listen on one port.
To implement this scheme you will have to write a proxy service (insome
language
including perhaps forte) which listens on the well-known port on the
second card, reads requests, then forwards them to the realnameservice
(wkp on the first card), and forwards replies back. This is not
trivial, but some firewall toolkit vendors supply stub code to write
application specific proxies.
-J
Venkat Kodumudi wrote:
Folks,
Here is what we would like to do:
We want to have 2 network cards on a unix box - which means I have
2
ip
addresses, and the connection between the two is the unix box and
only
the
unix box. I have a pc connected to the 2nd network card and I want
it
to
connect to the nameserver that is listening on a well known port
on
the
first network card. We don't want to turn IP forwarding between
the
two
cards. We want Forte to address both cards to talk to clients, in
one
environment.
Can this be done? If so how?
Thanks in advance.
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive<URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>>>>
John Jamison [email protected]
Vice President and Chief Technology Officer
Sage IT Partners, Inc.
Voice: 415 392-7243 x 306
Fax: 415 391-3899
Internet Enabled Business Change
<a href=
"http://www.sageit.com">http://www.sageit.com</a>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>Hello Venkat,
I probably should have mentioned this before. Your are correct. Forte is
doing a host lookup if you are providing a name for example machine1:5000.
You can bypass the host lookup by using the actual ip dot address instead
for example 255.255.255.255:5000. This way you are taking the name service
out od the picture and Forte will use the address provided.
Sean
-----Original Message-----
From: Venkat Kodumudi [mailto:[email protected]]
Sent: Monday, June 22, 1998 9:27 AM
To: 'Sean Brown'
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same machine
My requirement is that my second card serves as best case performance
testing piece. This eliminates the network completely. We went one step
ahead and created a new enviromnent for the second card. Whatever I do, the
nodemgr is returning back the IP address of the first card, even though my
FORTE_NS_ADDRESS does not have the first card in the picture any where.
I think Forte is doing a host look up and returning the first IP address it
finds, as opposed to returning the IP address specified in the environment
variable FORTE_NS_ADDRESS. Is there a way to trick it?
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: Sean Brown [SMTP:[email protected]]
Sent: Thursday, June 18, 1998 9:54 AM
To: Venkat Kodumudi
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same
machine
OK, you ran into one of the issues. That is, if both addresses are known
to
the client that is trying to contact the partition it will always use the
first address in FORTE_LOCATIONS. This is because FORTE_LOCATIONS was
designed more as a failover mechanism. So it will always try the first
address in the list and if it succeeds, there is no reason to move on to
the
second.
Now, the second issue is that there is currently a problem with the client
failover to the secondary address in FORTE_LOCATIONS. If the first entry
fails it is supposed to retry on the second entry. Instead, it retries
the
first entry again. I know that Forte knows about this but I do not have a
bug number on it.
With that said, lets look at a possible solution for you. If the real
objective here is to have a back up network card available for fail over
on
the same machine, or use one card to advertise outside your firewall and
one
to use inside, then you will have to contact Forte to determine when the
failover problem will be fixed. But, if the objective is to load balance
across the network cards you could have the environment manager listen on
both ports and then alternate your server partitions across both cards.
For
example:
set FORTE_NS_ADDRESS=card1:5000;card2:5000 and then start up the
environment
manager
set FORTE_LOCATIONS=card1:0 (the 0 in the port causes the OS to pick a
port)
and start partition one
set FORTE_LOCATIONS=card2:0 and start partition two
and so on....
In this scenario the environment manager will be listening on both cards
but
each server will be listening on only one of the two cards. So if a
request
comes in for partition1 it will go through card one and if it is for
partition two it will go through card two. You could assign your
partitions
to cards based on expected load.
Well, I am done. I hope this helps!
Sean
-----Original Message-----
From: Venkat Kodumudi [mailto:[email protected]]
Sent: Thursday, June 18, 1998 8:06 AM
To: 'Sean Brown'; 'John Jamison'
Cc: [email protected]; Jose Suriol
Subject: RE: Is there a way to have 2 network cards on the same machine
Sean,
Thanks for your reply. I tried the approach. I was not very specific in
my
question. I do need the ability for server applications to listen and
server
on both the network cards.
I was succesfully able to make the nodemgr listen on both the cards and
actually serve requests coming in from both the cards. But, following your
advise, I took a cautious step with FORTE_LOCATIONS. Here is what I
noticed.
I have an application that has 6 partitions in total. I used
FORTE_LOCATION
to make it listen on 1. Both the cards. 2. Swapped the IP addresses for
both
cards for this application. 3. One card that I want it to listen on. I
tried
all approaches by exporting the locations variable for just this
application. The nodemgr recieves a request from this pc connected on the
second card to talk to one of the partitions. The node mgr responds with a
proxy - with the ip address and socket number of the first card. The
FORTE_NS_ADDRESS variable looks like this:
IP1:5002;IP2:5002.
Is it possible atall to resolve my problem, without having a seperate
environment?
Thanks
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: Sean Brown [SMTP:[email protected]]
Sent: Wednesday, June 17, 1998 10:42 AM
To: 'John Jamison'; Venkat Kodumudi
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same
machine
Venkat,
Actually, it is possible for Forte to listen on more than one IP andport
combination. The first reply to your message was correct. If you setthe
FORTE_NS_ADDRESS to contain multiple entries before starting the name
service, it will advertise on both. For Forte servers you use the
FORTE_LOCATIONS env variable to get it to advertise on multiple ip:port
combinations.
We were doing something very similar with another customer I was at toget
around a firewall. I will warn you that there are some issues with
FORTE_LOCATIONS that may keep that portion from working. However, from
reading your note, it appears that all you need is for the name serviceto
advertise and listen on multiple ports and that works fine. I justtested
it again for sanity sake and it worked. I ran my test on NT using Forte
3G2.
Sean
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of John Jamison
Sent: Tuesday, June 16, 1998 4:51 PM
To: Venkat Kodumudi
Cc: [email protected]
Subject: Re: Is there a way to have 2 network cards on the same machine
Venkat,
Technically yes this is possible, though not in Forte. A name server
can
only listen on one port.
To implement this scheme you will have to write a proxy service (in some
language
including perhaps forte) which listens on the well-known port on the
second card, reads requests, then forwards them to the real nameservice
(wkp on the first card), and forwards replies back. This is not
trivial, but some firewall toolkit vendors supply stub code to write
application specific proxies.
-J
Venkat Kodumudi wrote:
Folks,
Here is what we would like to do:
We want to have 2 network cards on a unix box - which means I have 2ip
addresses, and the connection between the two is the unix box and onlythe
unix box. I have a pc connected to the 2nd network card and I want it
to
connect to the nameserver that is listening on a well known port onthe
first network card. We don't want to turn IP forwarding between thetwo
cards. We want Forte to address both cards to talk to clients, in one
environment.
Can this be done? If so how?
Thanks in advance.
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive<URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>>
John Jamison [email protected]
Vice President and Chief Technology Officer
Sage IT Partners, Inc.
Voice: 415 392-7243 x 306
Fax: 415 391-3899
Internet Enabled Business Change
<a href="http://www.sageit.com">http://www.sageit.com</a>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>> -
Is there a way of putting firefox bookmarks folder on the dock
Is there a way of putting firefox bookmarks folder on the dock. not just one bookmark. i have done that. but i want all of them in stack or something.. similar to how windows did it in the start menu. its annoying that you have to open firefox first to access your links.
i got my first imac yesterday and loving it!!! albeit the text is a bit small but i have found the zoom!
thanks in advancePerhaps you don't know how to bring icons into the Firefox Toolbar. You can put many things up there, including Bookmarks. You can also remove an icon or rearrange the order of icons.
From View>Toolbars>Customize
Here is the Bookmarks icon (next to the History icon) from which you can open all your bookmarks directly. And if you can remember a keyword, it will find that one, or any others that come up with that keyword. It's really quite convenient to use and will stay updated with any new bookmarks that are added.
This is showing the Bookmarks open, which can be closed by clickng on the small x. -
Is there a way to create a collection based on the "previous import"?
is there a way to create a collection based on the "previous import"? that would make it easy to mobile sync the last import to my ipad, and do further picking/rejecting while away from my laptop.
well, yes, of course i could do it that way. i guess i wasn't specific enough. is there a way to create a smart collection, with the photos in the "previous import" as members of the smart collection. earlier i mentioned about using this smart collection to mobile sync with my ipad, to do further flagging.
so my intention, use a smart collection to mobile sync with my ipad, and the smart collection to include the photos from my previous import.
i guess another way to ask the question, is there a way to create a smart collection, by using some rule or condition in the smart collection, to automatically include previous import photos.
the documentation says that "previous import" is a collection, even though it shows up in the catalogue side bar section. but i see no way to choose that collection when making a smart collection.
jd -
Is there a way to create a flipping book with the flipping 5k adobe software?
Am I the only one pissed with the f adobe products?
Is there a way to create a flipping book with the flipping 5k adobe software? Is it Flash, etc?
ThanksMaybe a forum search on "Windows registry" would turn up some useful things. You're not the first to ask this. You might save yourself and everyone else some time if you'd simply do that.
-
Is there a way to open a new window from the "Go" menu in Mavericks?
Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
Now I have to manually open a new window to avoid loosing my existing window.
Is there a way to open a new window from the "Go" menu?Before Mavericks, I was able to go from the Finder to the top menu "Go" -> "Utilities", or Applications or Home… and a new window would open.
Now I have to manually open a new window to avoid loosing my existing window.
Is there a way to open a new window from the "Go" menu?
First, as others have already stated.....make sure the checkbox is deselected for "open folders in tabs instead of windows" in Finder Preferences.
If you're like me and don't like tabs very much, there is a way to make folders always open in windows with a simple click (I'm using Mavericks 10.9.5). Go to a root folder (for example, the Documents Folder), open it, and select View > Hide Toolbar, then all folders within that root folder will open in a new window.
As an alternative method, any folder can be opened in a new window by holding down either Command Key while clicking the folder. But sooner or later you will forget to hold down that key, and then clicking on a folder will open in a tab (which will automatically resize the window and cause much aggravation).
The Hide Toolbar trick will also work with any folder present on the Desktop. It will make all folders inside that folder open in new windows.
To make the Applications Folder open in a new window when opening it from the menu bar at the top of the screen, you will have to open the main hard drive folder and use the Hide Toolbar trick. This will cause all folders inside it to open in new windows.
Hope this helps. -
I have created a PDF and password protected it for view. However, when reading the PDF in Adobe Reader app on the iPad the commenting and annotation options are not available. Is there a way to allow commenting and annotation in the app while password protecting the document?
Is there a setting that needs to be set to allow the annotation features? I set password protection to open and then password for editing and set it to Any except page extraction, but it still did not give the annotation option
-
Is there any way to reset my iphone i did the latest update and now i cant download any new apps? I tried to do the general reset but it keeps telling me that my passcode is not correct. This is the same passcode that I use to unlock my phine though to get in to it.
press and hold both the power and home buttons until the apple logo appears and then let them go. Wait till the phone restarts and then try
-
Is there a way to play an mp4 file at the beginning of a published project only when the project is accessed from a specific site?
A little background info. I use Captivate 7 and currently have over 100 projects that I maintain on a quarterly basis. I publish using the SWF format and upload the swf/htm files to a server where they are then accessed from a few locations (within our online documentation, in our software product, on two different websites). Many of the projects are linked so some will be viewed as a series and others viewed as a standalone video. Each video uses the same template and includes an intro and end slide. Now my organization wants to implement a new intro to all videos (those I publish and those from several groups across the organization). My current intros provide overview material for the specific video so the new intro, which is an animation with audio in mp4 format, would need to be placed at the start of each project. The issue is, the intro adds 9 seconds to every video and in many cases doesn’t add any value (say, if a user accesses the video from within our product or views the videos as a series). I’ve talked it over with my boss and we want to try to add the intro only to videos accessed from site X, not any other location. So now to my question. Is there a way to play an external mp4 file (intro) only when the published project is accessed from a specific site, therefore eliminating the need to update each project? Maybe there's a way to add a parameter or variable to the URL or the html code?
Thanks in advance for your suggestions. Please let me know if you need additional information.AimeeLove,
I have a solution for you. You may have to modify the code a little bit based on how long the timeline animation is for your clock. I based mine on 3 seconds to complete a minute hand sweep around the clock.
Milliseconds for each point on the clock:
12 = 0
1 = 250
2 = 500
3 = 750
4 = 1000
5 = 1250
6 = 1500
7 = 1750
8 = 2000
9 = 2250
10 = 2500
11 = 2750
In the mouseover section for 12 o' clock, put this code...
myVar = setInterval(function(){
var pos = sym.getPosition();
if (pos > 0 && pos < 50){
sym.stop(0);
clearInterval(myVar);
},10);
When you point to the time, the setInterval method loops every 100th of a second and checks the current position of the timeline. When the timeline reaches the range between 0 and 50 milliseconds (almost impossible to hit 1 specific point), the timeline will stop at 0. Also, the clearInterval will be fired to stop the loop.
In the mouseout section, put this...
sym.play();
clearInterval(myVar);
It start the clock again, and it also clears the loop in case you mouseout before you reach the range.
Make sure that myVar is a global variable so you can clear it from the mouseout section.
Repeat this for each point on the clock. To avoid potential conflicts, you may want to use my12, my1, my2, etc. instead of myVar. I put the milliseconds at the top that you would use as the beginning of the range. 50 milliseconds should be enough to catch it. So, for 5 o' clock, you would make your range between 1250 and 1300.
Let me know if you have any questions. Thanks!
Fred -
I moved all my music from c: drive(because it was full) to an external harddrive and now itunes can't find any of my music. Is there a way to get Itunes to find music on external drive without having to place all the music back onto the c: drive? Thanks
Hopefully you moved the entire iTunes Media (or iTunes Music) folder to a new path on your external drive. Copy your iTunes library folder out to the root of the external drive, e.g. X:\iTunes (where X: is your external drive), then move the media folder inside it. Hold down shift as you start iTUnes and keep holding untila asked to choose or create a library. Choose the library at X:\iTunes\iTunes Library.itl. Should all be good.
Failing that, download and run my FindTracks script and point it at the new location of your media folder.
tt2 -
Is there a way to get multiple email accounts on the front page of my iphone instead of just the generic mail icon? Also is there a way to get a different alert sound for each email?
No.
You need to review this (WYSISWG):
http://manuals.info.apple.com/en_US/iPhone_iOS4_User_Guide.pdf -
Is there a way to have 2 network cards on the samemachine
Folks,
Here is what we would like to do:
We want to have 2 network cards on a unix box - which means I have 2 ip
addresses, and the connection between the two is the unix box and only the
unix box. I have a pc connected to the 2nd network card and I want it to
connect to the nameserver that is listening on a well known port on the
first network card. We don't want to turn IP forwarding between the two
cards. We want Forte to address both cards to talk to clients, in one
environment.
Can this be done? If so how?
Thanks in advance.
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Hmmmm? That is a little odd! Let me rehash what I think you are saying.
You now have two environments each with their own name service with
FORTE_NS_ADDRESS set to a different IP:Port combination. For example you
are doing the steps:
FORTE_NS_ADDRESS=255.255.255.1:5000
start the nodemgr for env 1
FORTE_NS_ADDRESS=255.255.255.2:5000
start the nodemgr for env 2
Now when you start a client you are always getting the address for env 1
back from the nodemgr. I assume you actually mean the name service? Or, do
you mean you are always connecting to the nodemgr & name service for env 1?
If the first scenario is the case and you are connecting to the nodemgr for
env 2 but getting back IP's for services listening on the card for env 1 I
would ask you what you are setting the FORTE_LOCATIONS value to before you
start each service. If you are not setting it or are using the host name it
will register using the IP for the primary network card associated with the
machine name and I am again assuming that this is env 1. You need to set
the FORTE_LOCATIONS variable to 255.255.255.2:0 (based on the steps above)
before starting your services.
If the second scenario is the case I would have you check what the
FORTE_NS_ADDRESS is set to before you start up the client. Once again it
must be the IP:Port combination not host:port combination if you want to get
anything other than the primary card.
I would also suggest that you do the following. After everything is up and
running execute the following commands:
escript -fns "ip for env1":port
findsub nameservice
showpart
What you should see is everything currently registered under the name
service. It will have the name and any "locations" (IP and port) that it is
registered as listening on. I would look for the nodemgr and see where it
has advertised itself. I would then look for any services you expect to be
registered there and also verify where the have advertised themselves. If
there are multiple locations listed for any one service, the client will use
the first one in the list.
Do the same for env 2.
Sean
-----Original Message-----
From: Venkat Kodumudi [mailto:[email protected]]
Sent: Monday, June 22, 1998 9:57 AM
To: 'Sean Brown'
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same machine
I am giving the actual IP address. and not the host name. That is why I
don't understand what is going on.
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: Sean Brown [SMTP:[email protected]]
Sent: Monday, June 22, 1998 10:53 AM
To: Venkat Kodumudi; 'Sean Brown'
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same
machine
Hello Venkat,
I probably should have mentioned this before. Your are correct. Forte is
doing a host lookup if you are providing a name for example machine1:5000.
You can bypass the host lookup by using the actual ip dot address instead
for example 255.255.255.255:5000. This way you are taking the name
service
out od the picture and Forte will use the address provided.
Sean
-----Original Message-----
From: Venkat Kodumudi [mailto:[email protected]]
Sent: Monday, June 22, 1998 9:27 AM
To: 'Sean Brown'
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same machine
My requirement is that my second card serves as best case performance
testing piece. This eliminates the network completely. We went one step
ahead and created a new enviromnent for the second card. Whatever I do,
the
nodemgr is returning back the IP address of the first card, even though my
FORTE_NS_ADDRESS does not have the first card in the picture any where.
I think Forte is doing a host look up and returning the first IP address
it
finds, as opposed to returning the IP address specified in the environment
variable FORTE_NS_ADDRESS. Is there a way to trick it?
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: Sean Brown [SMTP:[email protected]]
Sent: Thursday, June 18, 1998 9:54 AM
To: Venkat Kodumudi
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same
machine
OK, you ran into one of the issues. That is, if both addresses areknown
to
the client that is trying to contact the partition it will always usethe
first address in FORTE_LOCATIONS. This is because FORTE_LOCATIONS was
designed more as a failover mechanism. So it will always try the first
address in the list and if it succeeds, there is no reason to move on to
the
second.
Now, the second issue is that there is currently a problem with theclient
failover to the secondary address in FORTE_LOCATIONS. If the firstentry
fails it is supposed to retry on the second entry. Instead, it retries
the
first entry again. I know that Forte knows about this but I do not havea
bug number on it.
With that said, lets look at a possible solution for you. If the real
objective here is to have a back up network card available for fail over
on
the same machine, or use one card to advertise outside your firewall and
one
to use inside, then you will have to contact Forte to determine when the
failover problem will be fixed. But, if the objective is to loadbalance
across the network cards you could have the environment manager listenon
both ports and then alternate your server partitions across both cards.
For
example:
set FORTE_NS_ADDRESS=card1:5000;card2:5000 and then start up the
environment
manager
set FORTE_LOCATIONS=card1:0 (the 0 in the port causes the OS to pick a
port)
and start partition one
set FORTE_LOCATIONS=card2:0 and start partition two
and so on....
In this scenario the environment manager will be listening on both cards
but
each server will be listening on only one of the two cards. So if a
request
comes in for partition1 it will go through card one and if it is for
partition two it will go through card two. You could assign your
partitions
to cards based on expected load.
Well, I am done. I hope this helps!
Sean
-----Original Message-----
From: Venkat Kodumudi [mailto:[email protected]]
Sent: Thursday, June 18, 1998 8:06 AM
To: 'Sean Brown'; 'John Jamison'
Cc: [email protected]; Jose Suriol
Subject: RE: Is there a way to have 2 network cards on the same machine
Sean,
Thanks for your reply. I tried the approach. I was not very specific in
my
question. I do need the ability for server applications to listen and
server
on both the network cards.
I was succesfully able to make the nodemgr listen on both the cards and
actually serve requests coming in from both the cards. But, followingyour
advise, I took a cautious step with FORTE_LOCATIONS. Here is what I
noticed.
I have an application that has 6 partitions in total. I used
FORTE_LOCATION
to make it listen on 1. Both the cards. 2. Swapped the IP addresses for
both
cards for this application. 3. One card that I want it to listen on. I
tried
all approaches by exporting the locations variable for just this
application. The nodemgr recieves a request from this pc connected onthe
second card to talk to one of the partitions. The node mgr responds witha
proxy - with the ip address and socket number of the first card. The
FORTE_NS_ADDRESS variable looks like this:
IP1:5002;IP2:5002.
Is it possible atall to resolve my problem, without having a seperate
environment?
Thanks
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
-----Original Message-----
From: Sean Brown [SMTP:[email protected]]
Sent: Wednesday, June 17, 1998 10:42 AM
To: 'John Jamison'; Venkat Kodumudi
Cc: [email protected]
Subject: RE: Is there a way to have 2 network cards on the same
machine
Venkat,
Actually, it is possible for Forte to listen on more than one IP andport
combination. The first reply to your message was correct. If you setthe
FORTE_NS_ADDRESS to contain multiple entries before starting the name
service, it will advertise on both. For Forte servers you use the
FORTE_LOCATIONS env variable to get it to advertise on multiple
ip:port
combinations.
We were doing something very similar with another customer I was at toget
around a firewall. I will warn you that there are some issues with
FORTE_LOCATIONS that may keep that portion from working. However,
from
reading your note, it appears that all you need is for the nameservice
to
advertise and listen on multiple ports and that works fine. I justtested
it again for sanity sake and it worked. I ran my test on NT using
Forte
3G2.
Sean
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of John Jamison
Sent: Tuesday, June 16, 1998 4:51 PM
To: Venkat Kodumudi
Cc: [email protected]
Subject: Re: Is there a way to have 2 network cards on the samemachine
Venkat,
Technically yes this is possible, though not in Forte. A nameserver
can
only listen on one port.
To implement this scheme you will have to write a proxy service (insome
language
including perhaps forte) which listens on the well-known port on the
second card, reads requests, then forwards them to the realnameservice
(wkp on the first card), and forwards replies back. This is not
trivial, but some firewall toolkit vendors supply stub code to write
application specific proxies.
-J
Venkat Kodumudi wrote:
Folks,
Here is what we would like to do:
We want to have 2 network cards on a unix box - which means I have 2
ip
addresses, and the connection between the two is the unix box and
only
the
unix box. I have a pc connected to the 2nd network card and I want
it
to
connect to the nameserver that is listening on a well known port onthe
first network card. We don't want to turn IP forwarding between thetwo
cards. We want Forte to address both cards to talk to clients, in
one
environment.
Can this be done? If so how?
Thanks in advance.
Venkat Kodumudi
Price Waterhouse LLP
Internet: [email protected]
Internet2: [email protected]
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive<URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>>>
John Jamison [email protected]
Vice President and Chief Technology Officer
Sage IT Partners, Inc.
Voice: 415 392-7243 x 306
Fax: 415 391-3899
Internet Enabled Business Change
<a href=
"http://www.sageit.com">http://www.sageit.com</a>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>> -
My family shared an Itunes account and now i'm moving out and have created a new account solely for myself. Is there a way to transfer my previous purchases on the family account to my new account?
In order to continue to play and sync the music you purchased with your old account, you'll need to authorize your new computer/iTunes library to do so. You can do this by choosing Store -> Authorize This Computer and then entering in your old account credentials.
That's all you should need to. Then just create your own account and start purchasing and using it the same you have with the old one.
B-rock -
Is there a way to hide some reports based on the selected values in prompt.
Hi Experts,
Is there a way to hide some reports based on the selected values in prompt.
For ex. if a year is selected in the prompt then the report should display year wise report.
If a year and half year both are selected in the drop down from prompt section then 2 reports should come.. One for year wise and another for half year wise.Kindly look into this.
Regards
AshishHi,
Use presentation values in prompts for year,half,qtr and month.Example- For year-y is presentation variable in the same way for halfyear-h,qtr-q and month-m.
create four intermediate reports.Example-Report r1 with only year column,r2 with only halfyear column,r3 with qtr column and r4 with month column.
Make column in each report(r1,r2,r3,r4) is equal to their presentation variables(y,h,q,m).
Use four sections.
Section1-Place report that should come when only year.
section2-Place report that should come for year and halfyear.
Section3-Place report that should come for year,halfyear and qtr.
Section4-Place report that should come for year,halfyear,qtr and month.
Apply guided navigation for each section selecting guided navigation-
For section1-
properties->Guided navigation->check this Reference Source Request(Yes)->select report r1(year)->check this Show Section(if request returns row)
In the same way do for remaining section2(select r2),section3(select r3) and section4(select r4)
Thanks,
Srikanth
http://bintelligencegroup.wordpress.com/
Maybe you are looking for
-
Installing PSE 9 on new iMac with no CD Drive.
I bought a new iMac and cannot figure out how to install a new copy of Elements 9. I have a disc that I previously used to install on my Macbook, but now I do not have a Cd drive on my new computer. Tried to transfer the software using an external ha
-
Send PDF form IPad document doesnt appear in email.
I use the Ipad for sending PDF's to clients and internal coworkers the emial looks like it makes it out looking at the sent mail from the ipad but the attachment is compromized - outlook user says "no attachment" If I save a draft of the email first
-
Post budget document from approved pre-posted budget document workflow
Hi, We are using budget version "0" for AVC Check and "1" for provision budget used for sending further approvals. I am uploading provisional budget i.e Pre-posted budget with version "1" and sending two levels for approvals by using SAP Standard w
-
Invoice quantity greater than PO quantity (item without GR)
Dear All, I want a restriction in Import PO where system should give error message when Invoice quantity is greater than PO quality ( and GR is not posted).Following setting has been done but still system is issuing any error or warning message. 1) S
-
Cannot enter text in Elements 11 after installing PS CC and LR 5
After downloading installing PhotoShop CC and LightRoom 5, I cannot enter text in PS Elements 11. I get the message that "something prevented the text engine from being initialized." How do I correct this?