How about a script to clean up /var/cache/pacman/pkg
/var/cache/pacman/pkg can get filled up with packages that you intalled once, just to try out, but then uninstalled and never plan to install again. I am thinking of a script that removes pkg.tar.gz's that are not installed, which will clear up some truly "dead" space on your hard drive. What do you think?
munkyeetr wrote:
oh okay, so they aren't necessary to keep, and they're never used unless you want to reinstall a program.
thank you.
Sometimes a package will cause trouble, which is easily escaped by downgrading. If you have trouble that brakes your internet connection it is so easy to fix by referring to your /var/log/pacman.log (if you have to) & downgrading, using the following method from the Arch Wiki:
You may be able to downgrade the package trivially by visiting /var/cache/pacman/pkg/ on your system and seeing if the older version of the package is stored there. (If you haven't run pacman -Scc recently, it should be there). If the package is there, you can install that version using pacman -U pkgname-olderpkgver.pkg.tar.gz. If pacman complains about file conflicts, you could force it to do the installation anyway with pacman -Uf pkgname-olderpkgver.pkg.tar.gz.
We had a kernel bug last October that caused many who did not have a copy of a previous kernel in their cache some extra trouble & education. ;-)
If you ever need a superseded kernel have a look here:
http://ubuntuforums.org/showthread.php?t=954481
Last edited by handy (2008-12-19 02:10:46)
Similar Messages
-
[SOLVED] error pacman: /var/cache/pacman/pkg exists in filesystem
Hi guys, yesterday night I tried to update my system and I got the following error which seems weird:
resolving dependencies...
looking for conflicting packages...
Package (1) Old Version New Version Net Change
core/pacman 4.2.0-5 4.2.0-6 0.00 MiB
Total Installed Size: 4.22 MiB
Net Upgrade Size: 0.00 MiB
:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [##########################################################] 100%
(1/1) checking package integrity [##########################################################] 100%
(1/1) loading package files [##########################################################] 100%
(1/1) checking for file conflicts [##########################################################] 100%
error: failed to commit transaction (conflicting files)
pacman: /var/cache/pacman/pkg exists in filesystem
Errors occurred, no packages were upgraded.
It seems weird to me because it conflicts to the whole folder and not to any specific package. Any clue, what is going on and how to solve it?
Last edited by theodore (2015-01-26 19:51:37)clfarron4 wrote:
theodore wrote:
Allan wrote:Is your /var/cache/pacman/pkg a directory or a symlink?
yes I have it in a different partition and then I have symilinked it
I'd have thought it would have been better to set a different directory for the pacman cache, mounting the partition to that through /etc/fstab and using the CacheDir variable in /etc/pacman.conf, but I'll leave that to your judgement.
If you don't want to do that, then I'll leave someone else to put up a solution (my brain's screaming bind mounts for some unknown reason).
So, you are saying that I should enable the CacheDir in /etc/pacman.conf and point it to the partition where I have now the pacman cache. -
Another simple bash script to clean pacman cache
here is a simple script that I have written which cleans pacman cache folder in a way that only the packages which are now "updated" in the repositories, will get removed. This is different from what "pacman -Sc" does. pacman -Sc also removes any package which is not installed, while this script keeps all the packages which are updated whether they are installed or not.
The functionality is some how like what "apt-get autoclean" does in debian.
to use this script you need to run it with "list" or "clean" arguments. you can also use the "help" argument for more help.
I hope it helps
#! /bin/bash
# clcache - This script cleans pacman cache folder in a way that only the packages
#+ which are now updated in the repositories, will get removed. This is
#+ different from what "pacman -Sc" does. pacman -Sc also removes any package
#+ which is not installed, while this script keeps all the packages which are
#+ updated whether they are installed or not.
# I have tweaked this script to be as fast as possible, it might still need a
#+ couple of minutes to compelete based on the size of your cache folder.
# to use this script you need to run it with "list" or "clean" arguments.
# you can also use the "help" argument for more help.
# This script is written by "Ali Mousavi". Please report bugs to [email protected]
DIR="/var/cache/pacman/pkg" #the default directory of pacman cache.
ROOT_UID=0 #Only users with $UID 0 have root privilages.
TMPFILE="/tmp/cache.tmp"
# Run as root
if [ "$UID" -ne "$ROOT_UID" ]
then
echo "Must be root to run this script"
exit 1
fi
# Check for the arguments
if [ -z "$1" ]
then
echo -e 'What should I do?\nValid Argument are "list", "clean" or "help"'
exit 1
elif [ "$1" = "list" ]
then
ACTION="ls"
MESSAGE="Are you sure you want to continue?"
elif [ "$1" = "clean" ]
then
ACTION="rm -vf"
MESSAGE="Are you sure you want to remove outdated packages? This process can not be undone!"
elif [ "$1" = "help" -o "$1" = "-h" -o "$1" = "--help" ]
then
echo -e "This script checks the packages in your pacman cache directory and removes the packages that are outdated. It doesn't matter if the package is installed or not.\n\n3 arguments can be passed to the script:\n\nlist:\n\tchecks for package that are outdated and prints the names.\n\nclean:\n\tremoves outdated packages.\n\nhelp,-h,--help:\n\tprints this help text.\n\nThis script is written by \"Ali Mousavi\". Please report bugs to [email protected]"
exit 0
else
echo 'Valid Argument are "list", "clean" or "help"'
exit 1
fi
# Check if the user is sure!
echo "This might take a while based on the amount of cached packages."
echo -n "$MESSAGE(y/n) "
read ANS
if [ $ANS = "y" -o $ANS = "Y" -o $ANS = "yes" ]
then
echo "Processing packages..."
elif [ $ANS = "n" -o $ANS = "N" -o $ANS = "No" ]
then
echo "Exiting on user request"
exit 0
else
echo "Invalid answer"
exit 1
fi
# Process the packages
cd $DIR #change to cache directory.
pacman -Sl | awk '{ print $2" "$3; }' > $TMPFILE
for f in $(ls $DIR)
do
pname=$(file $f | cut -d: -f1) #Produces filename, like: fetchmail-6.3.19-1-i686.pkg.tar.xz"
spname=$(echo $pname | sed 's/-[0-9][0-9]*.*//g') #removes package version: fetchmail
pver=$(echo $pname | sed 's/.*-\([0-9\-\.][0-9\-\.]*-[0-9\-\.][0-9\-\.]*\).*/\1/g') #using pacman -Qi for all files takes a lot of time.
if [ $(echo $pver | grep '[^0-9\-\.\-\-]' | wc -l) != 0 ] #checks if package version is alright
then
pver=$(pacman -Qpi $f | grep Version | awk '{print $3}')
fi
newpver=$(grep -e "^$spname " $TMPFILE | awk '{ print $2 }')
if [[ $newpver != $pver ]]
then
$ACTION $f
fi
done
rm -f $TMPFILE
echo "Outdated packages processed successfully!"
exit 0
Last edited by tuxitop (2011-09-13 09:24:26)tuxitop wrote:# Check for the arguments
if [ -z "$1" ]
then
echo -e 'What should I do?\nValid Argument are "list", "clean" or "help"'
exit 1
elif [ "$1" = "list" ]
then
ACTION="ls"
MESSAGE="Are you sure you want to continue?"
elif [ "$1" = "clean" ]
then
ACTION="rm -vf"
MESSAGE="Are you sure you want to remove outdated packages? This process can not be undone!"
elif [ "$1" = "help" -o "$1" = "-h" -o "$1" = "--help" ]
then
echo -e "This script checks the packages in your pacman cache directory and removes the packages that are outdated. It doesn't matter if the package is installed or not.\n\n3 arguments can be passed to the script:\n\nlist:\n\tchecks for package that are outdated and prints the names.\n\nclean:\n\tremoves outdated packages.\n\nhelp,-h,--help:\n\tprints this help text.\n\nThis script is written by \"Ali Mousavi\". Please report bugs to [email protected]"
exit 0
else
echo 'Valid Argument are "list", "clean" or "help"'
exit 1
fi
1. `echo -e 'foo\nbar\nbaz'` gets long and unreadable quickly. Instead, use here documents:
cat <<EOF
What should I do?
Valid Argument are "list", "clean" or "help"
EOF
2. Use a case command, looks cleaner:
case "$1" in
list) ... ;;
clean) ... ;;
help|-h|--hep) ... ;;
# Check if the user is sure!
echo "This might take a while based on the amount of cached packages."
echo -n "$MESSAGE(y/n) "
read ANS
if [ $ANS = "y" -o $ANS = "Y" -o $ANS = "yes" ]
then
echo "Processing packages..."
elif [ $ANS = "n" -o $ANS = "N" -o $ANS = "No" ]
then
echo "Exiting on user request"
exit 0
else
echo "Invalid answer"
exit 1
fi
Try:
read -p "hello: " -r
echo $REPLY
And again, `case` should be cleaner in this case.
# Process the packages
cd $DIR #change to cache directory.
pacman -Sl | awk '{ print $2" "$3; }' > $TMPFILE
While you quoted a lot, you left these two out. "$DIR" and "$TMPFILE" should be quoted, otherwise whitespaces will break the code.
for f in $(ls $DIR)
Apart from the same missing quotes, calling `ls` is a waste here. The following is sufficient and (maybe surprisingly) more accurate:
for f in *
How is it more accurate? Run this test script:
#!/bin/bash
DIR=/tmp/foo
mkdir -p "$DIR"
cd "$DIR"
touch a\ b c$'\n'd
for i in *; do
printf '+%s+\n' "$i"
done
printf '%s\n' ---
for i in $(ls $DIR); do
printf '+%s+\n' "$i"
done
Let's not go too far here. Just get the idea.
do
pname=$(file $f | cut -d: -f1) #Produces filename, like: fetchmail-6.3.19-1-i686.pkg.tar.xz"
Calling `file` here is, again, unnecessary. Also, filename of a package can contain ":", e.g., vi-1:050325-1-i686.pkg.tar.xz, which breaks your code.
Don't complicate things:
pname=$f
spname=$(echo $pname | sed 's/-[0-9][0-9]*.*//g') #removes package version: fetchmail
Broken for ntfs-3g-2011.4.12-1-i686.pkg.tar.xz, nvidia-173xx-utils-173.14.31-1-i686.pkg.tar.xz, etc... Something less lousy:
sed 's/\(-[^-]\+\)\{3\}$//' <<< "$pname"
pver=$(echo $pname | sed 's/.*-\([0-9\-\.][0-9\-\.]*-[0-9\-\.][0-9\-\.]*\).*/\1/g') #using pacman -Qi for all files takes a lot of time.
Although this might work for now, this would break if we had an architecture that starts with a digit, e.g. 686. Something less lousy:
sed 's/\(.*\)-\([^-]\+-[^-]\+\)-[^-]\+$/\2/' <<< "$pname"
if [ $(echo $pver | grep '[^0-9\-\.\-\-]' | wc -l) != 0 ] #checks if package version is alright
then
pver=$(pacman -Qpi $f | grep Version | awk '{print $3}')
fi
Again, calling `wc` here is a waste. Anyway, why is this check necessary at all?
newpver=$(grep -e "^$spname " $TMPFILE | awk '{ print $2 }')
if [[ $newpver != $pver ]]
then
$ACTION $f
fi
done
rm -f $TMPFILE
echo "Outdated packages processed successfully!"
exit 0
The post is getting too long, so so much from me. If there's anything you don't understand yet, read bash(1).
If I sound harsh or anything, don't be discouraged. Just keep reading, keep improving.
Last edited by lolilolicon (2011-09-13 12:53:04) -
Script to clean AL's old packages??
hello. I was wondering if anyone has a script that will clean packages from /var/cache/pacman/pkg that are either outdated [in the same DIR there is a newer version/revision] or no longer installed
thanksI think there are two or three make a search in the forum
-
Tar'ing up /var/lib/pacman...
I'm using a script somewhat modified I saw here on the forum to help clean up the system;
#!/bin/bash
# Run this daily after an update (pacman -Syyu),
#tar -cjf /store/bak/pacman-database.tar.bz2 /var/lib/pacman/local
#pacman -Rscn $(pacman -Qtdq)
pacman -Sc
pacman -Scc #(only run to clean out all of /var/cache/pacman/pkg)
pacman-optimize && sync
updatedb
exit 0
I commented out the first tar line since I don't have a database tared up and also the second line because it will show this message when run; error: no targets specified (use -h for help)
I really don't think I need these lines...
So for the rest when it's done running I get this messages in it; (The second line is what I'm wondering about, what is it taring up and where? I don't see anything that was tared..)
Database directory cleaned up
==> MD5sum'ing the old database...
==> Tar'ing up /var/lib/pacman...
==> Making and MD5sum'ing the new database...
==> Syncing database to disk...
==> Checking integrity...
==> Rotating database into place...
THANKSngoonee wrote:
You're not even trying to help yourself, karol has given you more than enough help. The lines come from pacman-optimize, so look at that.
Moving to Newbie Corner since it'd just clutter on Pacman & Package Upgrade Issues.
Well I'm sorry I am trying and I'm not getting it...
There is no pacman-optimize in man pacman and there is no man pacman-optimize and I don't see any info surfing Google...
Where can I read info on what pacman-optimize is doing as far as the Tarball is concerned?
1. How is this command suppose to work?
tar -cjf /store/bak/pacman-database.tar.bz2 /var/lib/pacman/local
2. Tar'ing up /var/lib/pacman... Where is this tar at?
3. What is this script is this something else I should be adding to the one I already have?
# remove the lock file and our working directory with sums and tarfile
rm -f "$lockfile"
rm -rf "$workdir"
So what really remains is that script above I'm using do I need to keep the first two lines are they important and if so, for the first one, was this something customized someone made specific to their needs and not just a general Arch command that should simply work on everyone's box?
THANKS
Last edited by DasFox (2011-11-21 23:49:23) -
/var/lib/pacman/local empty
Hello all,
I've been using Arch for a few years, but I obviously haven't learn't anything in the process as I've done a very silly thing.
I wanted to empty the pacman cache at /var/cache/pacman/pkg, but instead I did 'sudo rm -r /var/lib/pacman/local/*'
I've now lost network access and running sudo comes up with: 'unknown uid 1000: who are you?'
After reading about pacman, I now realise how important the file in that folder are
Is this now game over and I have to reinstall? or does anyone know how I can restore the files in /var/lib/pacman/local?
Thankyou for reading, RichardA wiki search would have returned this page to help you restore your missing db, but as you've just been told, you have other issues to address also.
-
Lost /var/lib/pacman
Hey guys!
I've lost my /var/lib/pacman directory. (No! I did not delete it!)
Is there any chance of getting it back? [..]/current and [..]/extra is not hard, but is there any chance to get [..]/local back?
Regards,
MoritzSome time ago it happened to me also, I do not know why.
Probably in /var/cache/pacman/pkg you should have the last pacman you installed, unless you cleaned the cache.
In reality pacman package are tar.gz of the installation tree
So copy the file in a directory and decompress it then copy the files in the relative directory.
If you feel enought confident you can uncompress it directly from root, but I DO NOT suggest it.
If you do not have the package in the cache you can download it from
http://darkstar.ist.utl.pt/archlinux/cu … pkg.tar.gz
Post again if you need more assistance -
Create Package from /var/lib/pacman/local[SOLVED]
I am trying to get an old version of google earth bcz the 5.2 in aur doesn't start for me. I have it installed on another system but there is not package in /var/cache/pacman/pkg. Is it possible for me to create a package based on the info written by pacman in /var/lib/pacman/loca/google-earth-x.xx.?
Last edited by empthollow (2010-07-19 04:02:19)You need a PKGBUILD.
Edit:
Who would have thought that AUR packages write to /var/lib/pacman/local ? ;P
I stand corrected: you don't necessarily need a PKGBUILD, you can use bacman.
you can download the previous Google Earth binary from this link
http://dl.google.com/earth/client/advan … hLinux.bin
Last edited by karol (2010-07-19 03:59:29) -
Pacleanup: A script to clean up package bloat
Hi all!
Here is my first real contribution to the Arch community! w00t!
Do you install packages just to try them out and never end up using them? Do you forget about them and do they just add to the bloat on your system? Do you want to review the packages installed on your system and remove the packages you don't need/want anymore? I do, so I wrote a small script to do just that.
There may already be a better way to do this that I don't know of. If there is, please do let me know.
Basically, the script goes through the packages marked as 'explicitly installed' and queries the user whether they want to keep or remove the packages. It does some basic dependency checking that will not remove a package if it is required by a package you want to keep. It stores a list of packages that you have previously selected to keep, so that you don't have to select them every time you run the script. An option to review the list of packages to remove is provided. It also, removes unused dependencies.
After the script has done its stuff, pacman will display packages to be removed and it will prompt you to accept the changes to be made. So it is pretty safe. You won't end up removing critical packages unless you explicitly allow pacman to do so.
Suggestions and corrections are most welcome!
Here it is!
#!/bin/bash
#--VARIABLES--
WDIR="$HOME/.pacleanup"
EXPLINST="$WDIR/explicitly-installed"
WRKLIST="$WDIR/working-list"
DEPLIST="$WDIR/dep-list"
KEEPS="$WDIR/keep-pkgs"
REMS="$WDIR/rm-pkgs"
SAFEREMS="$WDIR/rm-safe"
TMPREMS="$SAFEREMS.tmp"
TMPEXPL="$EXPLINST.tmp"
TMPDEPLIST="$DEPLIST.tmp"
#/VARIABLES
set -u
#--FUNCTIONS--
#SYSTEM CHECKS
checks () {
echo "==> Running checks..."
#Check user
guy=`whoami`
if [ "$guy" = "root" ]
then
echo
echo "==> Please run as normal user with sudo privileges"
exit 1
fi
#Check working directory
if [ -d $WDIR ]
then
echo
echo "==> $WDIR exists"
else
mkdir -p $WDIR
echo
echo "==> $WDIR created"
fi
#Check working files
fileCheck $EXPLINST
fileCheck $REMS
fileCheck $SAFEREMS
fileCheck $WRKLIST
fileCheck $DEPLIST
#Get list of explicitly installed packages
getExplInst
#Process existing list of packages to keep or ceate new file
if [ -f $KEEPS ]
then
keepCheck=`cat $KEEPS`
if [ -n "$keepCheck" ]
then
echo
echo "==> Old $KEEPS detected!"
echo "==> You can use this list to automatically keep these packages"
echo "==> Do you want to keep your old list? [y/n]"
read ans
case $ans in
y)
touch $KEEPS
cp $EXPLINST $TMPEXPL
for keeper in `cat $KEEPS`
do
cat $TMPEXPL | sed -e "/^$keeper$/d" > $WRKLIST
rm $TMPEXPL
cp $WRKLIST $TMPEXPL
done
rm $TMPEXPL
n)
rm $KEEPS
touch $KEEPS
cp $EXPLINST $WRKLIST
echo "==> You must choose y or n"
echo "==> Exiting."
exit 1
esac
else
fileCheck $KEEPS
cp $EXPLINST $WRKLIST
fi
else
fileCheck $KEEPS
cp $EXPLINST $WRKLIST
fi
echo
#WORKING FILE CREATOR
fileCheck () {
if [ -f $1 ]
then
rm $1
fi
touch $1
#EXPLICITY INSTALLED LIST GENERATOR
getExplInst () {
pacman -Qe | cut -d " " -f1 > $EXPLINST
#QUERY PACKAGE
queryKeep () {
for pkg in `cat $WRKLIST`
do
echo -e "==> Do you want to keep \033[1m$pkg\033[0m [y/n/i/q/d]"
read action
queryAction $action
echo
done
#PROCESS QUERY RESPONSE
queryAction () {
case $action in
y)
echo "==> Keeping $pkg"
echo $pkg >> $KEEPS
n)
echo "==> Removing $pkg"
echo $pkg >> $REMS
i)
echo "==> $1 Info"
pacman -Qi $pkg
echo -e "==> Do you want to keep \033[1m$pkg\033[0m [y/n/i/q/d]"
read action
queryAction $action
q)
echo "==> Exiting"
exit 0
d)
echo "==> Done with selection"
break
*|"")
echo "==> y=yes n=no i=info q=quit d=done with selection"
echo "==> Choose y/n/i/q/d"
read action
queryAction $action
esac
#CHECK FOR DEPENDENCIES
depCheck () {
echo
echo "==> Checking dependencies..."
cp $REMS $SAFEREMS
cp $EXPLINST $DEPLIST
for rmpkg in `cat $SAFEREMS`
do
cat $DEPLIST | sed -e "/^$rmpkg$/d" > $TMPDEPLIST
rm $DEPLIST
mv $TMPDEPLIST $DEPLIST
done
for pkg in `cat $DEPLIST`
do
deps=`cat /var/lib/pacman/local/$pkg-*/depends | sed '0,/%OPTDEPENDS%/!d' | grep -v "^%\|^$" | sed ':a;N;$!ba;s/\n/ /g'`
for dirtydep in $deps
do
cleandep=`echo $dirtydep | cut -d "<" -f1 | cut -d ">" -f1 | cut -d "=" -f1`
cat $SAFEREMS | sed -e "/^$cleandep$/d" > $TMPREMS
rm $SAFEREMS
mv $TMPREMS $SAFEREMS
done
done
echo "==> Dependency check completed."
#REVIEW PACKAGES TO REMOVE
review () {
queue=`cat $SAFEREMS`
if [ -z "$queue" ]
then
echo "==> No packages selected for removal"
echo "==> Exiting"
else
echo
echo "==> The following packages are selected for removal:"
echo "$queue"
echo "==> Do you wish to modify this selection? [y/n/q]"
read review
case $review in
y)
rm $WRKLIST
rm $REMS
mv $SAFEREMS $WRKLIST
queryKeep
depCheck
review
n)
echo "==> Proceeding to remove packages and orphans..."
sudo pacman -Rsn `cat $SAFEREMS`
q)
echo "==> Exiting."
echo "==> You must choose y/n/q"
review
esac
fi
#CLEAN UP WORKING FILES
cleanUp () {
rm $EXPLINST
rm $REMS
rm $SAFEREMS
rm $WRKLIST
rm $DEPLIST
#/FUNCTIONS
#--RUN--
set -e
checks
queryKeep
depCheck
review
cleanUp
#/RUN
Changelog:
25 March 2010
- Changed dependency checking to use /var/lib/pacman/local/*/depends instead of pacman
Last edited by drsjlazar (2010-03-25 20:43:03)itsbrad212 wrote:well done sir. You should add an option to skip to the end though
Thank you.
If you mean to skip going through the selection of whether to keep or remove packages, there is an option. Inputting 'd' (for 'Done' ) will skip the rest of the selection process and go right to dependency checking.
Did you mean something else? -
PowerShell Script to Clean User Profiles File Location
Hello,
I have been searching around to accomplish what I am trying to do. It is pretty basic so I am hoping someone can point me in the right direction. I want to write a powershell script to clean out two locations in all the user profiles on a Citrix server.
Here are the steps I'd like to accomplish.
1. Find all user profiles on the Citrix server
2. Delete all the files from these two locations; "\Local Settings\Application Data\Mozilla\*.*" and "\Local Settings\Application Data\Microsoft\OneNote\*.*"
This will run on a weekly basis via a scheduled task. A nice to have would be to add any profile over 60 days old.
I have a pretty good start, but I am still learning PowerShell, so any help would be appreciated.
Thanks in advance!
Thanks, JeremyHello mbwc,
how about showing us what you got so far and detail where you have trouble?
That way, we can help you understand your problems and find the solution yourself (= good for learning), instead of having one of us simply provide the solution (= bad for learning).
Cheers,
Fred
There's no place like 127.0.0.1 -
How many times can you clean install leopard on the same computer?
How many times can you clean install leopard on the same computer? Will the leopard dvd run out of installations and not let you install anymore?
Hi colman Prez;
Now that the funny comments have been made, I have a serious question and that why are you worry about reinstalling Leopard with an Erase & Install which is what I take that you mean when you say clean install. In actually fact there is no such thing in OS X as a clean install.
I am curious because in all the years I have used OS X, I have yet to do an Erase & Install yet.
I know with Windows that they suggest reformatting and reinstalling at the drop of a hat but that isn't true with OS X.
Allan -
How do I do a Clean install of Tiger and Classic?
My G4 came with Jaguar. OS 9 was part of the complete installation, that you could install or choose not to install. My computer has been having a lot of issues lately and I think that a clean install would be a good idea, especially, since I used an upgrade to install Panther and then installed Tiger on top of Panther. I want to install classic and Tiger. How do I do this properly? Thanks
I plan to back up my personal files and any
downloaded software I have.
Amazing that. You've told us that numerous times, but
you've failed to provide us with information on
HOW you're going to do this. That is, please
explain WHAT you're using for the backup and
WHERE you're planning on using to store the
backup.
All Power Macs come with the capability of burning CD's today. Mine can also burn DVD's, so backing up MY files is NOT a problem. I just can't clone my whole drive. Now, I'm not sure how this is pertinent in answering my question about how to properly do a clean install of Tiger and be able to install Classic. My son however, just told me he thinks that all I need to do is to clean-install Tiger. Then, insert the installation CD with classic on it that came with my computer. Find the invisible file, which is a disk image and drag the contents of the disk image to my computer. If anyone can tell me if this is correct, I would appreciate it. -
Why use KeyExtractor here? How about remove it?
Please see the following script:
setResults = cache.entrySet(new AndFilter(
new LikeFilter(new KeyExtractor("getLastName"), "S%",
(char) 0, false),
new EqualsFilter("getHomeAddress.getState", "MA")));Why use KeyExtractor here? How about remove it and make it like:
setResults = cache.entrySet(new AndFilter(
new LikeFilter("getLastName"), "S%"),
new EqualsFilter("getHomeAddress.getState", "MA")));Is this scrip right?
Edited by: jetq on Oct 23, 2009 2:08 PMI Googled for KeyExtractor and the likeliest-looking thing was javadocs for com.tangosol.util.extractor.KeyExtractor on an Oracle site.
Why don't you check around the Oracle developer site for a forum specifically about whatever product this is? -
How to call script in jsp
3A-_@. Feb 8, 2007 3:08 AM
Hi,
I have abc.jsp file where i want to call javascript on pressing submit button.
<input type="text" name="UserName" value="" width="30" />
<input type="submit" value="Submit" onclick=" <what should i write here??">
here how to call script?
and in the same abc.jsp file i have javascript ( i am not sure about the way i m accessing text value inside javascript is right or not)
<SCRIPT LANGUAGE="javascript" >
here how can i access UserName field value here??
if(isThisNotNull(UserName))
alert("UserName Is Mandatory");
</SCRIPT>If you do it like Greeks says then the javascript variable will be set when the page loads (userName probably blank). You will want the current value from the input field so use getElementById().
Edited by: gmachamer on Nov 21, 2007 7:23 AM
oops, just noticed Greeks posted both replies... so what I should have said is use his first suggestion as the second is not what you want. -
How can "Slow Script" be stopped?
Hi,
How can "Slow Script" be stopped? It happens all the time on Twitter. Someone recommended clearing out the Twitter cookies, then restart Safari, which only works until I go on Twitter again. Then the cookies return and it is repeat cycle! Please help. This is exasperating.
Thanks.This was answered when I asked the question again a little later. Here's what was said:
kcat
Posts: 232
Registered: Dec 26, 2004
Can Slow Script be stopped??? Please help!
Posted: Mar 30, 2010 3:41 PM
Reply Email
Hi,
Can "Slow Script" be stopped? If so, how? It happens all the time on Twitter. Someone recommended clearing out the Twitter cookies, then restart Safari, which only works until I go on Twitter again. Then the cookies return and it is repeat cycle! There's no way to contact Twitter about this. Please help. This is exasperating.
Thanks.
Message was edited by: kcat
iMac2009 Intel Mac OS X (10.6.3) Snow Leopard, iPod nano
~Bee
Posts: 10,953
From: Delaware USA
Registered: Jan 15, 2004
Re: Can Slow Script be stopped??? Please help!
Posted: Mar 30, 2010 4:29 PM in response to: kcat
Solved
Reply Email
I hope this will help:
http://erich13.blogspot.com/2009/05/slow-script-safari-version-4-public.html
15" MBP; 20"iMac Duo; 12 PB G4; mini; and a few more. Mac OS X (10.6.3) LaCie Ext. HD
kcat
Posts: 232
Registered: Dec 26, 2004
Re: Can Slow Script be stopped??? Please help!
Posted: Mar 30, 2010 10:13 PM in response to: ~Bee
Reply Email
Thank you for coming through for me again, Bee! I really appreciate it. Yes, your suggestion worked.
I think Twitter itself has a slowness problem, though, because even with the "Slow Script" message issue removed, Twitter still takes forever to search. I finally found a way to contact Twitter about this. They said it might be my system or speed, but I reassured them it was not, and they said they'd look into it on their end. Cross your fingers for me that Twitter fixes this glitch, won't you?
Thank you again,
Kcat
Maybe you are looking for
-
II can't burn any CD or DVD in my Mac Mini
Hello, I've had my mac mini (super drive) for a week when I tried to burn a data cd I got the error message "Sense Key=Medium error Sense code=0x0C Write Error". After that:"The Drive Reported an Error Sense Key=illegal Request Sense Code =0X30,0X05
-
Hi, We are doing EDI Inbound for PO. For this I need to define the port(Sender Port) as in the control record(i.e as they r sending) .If they change their port it is not working what shold I do for this. regds, Vinsa.R
-
Downloading doc document after it is converted from pdf
I used the converter for the first time and the message said the pdf file had been successfully converted to doc; and to download converted file. This instruction is not clear to me. What will be the file name, and from where do find the doc file?
-
JDev 10.1.2 webapp deployment failed. Expected name instead of ''.
I am deploying a webapp that compiles and runs fine from within JDeveloper 10.1.2. When I attempt to deploy to an independent OAS instance, it fails: ---- Deployment started. ---- Mar 9, 2009 9:27:13 AM Target platform is Oracle Application Server 10
-
Anand SELECT current_scn, SYSTIMESTAMP FROM v$database;
How to rectify this error in 10g SELECT current_scn, SYSTIMESTAMP FROM v$database; ora 0942: table or view does not exist given grant create table,session grant resource connect given