IBook G4 slowdown with find and sort
My wife's iBook frequently decides to slow down to a mere crawl, and it sounds like the hard drive (I think) is working steadily during these spells. Looking at the processes w/ top, find seems to be sucking up heaps of CPU time. I tried killing the find process, at which point sort and then makewhatis took over and continued beating on the machine. Any idea where these commands are issuing from and how to avoid them or at least reschedule them? (This often happens in the middle of the work day.) Perhaps this is a spotlight issue, since it started around the time we updated to 10.4. But I've noticed no such issues with my powerbook since updating to 10.4.
Thanks for any suggestions.
iBook G4 Mac OS X (10.4.4)
Errr... A quick reality check is called for. If you make files visible to the finder then they are no longer invisible files, so ignoring invisible files won't help you one bit. your best bet is to do a manual check for a file that starts with a "." (which would normally be invisible):
tell application "Finder"
set thisFolder to folder "Pictures" of home
set sortedFiles to (sort (files of thisFolder) by modification date) as alias list
set newestFile to last item of sortedFiles
if name of newestFile starts with "." then
set newestFile to item -2 of sortedFiles
end if
end tell
Similar Messages
-
My iPhoto often have difficulty in opening without the "repair". Maybe it's because I have almost 2000 pictures! When I initiate repair using Mac for a long time to find and sort faces .... Is it possible to turn off or avoid this feature?
This user has found a "hack" to turn off faces. Several users have reported success with the method. I can't comfirm the method as I've not used it. Use at your own risk.
lopezio
Re: Iphoto 11 -How to turn off faces?
Dec 30, 2013 9:06 AM (in response to mkmichaelmk)
Start of solution:
I did some digging in the prefs of iPhoto and found out the following. This is how you can disable (turn off) Face detection, without deleting faces found so far (just in case you want to restart processing at another time):
1. Quit iPhoto
2. Open Terminal Application (Applications/Utilities/Terminal.app)
3. Type the following (exactly as is):
defaults write com.apple.iPhoto PKFaceDetectionEnabled 0
(then return)
4. - Start iPhoto - Faces stops getting on your nerves...
If you ever need to re-enable faces, just do the same again and replace the 0 with 1.
OT -
Aborting index build. Too many errors with finding and copying files ...
Hi dears,
I'm using UCM 11g.
I'm trying to start the automatic update cycle. When i start it, it gives me an error message just like :
Indexing aborted at :<time>. Aborting index build. Too many errors with finding and copying files to the appropriate place.+
Can anybody help me about this problem?
Helps will be appreciated.
Erdo
Edited by: erdo on 28.Mar.2013 11:11Read this: error in Collection Rebuild Cycle
and maybe also UCM Indexer - Collection Rebuild Cycle errorring out -
Dumb Q: problem with Find And Replace window in Flash 8
Dear Flash Group,
apologies if this is trivial, it's my first day using Flash.
I downloaded a Flash project from
http://www.flashorb.com/articles/benchmark_files/flash-benchmark.zip.
This
flash calls into a web service at localhost:8080. I used the
'Find and
Replace' window within Flash Professional 8 to locate the
string
'localhost:8080' and replaced it with plain 'localhost'.
However, when I 'Debug the Movie' (Ctrl-Shift-Enter), it
still tries to
access port 8080! Obsiously, my replace command did not do
what I thought it
would do. I opened the FLA file in a binary editor, and saw 4
more
references to 8080, One if them in 'Properties' of a
WebServicesConnector,
but I cannot figure out how to find the other occurences.
Checking on google, I see lots of people having similar
problems, but no
solutions
Any ideas?
Regards, /george
PS. What do you guys do for code completion - is there a tool
that would
bring Flash on par with an professional IDE?george,
> when I 'Debug the Movie' (Ctrl-Shift-Enter), it still
> tries to access port 8080! Obsiously, my replace
> command did not do what I thought it would do.
Agreed.
> I opened the FLA file in a binary editor, and saw 4
> more references to 8080, One if them in 'Properties'
> of a WebServicesConnector, but I cannot figure out
> how to find the other occurences.
Might they be the result of that WebServicesConnector
reference?
> Checking on google, I see lots of people having
> similar problems, but no solutions
That's really odd, actually. I'm on these boards every day,
and I've
never heard of this issue. I don't *think* the Find/Replace
dialog visits
panel contents, such as the Component Inspector panel, but I
wouldn't swear
to that.
> What do you guys do for code completion - is there
> a tool that would bring Flash on par with an
professional IDE?
Well, Flash is a professional IDE, of course. By definition,
if you pay
for something, you have acquired a professional product or
service. I know
what you mean, though. Flash itself rocks, but the Actions
panel can be
glaringly weak. Personally, I use SE|PY to edit ActionScript.
http://www.sephiroth.it/python/sepy.php
Sorry I can't speak to your other issue. :-/
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design." -
How do I fix my problem with Artist and Sort Artist?
I have all my songs sorted by Artist and because I have songs that feature other artists I use the sort artist field.
In itunes it all looks fine but when I sync it with my iPod Nano 5th Gen one of the artists names comes up as the artist for all songs.
Eg. I have 5 B.o.B songs.The Artist field has B.o.B and the featured artist so it looks like -B.o.B feat. Hayley Williams-. The sort artist field along with album artist and sort album artist field are all only B.o.B.
My problem is that when I sync them onto my iPod all the songs by B.o.B appear under B.o.B feat. Rivers Cumo when I sort by Artist despite this only being the artist for one and all listed with the same format as above. They all also come up with the Artist as B.o.B feat. River Cumo when I play one of the songs.
Is there anyway to fix this so on my iPod they all appear under B.o.B when sorting by Artist but when I play the song it gives me the artist name? I'd prefer not to have to put the featured artist in the song title.This sometimes happens if your MacBook battery is swollen, and pushes on the underside of the trackpad.
Some users forgot that an alternate input device, like a tablet, does not shut off when set aside -- it continues to provide input at the same time as the mouse you put your hand on. -
Possible bug in inDesign CS5 with find and change
This could be a problem with my script or it may be a bug, not sure.
The script is used for finding a double space in a fragment of text and changing it to single space.
It works only once when it is executed.
To make it work again you have to close and reopen inDesign.
Here's the code:
app.findTextPreferences.findWhat = " ";
app.changeTextPreferences.changeTo = " ";
app.documents[0].changeText();This one worked, Harbs also works but I think I'll go the unicode grep route for find and change on this one.
I like the use of the positive lookbehind GREP character. (?<=)
thank you -
WebPart: Display the search result in an spgridview with filter and sort
hi,
For explain more in details.
I need the search result in a table displaying some meta common in the different library.
I've to have the possibility to filter and sort the grid.
i'm trying to extend Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart
i can have the result from the textbox search with: SharedQueryManager.GetInstance(this.Page).QueryManager
My queryManager is populate in the method: CreateChildControls
I put the sample code i use. and in the populateData method, my querymanager is null while in the createChildContriol, it's correctly populate with : this.queryManager = SharedQueryManager.GetInstance(this.Page).QueryManager;
using System;
using System.ComponentModel;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using Microsoft.SharePoint;
using Microsoft.SharePoint.WebControls;
using Microsoft.SharePoint.Search.Internal.WebControls;
using Microsoft.Office.Server.Search.Query;
using Microsoft.Office.Server.Search.WebControls;
using System.Data;
using System.Xml;
namespace CustomSearchResultWebPart.CustomCoreResultWebPart
[ToolboxItemAttribute(false)]
public class CustomCoreResultWebPart : Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart
private ObjectDataSource objDS;
private const string ObjectDataSourceID = "gridViewDataSource";
private QueryManager queryManager;
private SPGridView gridView = new SPGridView();
protected override void CreateChildControls()
//here is correctly populate
this.queryManager = SharedQueryManager.GetInstance(this.Page).QueryManager;
try
LoadSearchGrid();
catch (Exception ex)
Page.Response.Write(ex.Message + " - " + ex.StackTrace);
//base.CreateChildControls();
protected override void OnInit(EventArgs e)
base.OnInit(e);
protected override void OnLoad(EventArgs e)
base.OnLoad(e);
protected override void OnPreRender(EventArgs e)
//gridView.DataBind();
base.OnPreRender(e);
protected override void Render(HtmlTextWriter writer)
base.Render(writer);
public DataTable populateData()
DataSet dtSet = null;
DataTable dtTable = null;
//here is my query manager is null
if (queryManager != null && queryManager.Count > 0)
XmlDocument xdoc = new XmlDocument(); //We are using XmlDocument
xdoc = queryManager.GetResults(queryManager[0]);//xml returned by search
if (xdoc != null)
XmlReader xmlReader = new XmlNodeReader(xdoc);
dtSet = new DataSet();
dtSet.ReadXml(xmlReader);
if (dtSet.Tables.Count > 1)
dtTable = dtSet.Tables["Result"];
return dtTable;
private void LoadSearchGrid()
this.objDS = new ObjectDataSource();
this.objDS.ID = ObjectDataSourceID;
this.objDS.SelectMethod = "populateData";
this.objDS.TypeName = this.GetType().AssemblyQualifiedName;
this.objDS.ObjectCreating += new ObjectDataSourceObjectEventHandler(objDS_ObjectCreating);
this.Controls.Add(objDS);
gridView.ID = "_gridView";
gridView.AutoGenerateColumns = false;
gridView.Width = new Unit(100, UnitType.Pixel);
gridView.EnableViewState = false;
gridView.AllowPaging = true;
gridView.PageSize = 5;
gridView.DataSourceID = ObjectDataSourceID;
this.Controls.Add(gridView);
void objDS_ObjectCreating(object sender, ObjectDataSourceEventArgs e)
//e.ObjectInstance = objDS;
protected void gridView_RowDataBound(object sender, GridViewRowEventArgs e)
//throw new NotImplementedException();
Do you have a sample that i can use or some tutorial?
thanks for your helpI added this in my class
public class CustomResultsDatasource : CoreResultsDatasource
public CustomResultsDatasource(Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart parentWebPart)
: base(parentWebPart)
View = new CustomResultsDatasourceView(this, GetType().Name);
public class CustomResultsDatasourceView : CoreResultsDatasourceView
public CustomResultsDatasourceView(SearchResultsBaseDatasource dataSourceOwner, string viewName)
: base(dataSourceOwner, viewName)
//make sure we have a value for the datasource
if (DataSourceOwner == null)
throw new ArgumentNullException("DataSourceOwner");
CustomResultsDatasource datasource = this.DataSourceOwner as CustomResultsDatasource;
this.QueryManager = SharedQueryManager.GetInstance(datasource.ParentWebpart.Page).QueryManager;
And this in my customSearchResultWebPart
protected override void CreateDataSource()
//base.CreateDataSource();
this.DataSource = new CustomResultsDatasource(this);
How can i use queryManager in populateData?
thanks for your help -
Need Help With find and Replace
I am a little green to this all. I am trying to find and
replace a word inside the edit region and Dreamweaver will not
change it, because it says its inside a locked region, but its a
editable region?
I have about 900 pages I need to make this change on and was
relying on the find and replace tool to do that. I tried differn't
advanced options, nothing seams to change it. I am using cs3.
Thanks for any helpUsing Templates with a 900 page site is a crime against
humanity. You reach
the optimal size for Templates between about 50 and 100.
The error you are getting suggests that there are coding
errors on the page
(perhaps even unrelated to ANY DW Template markup). We'd need
to see the
page to make progress with what that might be, as Alan says.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"RyanWaters" <[email protected]> wrote in
message
news:ggs7fq$gnq$[email protected]..
>I am a little green to this all. I am trying to find and
replace a word
>inside
> the edit region and Dreamweaver will not change it,
because it says its
> inside
> a locked region, but its a editable region?
> I have about 900 pages I need to make this change on and
was relying on
> the
> find and replace tool to do that. I tried differn't
advanced options,
> nothing
> seams to change it. I am using cs3. Thanks for any help
> -
Afconvert with find and exec.
So I'm trying to make a recursive command to find and convert all .mp3 files to .m4a.
This is what I have this far for a few tries:
afconvert -d 'aac ' -f 'm4af' *.mp3 new1.m4v
find . -name "*.mp3" -exec afconvert -d acc -f 'm4af' *.mp3 *.mv4 {} \;
I know *.mv4 may not be the best wildcard to use.
Thanks much
JoshLet's talk about your wildcard expansion. In your first attempt -
afconvert -d 'aac ' -f 'm4af' *.mp3 new1.m4v
The shell attempts to expand every file that ends in .mp3 into the arguments of the command. Something like-
afconvert -d 'aac ' -f 'm4af' file1.mp3 file2.mp3 file3.mp3 new1.m4v
According to the sparse manual and overly verbose help option the command accepts one source file and an optional outfile name.
In your second attempt, you are attempting to expand file names within find's exec function. This function is not a shell so wildcards are meaningless.
find . -name "*.mp3" -exec afconvert -d acc -f 'm4af' *.mp3 *.mv4 {} \;
The enclosing parenthesis "{}" contain the file name. You do not need to have a outfile name. afconvert will automatically name the file with the m4a extension. This should work- Of course, Use at Your Own Risk.
find . -name "*.mp3" -exec afconvert -d acc -f 'm4af' {} \; -
Help with find and replace regex
Hello.
I have a page listing about 50 services that have named
anchors to a
glossary page. Something like this:
<a href="/glossary.html#Blogging">Blogging</a>
And what I need is to have the glossary open in a new window.
So how
do I write a regex that will give me:
<a href="/glossary.html#Blogging"
taget="blank">Blogging</a>
Thanks for any help
LanceThanks Brendon.
It's Regular Expression; an optioin in the find and replace
dialog.
I've got to replace 50 of these anchors, each different.
<a href="/glossary.html#Blogging">Blogging</a>
<a href="/glossary.html#yadayada">yadayada</a>
etc.
to make them each open in a new window.
<a href="/glossary.html#Blogging"
taget="blank">Blogging</a>
L.
On Thu, 18 Oct 2007 14:40:46 +1300, "Brendon"
<[email protected]>
wrote:
>Whats a regex?
>Why not just do a Find and Replace? Specify the current
local site, and
>voila. Make sure you spell target correctly though ;-)
>
>
><@networkologist@@gmail.com> wrote in message
>news:[email protected]..
>> Hello.
>>
>> I have a page listing about 50 services that have
named anchors to a
>> glossary page. Something like this:
>>
>> <a
href="/glossary.html#Blogging">Blogging</a>
>>
>> And what I need is to have the glossary open in a
new window. So how
>> do I write a regex that will give me:
>>
>> <a href="/glossary.html#Blogging"
taget="blank">Blogging</a>
>>
>> Thanks for any help
>>
>>
>>
>> Lance
> -
Find and sort all files in folder without invisible files
Hi all,
I am trying to check whether the newest file added to a folder is an HTML file. In theory the folder should be empty when a new file is added because the script will delete all files in the folder just before it finishes running.
However, I am having a problem with .DS_Store files being created automatically in the folder. When Finder accesses the folder it creates a new .DS_Store file and thus the newest file added to the folder is never an HTML file.
I believe that the command "without invisibles" could help me with this problem. However, I have not been able to implement this successfully. I would appreciate if someone could please point me in the right direction. Here is what I have so far.
tell application "Finder"
set sortedFiles to reverse of (sort (files of thisFolder) by modification date) as alias list
set newestFile to item 1 of sortedFiles
-- check if newestFile is an HTML file
-- read file and send contents to another application
end tell
Thanks for your help!
Message was edited by: dsbirdErrr... A quick reality check is called for. If you make files visible to the finder then they are no longer invisible files, so ignoring invisible files won't help you one bit. your best bet is to do a manual check for a file that starts with a "." (which would normally be invisible):
tell application "Finder"
set thisFolder to folder "Pictures" of home
set sortedFiles to (sort (files of thisFolder) by modification date) as alias list
set newestFile to last item of sortedFiles
if name of newestFile starts with "." then
set newestFile to item -2 of sortedFiles
end if
end tell -
Problem with Finder and Menu Fonts (uppercase A)
Hello --
I'm having a problem with fonts. All the characters that appear under icons in the Finder or in the menu for any application appear as uppercase As with boxes around them. There appears to be one uppercase A for each character that should be there. If I click-pause-click to edit the filename in the Finder, the text appears normal during the duration of the change, and then reverts to uppercase A with a box around it again. All other operation of the computer is normal.
I was watching and downloading video files in iTunes when the problem appeared. When I pressed ESC to exit full-screen mode, the Finder said that my start-up disk was almost full, and I saw the font problem. Upon investigating, I discovered that my start-up disk was completely full (and the download had failed), so the first thing I did was move some video files to an external drive, which freed about 5 GB.
Since freeing the space, I've tried the following to fix it, in this order:
1. booted from Tiger CD to run Repair Disk from Disk Utility
2. rebooted from the boot hard drive to run Repair Disk Permissions from Disk Utility
3. run through Disk Warrior
4. created a test admin user and logged in as that user
5. removed font cache files using terminal
6. booted in safe mode, logged in as myself, and then rebooted normally
None of these actions has had any effect. The computer is still operating normally, except for the characters that don't display correctly.
I'm running 10.4.6 on a Titanium Powerbook 500 MHz with 512MB RAM. A few months ago, I replaced the internal hard drive with an 80GB Seagate.
Tibook 500 Mac OS X (10.4.6)Hi again, zoobieboots —
I appreciate your initiating a new thread. Your post here helps to make the situation much clearer than in bmewolf's thread — particularly in terms of what you've already tried. Thanks again.
A few initial thoughts —
(a) As I was trying to suggest previously, you're apparently operating (after moving some files to an external drive) with ~6-10% (?) free disk space. Particularly given that you were working with large video files when this appeared, File fragmentation would be expected. While I haven't heard of this particular symptom resulting from fragmentation, that would be a concern to me — particularly since this immediately preceded the problematic behavior.
I've read some good reports about iDefrag, but haven't used it myself. A demo version is apparently available for HDs < 100GB. But you'd presumably need to free significantly more space first (you haven't actually said whether 5GB or ?? is the total available now). Having never experienced severe fragmentation, I don't fully understand its consequences — but another participant may be able to explain this.
<b>(b) You don't mention trying to troubleshoot potentially corrupt or incompatible fonts (or font caches), also as outlined in the other thread. As I suggested there, The X Lab's "undoing Font Book" FAQ is a useful resource in this.
(c) Although I agree it may be an unsatisfying "solution," an Archive & Install did work for bmewolf in the case that you've indicated matches yours closely.
I hope one of these suggestions is helpful. Please post back to discuss your progress.
Regards,
Dean -
I have done some looking around and apparently this has been an issue for others. I have not noticed it until Snow Leopard. Basically when trying to copy files to a samba server share I will get the error:
The Finder can’t complete the operation because some data in “” can’t be read or written.
(Error code -36)
I have tried copying this same file in the terminal and it works fine. From what I was reading it has to do with the way finder negotiates the encryption to the samba server. I have never seen this until now but when thought I had was to try to dis-join from the Active Directory domain I'm connected to. I saw the apple document to allow clear text passwords but I really don't see that as a solution clear text passwords are not good enough.
It seems that this is related to active directory membership.I have confirmed I can copy the same file using the terminal to /Volumes/ShareName.
I dis-joined from the domain logged on the local account and copied the same file connected as the same user to the file server and it worked perfectly. The only people that have had issues since Snow Leopard are the ones that have their Mac joined to the domain. We didn't see this issue with Leopard. -
Operation with Hashed and Sorted Tables
Hi,
What are all the internal table operations are possible with sorted and Hashed table.
Kindly let me know,Refer this help in case you have not done already.
http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/frameset.htm
Regards,
Ravi Kanth -
i want to run a utility from the terminal for all the files in a directory. The utility has an input file name and output file name as parameters. The filenames have spaces and the utility is not taking the names. Can someone help me with a script where i can do the following
find . -name *.opus
for each of the files found above I need to run this command
opusdec "name of the file form above find" "name of the file from above find with an extention wav"
I wrote this script but it is not working
ListOfFiles=`find . -name *.opus
for i in $ListOfFiles
do
optfile="${i}.wav"
./opusdec $i outfile
done
thanks for your help.Looks like you're missing a backtick
Change ListOfFiles=`find . -name *.opus to ListOfFiles=`find . -name *.opus`
$() is preferred. Try
ListOfFiles=$(find . -name *.opus)
Maybe you are looking for
-
Safari Ver 5.1.10 Fix For The "Old Style" Google Problem...
@ The mods/ Admins I'm not sure if this is the correct place to post this but I cannot seem to find the thread where people were discussing the recent problem Google introduced by forcing some versions of Safari to revert back to their old style Goog
-
Creation of new conditions in reports
hi, plz tell me the steps in creating new conditions in reports.what is the difference b/n conditions and new conditions? thanks , jack
-
5 days waiting for technician who doesn't show on time
I have had no dial tone for 5 days. On day one I set up for a technician to come out which I couldn't get an appointment for 5 days later. I set the time frame up for 8am to 12pm on a Saturday. I wasn't too happy about having to get up early on a
-
Can't write russian, japanese and other language on block diagram string
Before going to the nuts with a global rant.... I must display some text constant which depends on a language. Languages are japanese, korean, turkish, polish, russian, and the main european languages. Now, I thought to make a 2D string array, the co
-
Help: reconciling content on site and iweb
a few weeks ago my hard drive crashed. my last backup was the week before and i lost the latest iweb content. in other words, the content you see on the web is more current than the site i currently have in iweb. is there a way to reconcile what is o