A little help needed with AppleScript
Hi:
I need a little help with AppleScript.
I created an AppleScript application to copy some files to a LAN disk that I always have mounted. The application works fine, except that it creates some sort of a lock that prevents me from doing other work with the Finder until the copy process is completed.
If anyone has any ideas for how I can disable this lock, please let me know. I have included the source code of my script below.
Thanks,
-AstraPoint
===== source code =====
with timeout of 1500 seconds
tell application "Finder"
activate
set current_date to (do shell script "date '+%Y-%m-%d at %H-%M-%S'") as string
set name_p to "Personal Data " & current_date & ".dmg"
set name_d to "Documents " & current_date & ".dmg"
(* copy the target files to another local disk - to create an extra backup *)
duplicate file "Personal Data.dmg" of folder "File Backups" of disk "Macintosh HD" to folder "Ad Hoc Backups" of disk "Macintosh HDx" replacing yes
set the name of file "Personal Data.dmg" of folder "Ad Hoc Backups" of disk "Macintosh HDx" to name_p
duplicate file "Documents.dmg" of folder "File Backups" of disk "Macintosh HD" to folder "Ad Hoc Backups" of disk "Macintosh HDx" replacing yes
set the name of file "Documents.dmg" of folder "Ad Hoc Backups" of disk "Macintosh HDx" to name_d
(* mount remote disk/folder using the alias file on our desktop *)
open alias file "disk HD5"
(* copy the target files to a remote disk - to create an extra backup *)
duplicate file name_p of folder "Ad Hoc Backups" of disk "Macintosh HDx" to folder "Bkup" of disk "HD5" replacing yes
duplicate file name_d of folder "Ad Hoc Backups" of disk "Macintosh HDx" to folder "Bkup" of disk "HD5" replacing yes
end tell
end timeout
Try:
ignoring application responses
Documented [here|http://developer.apple.com/library/mac/#documentation/AppleScript/Concept ual/AppleScriptLangGuide/reference/ASLRcontrolstatements.html].
Message was edited by: xnav
Similar Messages
-
A little help needed with Dijkstra's algorithim
Hi I'm trying to implement Dijkstra's algorithm. I have a class GraphMaker
which creates the graph, and is the main console. And then a second class for Dijkstra's algorithm. Overall it works alright but, I can't to figure out how to get it to find the shortest path for all the cities.
Here's a sample output:
BOSTON To NEW YORK: Cost of: 22 MIAMI: Cost of: 122
NEW YORK To MIAMI: Cost of: 50 HONOLULU : Cost of: 422
DETROIT To CHICAGO: Cost of: 22 PHOENIX: Cost of: 62
MIAMI To HONOLULU : Cost of: 402
CHICAGO To
PHOENIX To
HONOLULU To DETROIT: Cost of: 302 PHOENIX: Cost of: 102
[BOSTON ----> ]
[BOSTON ----> , NEW YORK------>]
[BOSTON ----> , NEW YORK------>, HAWAII------>, DETROIT------>]
[BOSTON ----> , NEW YORK------>, MIAMI------>]
[BOSTON ----> , NEW YORK------>, HAWAII------>,CHICAGO------>]
[BOSTON ----> , NEW YORK------>, HAWAII------>, PHOENIX------>]
[BOSTON ----> , NEW YORK------>, HAWAII------>]
I know its not the most efficient looking output, I'm intermediate coder at best. But at the top you have 7 cities from BOSTON to HONOLULU, and the cities they connect to. Where I'm really having the problem is at the bottom part. It shows the shortest paths from Boston to other the cities. But I want it show not only the shortest paths from Boston but also the shortest paths from the other cities, to their destination.
Here's my code:
The GraphMaker Class:
public class GraphMaker {
private int [][] edges; // The adjacency matrix
private Object [] Cities; // Cities
public static int count;
public GraphMaker (int n) {
edges = new int [n][n];
Cities = new Object[n];
public int GetSize()
return Cities.length;
public void SetCities (int vertex, Object label)
Cities[vertex]=label;
public Object GetCities (int vertex)
return Cities[vertex];
public void AddEdge (int source, int target, int w)
edges[source][target] = w;
public boolean IsEdge (int source, int target)
return edges[source][target]>0;
public void RemoveEdge (int source, int target)
edges[source][target] = 0;
public int GetWeight (int source, int target)
return edges[source][target];
public int [] Neighbors (int vertex) {
count = 0;
for (int i=0; i<edges[vertex].length; i++) {
if (edges[vertex]>0) count++;
final int[]answer= new int[count];
count = 0;
for (int i=0; i<edges[vertex].length; i++) {
if (edges[vertex][i]>0) answer[count++]=i;
return answer;
public void print () {
for (int j=0; j<edges.length; j++) {
System.out.print (Cities[j]+" To ");
for (int i=0; i<edges[j].length; i++) {
if (edges[j][i]>0) System.out.print (Cities[i]+": Cost of: " +
" " + edges[j][i]+" ");
System.out.println (" ");
public static void main (String args[]) {
GraphMaker t = new GraphMaker (7);
t.SetCities (0, "BOSTON");
t.SetCities(1, "NEW YORK");
t.SetCities (2, "DETROIT");
t.SetCities (3, "MIAMI");
t.SetCities (4, "CHICAGO");
t.SetCities (5, "PHOENIX");
t.SetCities (6, "HAWAII");
t.AddEdge (0,1,22);
t.AddEdge (1,6,422);
t.AddEdge (0,3,122);
t.AddEdge (2,4,22);
t.AddEdge (2,5,62);
t.AddEdge (6,5,102);
t.AddEdge (3,6,402);
t.AddEdge (6,2,302);
t.AddEdge (1,3,50);
t.print();
final int [] pred = Dijkstra.dijkstra (t, 0);
for (int n=0; n<7; n++) {
Dijkstra.PrintPath (t, pred, 0, n);
And my Dijkstra class
import java.util.LinkedList;
public class Dijkstra {
public static int [] dijkstra (GraphMaker G, int s) {
final int [] dist = new int [G.GetSize()]; // shortest known distance from "s"
final int [] pred = new int [G.GetSize()]; // the node that preceeds it in the path
final boolean [] visited = new boolean [G.GetSize()]; // all false initially
for (int i=0; i<dist.length; i++) {
dist[i] = Integer.MAX_VALUE;
dist[s] = 0;
for (int i=0; i<dist.length; i++) {
final int next = SmallestVertex (dist, visited);
visited[next] = true;
final int [] n = G.Neighbors (next);
for (int j=0; j<n.length; j++) {
final int v = n[j];
final int d = dist[next] + G.GetWeight(next,v);
if (dist[v] > d) {
dist[v] = d;
pred[v] = next;
return pred;
private static int SmallestVertex (int [] dist, boolean [] v) {
int x = Integer.MAX_VALUE;
int y = -1;
for (int i=0; i<dist.length; i++) {
if (!v[i] && dist<x) {y=i; x=dist[i];}
return y;
public static void PrintPath (GraphMaker G, int [] pred, int s, int e) {
final LinkedList path = new LinkedList();
int x = e;
while (x!=s) {
path.add (0, G.GetCities(x) + "------>");
x = pred[x];
path.add (0, G.GetCities(s) + " ----> ");
System.out.println (path);These are the actual results I get.:
BOSTON To NEW YORK: Cost of: 22 MIAMI: Cost of: 122
NEW YORK To MIAMI: Cost of: 50 HONOLULU : Cost of: 422
DETROIT To CHICAGO: Cost of: 22 PHOENIX: Cost of: 62
MIAMI To HONOLULU : Cost of: 402
CHICAGO To
PHOENIX To
HONOLULU To DETROIT: Cost of: 302 PHOENIX: Cost of: 102
[BOSTON ----> ]
[BOSTON ----> , NEW YORK------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>, DETROIT------>]
[BOSTON ----> , NEW YORK------>, MIAMI------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>,CHICAGO------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>, PHOENIX------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>]
BOSTON To NEW YORK: Cost of: 22 MIAMI: Cost of: 122
NEW YORK To MIAMI: Cost of: 50 HONOLULU : Cost of: 422
DETROIT To CHICAGO: Cost of: 22 PHOENIX: Cost of: 62
MIAMI To HONOLULU : Cost of: 402
CHICAGO To
PHOENIX To
HONOLULU To DETROIT: Cost of: 302 PHOENIX: Cost of: 102
^
^
^
This part is what I expected I'm fine with that.
[BOSTON ----> ]
[BOSTON ----> , NEW YORK------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>, DETROIT------>]
[BOSTON ----> , NEW YORK------>, MIAMI------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>,CHICAGO------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>, PHOENIX------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>]
^
^
^
This is where I'm having the problem, it shows the shortest paths from Boston to other cities,which fine right there those are accurate, but I also need it to show the same for the other cities
for example something this:
[NEW YORK----> ]
[NEW YORK ----> , MIAMI------>]
[NEW YORK ----> , NEW YORK------>, HAWAII------>, DETROIT------>]
[NEW YORK ----> , NEW YORK------>, MIAMI------>]
[NEW YORK ----> , NEW YORK------>, HAWAII------>,CHICAGO------>]
[NEW YORK----> , HONOLULU------>]
This would be the results from New York to other cities, although the actual routes for NY would probably be a little different. It would also do the same all the other cites
like DETROIT
[DETROIT ----> ]
[DETROIT ----> , CHICAGO------>]
[DETROIT ----> , CHICAGO------>, HAWAII------>,]
[DETROIT ----> , NEW YORK------>]
[DETROIT ----> ,CHICAGO------>]
[DETROIT ----> , HONOLULU------>]
It should produce a overall chart similar to this:
BOSTON ----> ]
[BOSTON ----> , NEW YORK------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>, DETROIT------>]
[BOSTON ----> , NEW YORK------>, MIAMI------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>,CHICAGO------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>, PHOENIX------>]
[BOSTON ----> , NEW YORK------>, HONOLULU------>]
[NEW YORK----> ]
[NEW YORK ----> , MIAMI------>]
[NEW YORK ----> , NEW YORK------>, HAWAII------>, DETROIT------>]
[NEW YORK ----> , NEW YORK------>, MIAMI------>]
[NEW YORK ----> , NEW YORK------>, HAWAII------>,CHICAGO------>]
[NEW YORK----> , HONOLULU------>]
[DETROIT ----> ]
[DETROIT ----> , CHICAGO------>]
[DETROIT ----> , CHICAGO------>, HAWAII------>,]
[DETROIT ----> , NEW YORK------>]
[DETROIT ----> ,CHICAGO------>]
[DETROIT ----> , HONOLULU------>]
and so on for the other cities
Hopefully makes it a little clearer -
Little help needed with SNR reset
Hi, until june we had been getting 3/3.5meg line speed. After a line fault (noisey line out side) which we are told is fixed our speed droped to around 1.5megs.
We have been waiting and waiting for the speed to return to normal but no such luck. So here I am asking for some help with the SNR which I assume is the problem.
From reading other posts I understand you need the speed test and hub stats, so have included. Also using one of the old white hubs if thats anything u need to know.
1. Best Effort Test: -provides background information.
Download Speed
1.34 Mbps
0 Mbps
2 Mbps
Max Achievable Speed
Download speedachieved during the test was - 1.34 Mbps
For your connection, the acceptable range of speeds is 0.8 Mbps-2 Mbps.
IP Profile for your line is - 1.44 Mbps
2. Upstream Test: -provides background information.
Upload Speed
0.22 Mbps
0 Mbps
0.45 Mbps
Max Achievable Speed
Upload speed achieved during the test was - 0.22Mbps
Additional Information:
Upstream Rate IP profile on your line is - 0.45 Mbps
DSL Connection
Link Information
Uptime:
3 days, 21:38:21
Modulation:
G.992.1 annex A
Bandwidth (Up/Down) [kbps/kbps]:
448 / 1,632
Data Transferred (Sent/Received) [MB/GB]:
353.88 / 5.56
Output Power (Up/Down) [dBm]:
12.5 / 17.0
Line Attenuation (Up/Down) [dB]:
31.5 / 59.0
SN Margin (Up/Down) [dB]:
15.0 / 15.5
Vendor ID (Local/Remote):
TMMB / IFTN
Loss of Framing (Local/Remote):
0 / 0
Loss of Signal (Local/Remote):
4 / 0
Loss of Power (Local/Remote):
0 / 0
Loss of Link (Remote):
0
Error Seconds (Local/Remote):
6 / 0
FEC Errors (Up/Down):
0 / 27,260
CRC Errors (Up/Down):
0 / 117
HEC Errors (Up/Down):
0 / 96
Line Profile:
Interleaved
Solved!
Go to Solution.Just this minute got an email from forum mod to infor he requested my SNR be reset to 6db.
home hub rest itself a few seconds later.. new stats...
DSL Connection
Link Information
Uptime:
0 days, 0:00:27
Modulation:
G.992.1 annex A
Bandwidth (Up/Down) [kbps/kbps]:
448 / 2,976
Data Transferred (Sent/Received) [KB/KB]:
39.00 / 112.00
Output Power (Up/Down) [dBm]:
12.5 / 18.0
Line Attenuation (Up/Down) [dB]:
31.5 / 59.0
SN Margin (Up/Down) [dB]:
15.0 / 5.5
Vendor ID (Local/Remote):
TMMB / IFTN
Loss of Framing (Local/Remote):
0 / 0
Loss of Signal (Local/Remote):
7 / 0
Loss of Power (Local/Remote):
0 / 0
Loss of Link (Remote):
0
Error Seconds (Local/Remote):
12 / 0
FEC Errors (Up/Down):
0 / 0
CRC Errors (Up/Down):
0 / 151
HEC Errors (Up/Down):
0 / 45
Line Profile:
Fast -
Hi , i have box_mc and box2_mc and i have an animation_mc (i maked it at flash)
i would if i drop box_mc on box2_mc animation should play.
My codes: for box1_mc
onClipEvent (load) {
this.tabEnabled = false;
this._visible = false;
orig_x = this._x;
orig_y = this._y;
on (press) {
this.startDrag();
on (release) {
this.stopDrag();
this._x = orig_x;
this._y = orig_y;
if (eval(this._droptarget) == _level0.box2_mc) {
_level0.animation_mc.play() //it doesnt work
if you help me i will be glad (sorry for eng)There is nothing wrong with the code as you show it if all three objects are on the same main timeline.
Use the trace() function to make sure the conditional test is being satisfied and that the animation_mc object exists.
on (release) {
this.stopDrag();
this._x = orig_x;
this._y = orig_y;
trace(eval(this._droptarget));
if (eval(this._droptarget) == _level0.box2_mc) {
trace(eval(_level0.animation_mc));
_level0.animation_mc.play() //it doesnt work -
Hello .... How can i access an object (movieclip) at a specific frame which is located inside another movieclip. It's something like this : first movieclip - and inside it, on frame 10 i have the second movieclip. I want to access that second movieclip ont that 10th frame. Please help!
You can't access it unless your movieclip is currently at that 10th frame.
-
Little help needed with the installation of apps...
Before the I was told to update to 3.0 I purchased and downloaded a few apps, using my iphone.
Where can I download them without being charged again?
The 'Application' tab in iTunes isn't there :S"Where can I download them without being charged again?"
Itunes. -
A little help needed in message mapping
a little help needed in message mapping
I have to map one of the idoc header segments as many times as it occurs to each Idoc when using the split message funcionality
let us say we have the segment seg1 and there is a QUALF in it
<seg1>
<qualf>001</qualf>
</seg1>
<seg1>
<qualf>002</qualf>
</seg1>
then we use the vbeln to split the idoc into 2.
so if we have
<vbeln> 1 </vbeln>
and
<vbeln>2 </vbeln>
then 2 Idocs should be created like this
<Idoc>
<vbeln> 1 </vbeln>
<seg1>
<qualf>001</qualf>
</seg1>
<seg1>
<qualf>002</qualf>
</seg1>
</Idoc>
<Idoc>
<vbeln> 2 </vbeln>
<seg1>
<qualf>001</qualf>
</seg1>
<seg1>
<qualf>002</qualf>
</seg1>
</Idoc>
it is easy to create the segment by using createif with the QUALF field but my problem how to map the qualf twice for each idoc
Thanks.UseOneAsMany is the function you need to use.
It takes three parameters:
1 --- The node you want to duplicated
2 --- How many times you want to duplicated
3 --- The context you want to place for it.
Regards
Liang -
HELP NEEDED WITH ADDAPTER-DVI TO VGA.
PLEASE ...HELP NEEDED WITH WIRING CROSS OVER....CAN YOU HELP WITH BACK OF PLUG CONNECTIONS...I SORTA UNDERSTAND THE PINOUTS BUT CANT MAKE AN EXACT MACH...WOULD LIKE TO BE 100% SURE...
......THIS ENSURES NO SMOKE!!!
THE CARD IS AN ATI RADEON RX9250-DUAL HEAD-.........ADDAPTER IS DVI(ANALOG)MALE TO VGA(ANALOG)FEMALE.
ANY HELP VERY MUCH APPRECIATED........ SEEMS YOU NEED TO BE ROCKET SCI TO ATTACH A BLOODY PICTURE...SO THIS HAS BEEN BIG WASTE OF FING TIME!Quote from: BOBHIGH on 17-December-05, 09:21:31
Get over it mate !
I find it easy t read CAPS...and if you dont like it ...DONT READ IT!
And why bother to reply...some people have nothing better to do.
Yes there chep and easy to come by...Ive already got a new one.
All I wanted was to make a diagram of whats inside the bloody thing...it was a simple question and required a simple answer.
NO NEED TO A WANKA !!
I feel a bann comming up.
Have you tryed Google ? really.. your question is inrelevant. No need to reply indeed.
Why do you come here asking this question anyway ? is it becouse you have a MSI gfx card ? and the adapter has nothing to do with this ?
You think you can come in here yelling.. thinking we have to put up with it and accept your style of posting. This is not a MSI tech center.. it's a user to user center.. Your question has nothing to do with MSI relavant things anyway's.
Google = your friend.
Quote from: BOBHIGH on 17-December-05, 09:21:31
it was a simple question and required a simple answer
Simple for who ? you (buying a new one) ? me ? we ? .really...........
Quote from: Dynamike on 16-December-05, 04:11:48
1: There are allot of diffrent types of those adapters.
If any of the mods have a problem about my reply.. please pm me. -
Help needed with Vista 64 Ultimate
"Help needed with Vista 64 UltimateI I need some help in getting XFI Dolby digital to work
Okay so i went out and I bought a yamaha 630BL reciever, a digital coaxial s/pdif, and a 3.5mm phono plug to fit perfectly to my XFI Extreme Music
-The audio plays fine and reports as a PCM stream when I play it normally, but I can't get dolby digital or DTS to enable for some reason eventhough I bought the DDL & DTS Connect Pack for $4.72
When I click dolby digital li've in DDL it jumps back up to off and has this [The operation was unsuccessful. Please try again or reinstall the application].
Message Edited by Fuzion64 on 03-06-2009 05:33 AMS/PDIF I/O was enabled under speakers in control panel/sound, but S/PDIF Out function was totally disabled
once I set this to enabled Dolby and DTS went acti've.
I also have a question on 5. and Vista 64
-When I game I normally use headphones in game mode or 2. with my headphones, the reason for this is if I set it on 5. I get sounds coming out of all of the wrong channels.
Now when I watch movies or listen to music I switch to 5. sound in entertainment mode, but to make this work properly I have to open CMSS-3D. I then change it from xpand to stereo and put the slider at even center for 50%. If I use the default xpand mode the audio is way off coming out of all of the wrong channels.
How do I make 5. render properly on vistaWe ended up getting iTunes cleanly uninstalled and were able to re-install without issue. All is now mostly well.
Peace... -
help needed with itunes please tryed to move my itunes libary to my external hard drive itunes move ok and runs fin but i have none of my music or apps or anything all my stuff is in the itunes folder on my external hard drive but there is nothing on ituns how do i get it back help,please
(Make sure the Music (top left) library is selected before beginning this.)
If you have bad song links in your library, hilite them and hit the delete button. Then locate the folder(s) where your music is located and drag and drop into the large library window in iTunes ( where your tracks show up). This will force the tunes into iTunes. Before you start, check your preferences in iTunes specifically under the"Advanced" tab, general settings. I prefer that the 1st 2 boxes are unchecked. (Keep iTunes Music folder organized & Copy files to iTunes Music folder when adding to library). They are designed to let iTunes manage your library. I prefer to manage it myself. Suit yourself. If there is a way for iTunes to restore broken links other than locating one song at a time I haven't found it yet. (I wish Apple would fix this, as I have used that feature in other apps.) This is the way I do it and I have approx. 25,000 songs and podcasts and videos at present. Hope this helps. -
Urgent help needed with un-removable junk mail that froze Mail!!
Urgent help needed with un-removable junk mail that froze Mail?
I had 7 junk mails come in this morning, 5 went straight to junk and 2 more I junked.
When I clicked on the Junk folder to empty it, it froze Mail and I can't click on anything, I had to force quit Mail and re-open it. When it re-opens the Junk folder is selected and it is froze, I can't do anything.
I repaired permissions, it did nothing.
I re-booted my computer, on opening Mail the In folder was selected, when I selected Junk, again, it locks up Mail and I can't select them to delete them?
Anyone know how I can delete these Junk mails from my Junk folder without having to open Mail to do it as it would appear this will be the only solution to the problem.Hi Nigel
If you hold the Shift key when opening the mail app, it will start up without any folders selected & no emails showing. Hopefully this will enable you to start Mail ok.
Then from the Mail menus - choose Mailbox-Erase Junk Mail . The problem mail should now be in the trash. If there's nothing you want to retain from the Trash, you should now choose Mailbox- Erase Deleted Messages....
If you need to double-check the Trash for anything you might want to retain, then view the Trash folder first, before using Erase Junk Mail & move anything you wish to keep to another folder.
The shift key starts Mail in a sort of Safe mode. -
Help needed with this form in DW
Hi, i have created this form in dreamweaver but ive got this problem.
In the fields above the text field, the client needs to fill in some info such as name, email telephone number etc.
But the problem is when ill get the messages. Only the text from the large text field is there.
What did i do wrong??
http://www.hureninparamaribo.nl/contact.html
Thank you
Anybody??Thank you for your response. So what do i have to do to fix this?
Date: Sun, 20 Jan 2013 07:57:56 -0700
From: [email protected]
To: [email protected]
Subject: Help needed with this form in DW
Re: Help needed with this form in DW
created by Ken Binney in Dreamweaver General - View the full discussion
You have several duplicate "name" attributes in these rows which also appears in the first row
Telefoon:
Huurperiode:
Aantal personen:
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5008247#5008247
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5008247#5008247
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5008247#5008247. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Dreamweaver General by email or at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Little help please with forwarding traffic to proxy server!
hi all, little help please with this error message
i got this when i ran my code and requested only the home page of the google at my client side !!
GET / HTTP/1.1
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, application/x-shockwave-flash, */*
Accept-Language: en-us
UA-CPU: x86
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727)
Host: www.google.com
Connection: Keep-Alive
Cookie: PREF=ID=a21457942a93fc67:TB=2:TM=1212883502:LM=1213187620:GM=1:S=H1BYeDQt9622ONKF
HTTP/1.0 200 OK
Cache-Control: private, max-age=0
Date: Fri, 20 Jun 2008 22:43:15 GMT
Expires: -1
Content-Type: text/html; charset=UTF-8
Content-Encoding: gzip
Server: gws
Content-Length: 2649
X-Cache: MISS from linux-e6p8
X-Cache-Lookup: MISS from linux-e6p8:3128
Via: 1.0
Connection: keep-alive
GET /8SE/11?MI=32d919696b43409cb90ec369fe7aab75&LV=3.1.0.146&AG=T14050&IS=0000&TE=1&TV=tmen-us%7Cts20080620224324%7Crf0%7Csq38%7Cwi133526%7Ceuhttp%3A%2F%2Fwww.google.com%2F HTTP/1.1
User-Agent: MSN_SL/3.1 Microsoft-Windows/5.1
Host: g.ceipmsn.com
HTTP/1.0 403 Forbidden
Server: squid/2.6.STABLE5
Date: Sat, 21 Jun 2008 01:46:26 GMT
Content-Type: text/html
Content-Length: 1066
Expires: Sat, 21 Jun 2008 01:46:26 GMT
X-Squid-Error: ERR_ACCESS_DENIED 0
X-Cache: MISS from linux-e6p8
X-Cache-Lookup: NONE from linux-e6p8:3128
Via: 1.0
Connection: close
java.net.SocketException: Broken pipe // this is the error message
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
at java.net.SocketOutputStream.write(SocketOutputStream.java:115)
at java.io.DataOutputStream.writeBytes(DataOutputStream.java:259)
at SimpleHttpHandler.run(Test77.java:61)
at java.lang.Thread.run(Thread.java:595)
at Test77.main(Test77.java:13)please could just tell me what is wrong with my code ! this is the last idea in my G.p and am havin difficulties with that cuz this is the first time dealin with java :( the purpose of my code to forward the http traffic from client to Squid server ( proxy server ) then forward the response from squid server to the clients !
thanx a lot,
this is my code :
import java.io.*;
import java.net.*;
public class Test7 {
public static void main(String[] args) {
try {
ServerSocket serverSocket = new ServerSocket(1416);
while(true){
System.out.println("Waiting for request");
Socket socket = serverSocket.accept();
new Thread(new SimpleHttpHandler(socket)).run();
socket.close();
catch (Exception e) {
e.printStackTrace();
class SimpleHttpHandler implements Runnable{
private final static String CLRF = "\r\n";
private Socket client;
private DataOutputStream writer;
private DataOutputStream writer2;
private BufferedReader reader;
private BufferedReader reader2;
public SimpleHttpHandler(Socket client){
this.client = client;
public void run(){
try{
this.reader = new BufferedReader(
new InputStreamReader(
this.client.getInputStream()
InetAddress ipp=InetAddress.getByName("192.168.6.29"); \\ my squid server
System.out.println(ipp);
StringBuffer buffer = new StringBuffer();
Socket ss=new Socket(ipp,3128);
this.writer= new DataOutputStream(ss.getOutputStream());
writer.writeBytes(this.read());
this.reader2 = new BufferedReader(
new InputStreamReader(
ss.getInputStream()
this.writer2= new DataOutputStream(this.client.getOutputStream());
writer2.writeBytes(this.read2());
this.writer2.close();
this.writer.close();
this.reader.close();
this.reader2.close();
this.client.close();
catch(Exception e){
e.printStackTrace();
private String read() throws IOException{
String in = "";
StringBuffer buffer = new StringBuffer();
while(!(in = this.reader.readLine()).trim().equals("")){
buffer.append(in + "\n");
buffer.append(in + "\n");
System.out.println(buffer.toString());
return buffer.toString();
private String read2() throws IOException{
String in = "";
StringBuffer buffer = new StringBuffer();
while(!(in = this.reader2.readLine()).trim().equals("")){
buffer.append(in + "\n");
System.out.println(buffer.toString());
return buffer.toString();
Edited by: Tareq85 on Jun 20, 2008 5:22 PM -
Help needed with header and upload onto business catalyst
Can someone help with a problem over a header please?
I have inserted a rectangle with a jpeg image in background, in the 'header' section, underneath the menu. It comes up fine on most pages when previsualised, going right to the side of the screen, but stops just before the edge on certain pages. I have double checked that I have placed it in the right place in relation to the guides on the page.
That's one problem.
The second problem is that I tried to upload onto business catalyst, which got to 60% and refused to go any further, saying it couldn't find the header picture, giving the title and then u4833-3.fr.png. The picture is in the right folder I have double checked. And it isn't a png. Does it have to be ?
And the third problem is that I got an email following my upload from business catalyst in Swedish. I am living in France.
Can anyone help ? Thanks.Thanks for replying,
How can I check the preview in other browsers before I publish a provisional site with BC?
The rectangle width issue happens on certain pages but not others. The Welecom page is fine when the menu is active, also the contact page, but others are slightly too narrow. Changing the menu spacing doesn’t help - I was already on uniform but tried changing to regular and back.
In design mode the rectangle is set to the edge of the browser, that’s 100%browser width right?
Re BC I have about 200 images on 24 different pages and it seems to be having difficulty uploading some of them. But it has managed a couple I named with spaces but not others I named with just one name.
Is there an issue on size of pictures ? If I need to replace is there a quick way to rename and relink or do I have to insert the photos all over again?
I’m a novice with Muse with an ambitious site !
Thanks for your help.
Mary Featherstone
Envoyé depuis Courrier Windows
De : Sanjit_Das
Envoyé : vendredi 14 février 2014 22:15
À : MFeatherstone
Re: Help needed with header and upload onto business catalyst
created by Sanjit_Das in Help with using Adobe Muse CC - View the full discussion
Hi
Answering the questions :
- Have you checked the preview in Muse and also in other browsers ?
- Does the rectangle width issue happens when menu is active , or in any specific state , Try to change the menu with uniform spacing and then check.
- In design view the rectangle is set to 100% browser width ?
With publishing :
- Please try to rename the image file and then relink
- If it happens with other images as well , see if all the image names includes strange characters or spaces.
- Try again to publish
With e-mail from BC :
- Under preferences , please check the country selected.
- If you have previously created partner account in BC and selected country and language then it would follow that, please check that.
Thanks,
Sanjit
Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/6121942#6121942
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/6121942#6121942
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/6121942#6121942. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Help with using Adobe Muse CC at Adobe Community
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/thread/416458?tstart=0. -
Help needed with Elements 5.0
Trying to Edit photos. Click on Edit icon and I get the Message " Attempt to Access invalid address". Click OK get message "Unable to connect to editor application.
What is the problem? I have unenstalled to program and reinstalled, I have tried repairing from CD. Nothing works. Please help.I have the disc and re-installed a couple of time. No positive result. PSE 09 which I bought thereafter is giving a lot of problems also!!!
Date: Wed, 8 Jun 2011 10:31:24 -0600
From: [email protected]
To: [email protected]
Subject: Help needed with Elements 5.0
Doesn't really help either of us very much but I'm also having the same problem with Elements 5. I downloaded the program so I don't have disks to reinstall. And it seems from the other reply that Adobe has given up with the "old program," which incidentally was working fine until two days ago. Maybe I'll have to think about PSE9!
>
Maybe you are looking for
-
Select query performance improvement - Index on EDIDC table
Hi Experts, I have a scenario where in I have to select data from the table EDIDC. The select query being used is given below. SELECT docnum direct mestyp mescod rcvprn sndprn upddat
-
WLSE 1130 Release 2.13 - View configs for all in flat file
I am trying to get all of my device configs into a searchable format. For example cut and paste or search using windows for specific details in configs. In CiscoWorks I do this by looking for text containing and search the .cfg directory. How can i d
-
Script to export IDCS3 to PDF utilizing text from document as file name
I have written a few very very basic scripts so I really only know enough to be dangerous. I tried searching the forums first but couldn't find a situation quite like this one. I have an IDCS3 file that is using data merge to create multiple files. A
-
How to enable "Document assembly=Allowed" + SSRS
Hi Everyone, I have a requirement from my client, to set the "Document Assembly = Allowed" in pdf generated on exporting Reports in pdf format. Please follow the steps to reach to above mentioned... 1. Open a pdf file. 2. From 'Document' tab select S
-
Items and Purchase Orders...
Help...Please... We have a problem, we run stock close to minimum at all times, (we supply short dated food stuff), and often our customers ask when the next delivery is due in. Now, we can drag and relate etc but often our staff just don't have time