I am getting the following error from gsview: Unrecoverable error: dictstackunderflow in end
In respnce to the following programming statement:
/cirtextdict 16 dict def
cirtextdict begin
/findhalfangle
{stringwidth pop 2 div
2 radius mul pi mul div 360 mul
}def
This is straight out of the Bluebook. I am obviously new to ps programming, so what am I missing here?
Wiz,
I'd be happy to help you solve the problem you are experiencing as you learn the PostScript language.
The chance of a typo is too great for me to accurately and quickly determine what your next step should be in correcting the code.
Can't you attach the code as a text file to your next post so that I can debug exactly what you are working with?
Cut and paste also works for me... not sure why it doesn't work for you.
There are a couple of things I saw in your code that don't make sense to me, but again, it may be the result of typos on your post and not in your working code.
1.) In your outsideplacechar procedure the following code appears to be missing the rotate command after the "-90".
"-90 char stringwidth pop 2 div neg 0 moveto char show"
The rotate command will remove the -90 from the operand stack after rotating about the current position.
2.) It appears that the code is defining a dictionary, then placing it on top of the dict stack, then storing procedures in it, that in turn, place
the same dictionary on the dict stack again and then off again each time they are called. Unfortunately, unless the dictionary is on the dict stack the
procedures in it can't be called. If you remove the dictionary begin and end that surround your individual procedures, along with fixing item 1
above, then the code will distill/display.
3.) When the section of code begins that actually draws something, the default setgray value is 0 (black).
The code changes the origin (0, 0) to be in the middle of an 8-1/2 x 11 inch page.
Then the scaling is changed to 200% (proportionately), a circle is drawn and filled with black.
Next the setgray value is changed to 1 (white).
A smaller circle is drawn concentric to the first and filled with white.
4.) I expect that you are missing the code to change the setgray value to 1 (black) before attempting to set the two text strings.
5.) Lastly, based on the results after making corrections I have suggested, The insidecircletext procedure appears to need to rotate by 180 degrees and
possibly the radius needs to be increased, if both text strings are to appear as though they are set in the same "band" of a circle.
Not having seen what the end result is supposed to look like I can only guess and so the code I pasted below doesn't reflect a change in radius.
Altered PostScript code:
%%PS
/font {findfont exch scalefont setfont} bind def
/circtextdict 16 dict def
/findhalfangle {stringwidth pop 2 div 2 xradius mul pi mul div 360 mul}def
/outsidecircletext {
circtextdict begin
/radius exch def
/centerangle exch def
/ptsize exch def
/str exch def
/xradius radius ptsize 4 div add def
gsave
centerangle str findhalfangle add rotate
str {
/charcode exch def
( ) dup 0 charcode put outsideplacechar
}forall
grestore
end
}def
/outsideplacechar {
/char exch def
/halfangle char findhalfangle def
gsave
halfangle neg rotate
radius 0 translate
-90 rotate char stringwidth pop 2 div neg 0 moveto char show
grestore
halfangle 2 mul neg rotate
}def
/insidecircletext {
circtextdict begin
/radius exch def
/centerangle exch def
/ptsize exch def
/str exch def
/xradius radius ptsize 3 div sub def
gsave
180 rotate
centerangle str findhalfangle sub rotate
str {
/charcode exch def
( ) dup 0 charcode put insideplacechar
}forall
grestore
end
}def
/insideplacechar {
/char exch def
/halfangle char findhalfangle def
gsave
halfangle rotate
radius 0 translate
90 rotate char stringwidth pop 2 div neg 0 moveto char show
grestore
halfangle 2 mul rotate
}def
/pi 3.1415923 def
306 396 translate
2 2 scale
0 0 140 0 360 arc fill
1 setgray
0 0 119 0 360 arc fill
0 setgray
16
/Times-Bold font
(Cracked Recording Studios)
16 90 60 outsidecircletext
14
/Times-Bold font
(Professor's Picks - Vol I)
16 90 60 insidecircletext
showpage
Similar Messages
-
I am trying to update ITunes from 10.4 to 10.5 I have tried from both the program, and from a download on Apple's website. Regardless, I get the following error messages: (1) Installation package for iTunes cannot be found. Try installing to find the installation package 'iTunes.msi' in a folder from which you can install iTunes. I can't find this folder. I have tried to completely unistall iTunes through the Control Panel, but it wouldn't let me: I tried going directly to the files themselves, but cannot uninstall. Any help would be greatly appreciated. System OS: Win XP SP 3.
Set the permissions for Everyone in the folder in which CCPackager created, to "Read/Write" enabled. This is strange since there is only an administrator account on the Mac (and that account already has read/write), but it seems to resolve the issue.
-
I have three aperture libraries. But just recently two of them (old from 2011) will not open. I get the following error: There was an error opening the database for the library “~/Pictures/Family IIi.aplibrary”. Please help, thanks
Are all three libraries under your account or are they in different accounts? Any other errros on the system?
Start by doing the permission repair and library repair steps in Aperture 3: Troubleshooting Basics -
I am getting the following error message when I try to import photos into iPhoto from my camera: "/private/var/folders/GB/GBl4wh8-ELqUVMI5dO-ryU TI/-Tmp-/iPhoto/DSCF2033.JPG". Have already tried removing and reinstalling iPhoto to no avail.
Does this happen if you try to Import to Library within iPhoto, or is it when you connect your camera (and which is set to automatically use iPhoto) that this error message occurs?
If you open Image Capture > Preferences is iPhoto selected as the choice when a camera is connected? -
I am getting the following error during the play of a rented movie from my MacBook that i am trying to watch on AppleTV Could not play the rental “A Thousand Words” because it is authorized to play on another computer or device." any ideas?
Rentals can only play on one device/computer at a time. Have you tried to play on the computer and still have that window open?
Have you transferred the rental to iPod/iPhone or iPad to watch?
If it won't play anywhere contact iTunes support at:
expresslane.apple.com
AC -
Since updating OS to Mountain Lion from leopard, I get the following error message when trying to backup with time machine on external drive. "Could not complete backup to media share. The network backup disk does not support the required AFP features." What are AFP features and how do I get Time Machine to backup to my current external backup?
This means that your NAS does not support the required encryption. Update your NAS to the latest firmware or ditch it and buy a Time Capsule (they are the most reliable when using TM).
-
All of a sudden my iTunes stopped working, and I get the following error messages:
1. the program can't start because MSVCR80.dll is missing from your computer. Try reinstalling the program to fix this problem
and
2. iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows error 126).
Now I've checked the forums and followed the advice of uninstalling all Apple applications, rebooting, and reinstalling iTunes.
This is not working. I've tried installing as Administrator but doesn't make any difference at all.
There must be a way to fix this? I'm not a tech geek but I want to avoid having to take my laptop back to factory settings to sort this out.
ThanksClick here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
(99192) -
I am running Windows 7 home edition and trying to update to iTunes version 10.5 (from version 10.3.1.55) and I keep getting the following error message, ‘Error occurred while installing the updates. If the problem persists, choose Tools > Download Only and try installing manually’ which I do only to have the same error message pop up.
Try updating your iTunes using an iTunesSetup.exe (or iTunes64Setup.exe) installer file downloaded from the Apple website:
http://www.apple.com/itunes/download/ -
I HAVE COMPLETED SEVERAL IMOVIES AND FINALIZED JUST FINE. NOW I GET THE FOLLOWING MESSAGE FROM MY LATEST PROJECT. "The project could not be prepared for publishing because an error occurred. (File already open with write permission)"! What is going on?
Hi
Error -49 opWrErr File already open with write permission
Trash the preference files while application is NOT Running.
Easiest way to find out if this is the problem is by:
• Create a new User-Account
• Log out of Your old one and into this
• Re-try iMovie
If it now works OK - then 99.9% the problem is iMovie pref. file that needs to be trashed.
from Karsten Schlüter
Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
This issue occurs only on MacOs machines using 10.7x
try switching-off the Local Mobile Backup
in Terminal copy/paste
sudo tmutil disablelocal
Re-launch Mac
Yours Bengt W -
I get the following error everytime I download something from the internet:-"/Users/vinaypunjabi/Downloads/Ontario Colleges Chart(2)(1).pdf could not be opened, because an unknown error occurred. Try saving to disk first and then opening the file".
Then it shows as downloading failed.But if I click on it twice ,it opens up .
this has started happening since last week.Before this ,it never happened.
Please suggest what has gone wrong somewhere and how can I rectify it.Please install the following add-on to see if it helps.
https://addons.mozilla.org/en-US/firefox/addon/pdfjs/ -
After reformatting my 1 Tb WD ext drive and tinkering with the "exclude these items" list, I now get the following error message from Time Machine: "Are you sure you want to back up to the same device your original data is on?" I've reformatted in Disk Utilities...not sure what I did wrong. Any help would be appreciated.
Not sure what you mean by "booted" from it.
If the Mac OS is installed on the external drive, then it's possible to start up from it, just as you do from your internal drive. Please open the Startup Disk preference pane in System Preferences, and verify that your internal drive is selected as the startup disk.
Assuming that's the case, then it may be that your TM settings have been corrupted. Turn off TM, then move or delete the file /Library/Preferences/com.apple.TimeMachine.plist. Turn TM back on, recreate your settings, and try again. -
Leopard. Did a full restore from Time Machine. Now I can't access my other internal and external drives. I get the following error: The folder “Capture Video” can’t be opened because you don’t have permission to see its contents. I have repaired permissions pn the main harddrive. When I try too click on a disk I get the previously stated error. I can't even open up information to see what permission/access there is. It simply will not let me see the content. It shows the content of my main hard drive when I have clicked the other harddrive's name.
Solved:
sudo chflags 0 /Volumes/"FCP Time Machine BU"
sudo chown 0:80 /Volumes/"FCP Time Machine BU"
sudo chmod 775 /Volumes/"FCP Time Machine BU"
sudo chmod -N /Volumes/"FCP Time Machine BU" -
when ever i'm tring to install an app from the app store i'm getting the following error.
"We could not complete your purchase - The product distribution file could not be verified. It may be damaged or was not signed".
someone plz help me to overcome this.Installing the appropriate combo update may help...
If you are running v10..7 Lion, install the OS X Lion Update 10.7.4 (Client Combo)
For 10.6 Snow Leopard > Mac OS X 10.6.8 Update Combo
Then restart your Mac. Try the App Store.
If that doesn't help, try the following..
Quit the App Store if it's open.
Open the Finder. From the Finder menu bar top of your screen click Go > Go to Folder
Type this exactly as you see it here:
/Library/Preferences/SystemConfiguration
Click Go
Move the NetworkInterfaces.plist file from the SystemConfiguration folder to the Trash.
Relaunch the App Store and try downloading Mountain Lion.
You may also need to disable anti virus software and turn off the Firewall in System Preferences > Security (or Security & Privacy) > Firewall -
My computer recently froze whilst updating Itunes, and has subsequently removed Itunes from my computer. When i have tried to reinstall the programme, i get the following error message "Invalid Drive:G:\" any ideas?
Try the following user tip:
"Invalid drive X:\" install errors -
I loaded Digital Editions onto a second computer at home. When I try to download a book from the library I get the following error message: E_Act_Not_Ready, License Server Communication. Any suggestions?
Having exact same problem, only it's with a book I've paid for, so it hurts more . Any ideas?
-
When I attempt to purchase a song from itunes, I keep getting the following error message: Could not purchase "song name". An unknown error occurred (-42408). There was an error in the itunes store. Please try again later
Can anyone help solve this problem?I've done a search on here and haven't found any solutions posted for it for windows computers. You could try posting in the iTunes For Windows forum and see if you get any suggestions in there (are you able to download other items from the store e.g. a free app ?) - I use a Mac, the only things that I could think of to suggest trying is see if you get the same error on a different iTunes library :
creating and/or opening a different iTunes library : http://support.apple.com/kb/HT1589
or using a different user account on your computer in case it's a problem with that user account.
But you may want to try the iTunes For Windows forum first, apart from anything else you are likely to get better help for the above
Maybe you are looking for
-
Hi, My apps will not open on my iphone 4 after doing the io6 update today. Have tried getting new apps and rebooting, any ideas anyone.
-
Watchpoints: hardware or software
Hello, I have a question about the implementation of watchpoints in Solaris. This blog: http://blogs.sun.com/eschrock/date/20040713 suggests that watchpoints in Solaris 10 are implemented in software. This article http://developers.sun.com/solaris/ar
-
After the dreaded balck screen w/ pwr symbol my user accout is gone but...
Wow I finally got to a block to type in! I have no idea if I am in the right place but here goes: I got the dreaded black screen with the white power button symbol. Started up from original system disk only to find that I was no longer around. "User"
-
Is my iphone 5 unlocked? Pic inside
Is this iphone unlocked? I bought it in Mexico http://i43.tinypic.com/ao6mp4.jpg Thank you.
-
Open Directory Password Permissions
I was wondering if anyone can shed any light or recommend how I can do this, but basically I have an Xserve running in a mixed Mac/Windows environment (mainly XP but 1 or 2 Vista machines). The clients are not bound to the OD, though each user has a