Showing posts with label Mac life. Show all posts
Showing posts with label Mac life. Show all posts

Saturday, November 26, 2022

Updated to macVentura 13.0.1

Last night, I updated my macBook Pro macOS to Ventura 13.0.1. I had to to do this because my development tool Xcode 14 is only availalbe for this macOS version. This morning I saw my macOS update is done.

Here is the space difference before and after the update.

Before:



After:



It seems that I got more space after the update.

Thursday, December 30, 2021

Secret Cache of WeChat

By chance, yesterday when I clicked on a message with a link to a document file in Mac's WeChat app, I was prompt to Finder. To my surprice, this is a deep and secret space where WeChat stores temporary files.

Further exploration, I found its path from file info in Finder.

From there I copied the full path from Where. Here is the full path
/Users/xxx/Library/Containers/com.tencent.xinWeChat/Data/Library/Application Support/com.tencent.xinWeChat/2.0b4.0.9/f5210b300b4abef170762c8c1ddf67c5/Message/MessageTemp/2d14efe546045554426bdf707c13cead

I understand that WeChat saves some information such as images, files, videos in local cache so that there would be no need to download those information again for displaying (and much qicker) when user clicks on thos items. However, I don't know where they are and how long those items are stored, forever?

From this sneak, I could go up to other folders to see what items are saved. There are quite a lots of items in this library cache. I guess that those items would be purgeble items in system cache.

Tuesday, December 28, 2021

I got Mac mini M1

I just got Mac mini M1 2020 model, refurblished one. I have been kept watching Mac mini M1 for long time. The Mac mini box is very small, powerful, and attactive Mac computer. In addition to that, the cost is another reason, much less that iMac or macBook air or pro. This model saves me CAD$170.

This is my first expirence with Mac mini. Basically, it is just computer box with powerful CPU & GPU, internal speaker and several ports for peripheral connection. To make it work in a way as same as iMac, for example, a monitor, a keyboard, mouse or trackpad are needed as minimal.

In addtion to the minimal, for my case, I purchased a web camera for facetime or web conference. I have an external speaker with better sound quality. The Mac mini box does not have any internal microphone, but I found that web camera's microphone is good enough. There are 2 USB ports in the mini box. I need more ports for my keyboard, mouse, web camera, extrenal HD as time machine, and printer. Therefore, I need two USB hubs (4 USB ports for one hub) for more connections.


For my experienment, I tried to use USB port to connect the Mac mini to my existing iMac 21, using iMac screen as monitor. I thought that if I could see Mac mini HD, I would be able to boot from it through System Preferences' boot disk setting. Unfortunately, I cannot see Mac mini HD from my iMac. Finally I realize that it makes sense. The HD within Mac mini box is not in the same way as external HD to USB port. Any way, it is a good try. Currently I have an old monitor for use. The new one, Samsung 24" FHD 75Hz 5ms GTG IPS LED FreeSync Gaming Monitor (LF24T350FHNXZA), is on the way shipping to my house.

References

Friday, November 26, 2021

Add Picture to PDF File

Preview is a versatile tool to view and edit various types of files, including PDF. For example, by using Preview, you can add new text, lines, object shapes to a PDF file. However, it seems, at first,  that images could not be directly added to PDF file(no ways from Previews' menu or toolbar icons), none be directly pasted to.


Just a shorting time searching from internet, I found a way to do that.  Here is the trick to do that:
  1. First copy and paste an image to Preview by Ctrl+N as a new image file;
  2. then select all or part of image and make a copy (Ctrl+C).
  3. Paste the selection by Ctrl+V.
  4. Select all again (Ctrl+A), and
  5. cut the selection(Ctrl+X). This new copy will be as an object instead of image.
  6. The last step is to paste the object to your PDF file in Preview by Ctrl+V!

References

Tuesday, April 17, 2018

Remove Folder/File by Using Terminal

Normally, you can remove files/folders from Finder just by selecting files/folders first and then hitting "delete" key. However, I encountered a special case that I could not remove a folder in Finder. I got a prompt message saying that the folder is in use. Actually this is a misleading message. The folder is not in use and I could not delete it even after I tried to restart my mac.

Further investigation, I found that the folder is in kind of nested loop endless. It is in my Trash. I don't know why it is like that.



Full Path to the Folder


The first thing I need is to find the path to the folder. The file/folder full path is not obviously available in Finder.

There is a way to obtain the full path from folder's Info. Just locate the folder in Finder, and hit Command+i combination keys. This will bring up an info window.

For example, the following is the info window for the folder in my Trash.




Highlight Where section, kit Command+c keys to make a copy. This will copy the full path of the folder to clipboard, ready for use.

Terminal to Rescue

Use spotlight to open Terminal. This can be easy done by pressing Command+space keys, and type in terminal in spotlight search area. Press enter key to open Terminal.

I remember that there is a command tool to remove folders. It is the command of rm.

First I have change current location to the path where the folder is. Use the following command cd to change the current location or directory or path:

  1. cd /Users/dchu/.Trash

Before removing the folder, I have to make sure the folder is there. Use ls command to show the content of the current directory, with -F switch to show folder:

  1. ls -F
  2. iPhoneDev copy 6.00.02 PM/

Now it is time to remove the folder. Use rm command with -R switch. This switch will force to remove the folder as well as any contents, such as files and folders, within the folder.

  1. rm -F iPhoneDev\ copy\ 6.00.02\ PM/
Tip: when you type in folder's name, you can just type in a few characters like "iPho" first, and press tab key to get the complete name filled out.

Kit enter key and the folder is gone!

Note: there may be spaces within file or folder names. The spaces in a file or folder name can be specified by escape char \, just like above example.

References





Tuesday, September 2, 2014

iMac Experience

This is my recent experience with my iMac 27. No thing wrong with it, however, I mistakenly put my flash camera disk into DVD slot when I was trying to import photos to iPhoto app. My old iMac 27 has both DVD and flash disk slots on the right side.

I tried to pull the disk out. As most of disk was already in the slot, it was so hard to grab it. I tried to use a think screw drive to move it out, but it was pushed completed in to the slot. The DVD slot is so small, and there is no easy way to find my disk.



The only way to get it is to open my iMac. I could do it by following instructions from YouTube videos. However, it would be too risky and time consuming. I thought about Apple Retail Store genius support. Then I made an appointment.

The next day I went to local Apple Retail shop. I told a technician my story. He smiled and told me no worries. He carried the iMac to the back room. Within minutes, he came back with my camera disk out. He told that they have tool to get the disk out.

There is no any charge for this service. I was so happy. I talked to another lady nearby with my story. She said, Yes, I love Apple service!

I used to work at computer store. This kind of service there must be a minimum one hour charge. Apple service is absolutely excellent. Normally, you can bring your computer or mobile devices to their genius bar to get consulting service, most of them are free, unless there is any hardware replacement.

Anyway, still I had to find time to travel to the store to get it serviced. Since the DVD disk is almost useless, I just put a tape over it, to avoid similar mistake.


Saturday, April 5, 2014

File size feature in Preview is back!

Recently I noticed the the missing feature of file size in Preview is back! I noticed this missing feature when I updated my OS to Lion. I relied on this feature to decide which image size is smaller, png or jpg. When this feature was removed from Lion, I was so disappointed. I had to find other ways to compare file size difference between png and jpg.

I posted my request to Apple Discussion Forum. I remember that one WWDC encouraged users to post their questions to the forum and Apple is watching for discussions. I think that the roll-back of this feature may be related to my post. That's awesome!

References


Friday, January 24, 2014

My 6 years, part of 30 Mac stories

Today I found this news from AppleInsider and then Apple web sites: 30 years of Mac anniversary. This is really inspiration day. I have been part of the Mac stories for 6 years, since my first iMac in 2008.

Not enough words to express my appreciation of Mac enchained my life. Here is my survey from Apple web page.








Tip on Spotlight: Finding files


Spotlight is a very useful feature in Mac world. Here is my quick tip: how to use spotlight feature to find a file when you try to find file from Finder. This is specially  useful when you try to update files from internet browser.

Step 1: click your home icon on the left side.
Step 2: type in file name in spotlight
Step 3: files you are looking for will be displayed!

In short, you don't need to know where you files are in your Mac.

Wednesday, January 15, 2014

Windows Key for Mac Keyboard

At work, I use my MBP to access to Windows VM. Recently, I find s shortcut for access Desktop in Windows: Windows key + D. However, MBP does not have a Windows key. Quickly, I found an awesome solution from AskDeferent: Right Command + D!

This works beautifully, the corresponding Windows key in MBP is Right Command.

== >

In addition to that, I also found a shortcut key to show and hide my Dock in small size: Option+Command+D.

Reference


Tuesday, September 24, 2013

Finder and Alias

Finder is a UI interface to access to Mac file system. This UI is a pure UI interface with no direct way to enter a path, such as address text box in a browser or Windows File Explorer. In Finder's menu, there is one menu item Go to Folder... under Go, or press Shift+Command+G. From there you can type in a path.





The first issue I open encounter is how to get the full path of a folder. From Finder's status bar (if enabled in Preference), or Header area on top(in Mountain Lions +), the full path are layout like a hierarchy chain, which is not full path for copying.

The second issue is that in a browser, if you try to upload or attach a file, a Finder like dialog does not have "Go to Folder..." menu. From this pure UI, it is really hard to browse to a deep path on your Mac.

Here I found a solution to resolve the issue: using Mac alias. Mac is Unix system, alias. Alias is a small file reference to another object in Unix file system, file or folder, for example. I put an alias on left panel of Finder. This is a quick shortcut to a folder.

There are many ways to create alias. Here are two I found very convenient.

Create Alias in a Folder


I use Automator to create an alias in a specified folder, for example, MyAlias. I create this folder first at my home account, and then place it on the left panel of my Finder.


The service created by Automator is a very simple one like this:


Select Service.


First block: Service received selected "Files or Folders" in "Finder.app",
Second block is New Alias and in "MyAlias"

Save the service as "AddToMyAlias". Now this service is ready for use.

For example, try to review a photo in iPhoto app to Finder. Right click on the folder, select "AddToMyaAias" from services.


A new alia is created in MyAlias folder!



Using Terminal ln Command


An alias can be easily created in Terminal by Unix command. The command is ln with source path and an alias name. The source path may be a long string as a full path, for example, the above one. I prefer to find out a convenient way to get full path, instead of typing it from Finder.

Here I use Automator again to create a tool, which is used to get full path in Finder. The auto-workflow is a very simple one, just passing Finder's file or folder to clipboard:


I give the service a name as CopyPathToClipboard.

With a full path available, an alias can be easily created by ln command in a Terminal.

~ myAccount$ ln -s /Users/myAccount/Library/Services ~/MyAlias/MyServices

The above command creates a symbolic alias "MyServies" to my account's Library/Services folder. As a result, I can easily see what are in my services from Finder:


By the way, alias is a kind of shortcut to a file or folder. Deleting it will not cause original one lost.

Saturday, December 15, 2012

iPhoto and Photo Book

It is Christmas holiday season and close to year end of 2012. It is time to share gifts with family members and best of friends. I have used my iOS devices in the past years to take many photos. Those photos bring wonderful memory of our past. I decided to use iPhoto app to create photo books as Christmas and New Year gifts. I think this is a great idea and it will be a big surprise for people who will receive my photo books.

It is very easy to create a photo book. Here are some of my experiences.

Context Driven Process


I only started to use iPhoto to create books three weeks ago. Therefore, my limited experience may not explore all the features of how to create photo books. I must miss something I don't know. However, it is very easy to create a photo book in iPhoto app. There is Create button on the bottom right side in most cases. From there Book is one of options.

Depending on where you are, the book will bring in photos depending on the context. For example, if you open an event from Events in Library, the photos in this even will be placed in pages in your new book. If you open a person from Faces, the book will initialize pages based on photos for this person.

iPhoto's book comes with many different templates, and those templates make book design much easy. You have to open a page to change page layout from a list of choices such one photo, two photos and so on; however, there is a limitation to change page layout design. For example, you cannot change photo page size, delete text box or change text box size.

Choose Photo from Events


Most likely, you will want to choose photos from different events. To do that, you have to select an event first, then go back to your book to select photos from that event. This is a very tedious process if you have a lots of photos, such as thousands of photos across hundreds of events. There is no way to create a collection of photos as a template place. Another enhancement would be nice if search photo by key words/tags assigned to photo is available.

Output Options


There are many options you can output the book into different formats, such as web pages, JEG photos, slide movie, PDF book and physical book from Apple print shop. I think the last three options are the most popular ones.

To create slideshow movie, it can be done by Export from File menu. To generate PDF, you can choose Print or press Command + P keys.

As Christmas gift, I choose Buy Book in iPhoto. I notice one problem when I buy a book. If you use iPhoto to edit your book for some period of time, you may get crash when you buy your book. It is quite annoying after you go through steps to type in mailing address and credit information. Fortunately, you would not get charged if you fail to submit your request.

To avoid this problem, quit iPhoto if you edit your book. Re-open it just for Buy Book. This will be very smooth process without any trouble.

Another critical tip to create book should be done always if your photos are not processed or optimized.   In the final step, go through all your photos and use the Enhance feature to get enhanced photo quality from Photo Edit.


The first book I submitted was on Sunday. The next day I got an email notification about my order. The third day I got a notification about shipment and on Thursday I received my order. The package is very nice packaged with Apple logo. The print quality is well done, almost as same as I see from my iMac screen.

After my first success try, I designed two more books for my best friends. The books are on the way to my friend's homes. They will be very surprised to receive my Christmas gifts. I think that those colorful and wonderful photos will be best gifts for them. They will remember this gift for long time.

Thursday, November 1, 2012

Numeric Keys Not Working

I like to use Mac long keyboard with numeric keys on the right. Recently, I realize that my keyboard's numeric keys not working. I was puzzled. I thought it may be that I had kept my Mac running for too long time (weeks or months). After I reboot my iMac, the numeric keys are back to live. However, this issue comes back again for several times.

It is quite annoying. I like to use numeric to input numbers. Today I spent some time to investigate the issue. I noticed that other keys on the numeric area are working, such as +, - *, and /. Just numeric keys were not responding. Maybe my keyboard numeric keys are dead? All of them?

I thought that there may not be many people using keyboard with numeric keys, hence there may not be solutions from Web. Anyway, I tried to google for solution. To my surprise, this is a common issue and I quickly found a solution. The solution is actually from an article at Apple web site.

According to the article, it is the setting in System Preference. As in the snapshot, the checkbox for Enable Mouse Keys has to be cleared.



Not sure what this feature is. It may be for Apple magic mouse as numeric input? I don't have mouse. I don't like mouse. What I use is a touch based Magic Trackpad.

The article explains that this feature may be enabled by some applications. Now I know how to get my numeric keys back.

Reference


Wednesday, August 29, 2012

Mountain Lion: Kernel Panic?

I think I got Kernel Panic since I updated my Mac OS to 10.8. It happened twice. When it happens, the screen suddenly changed into a grey screen with a message in 6 languages. Within seconds, the Mac reboots atomically.

I did not catch the message first time. The second time it was happened in the morning. I logged on to my Mac. Suddenly, the KP happened. I took my iPhone to take a phone.



The screen looks very different from the one I had before. I think this may be the Mountain Lion KP.

Reference


Saturday, August 18, 2012

RSS Reader

Safari 6.0 removed support for RSS reader. This is a bad news for me, since I have been depending on Safari to read my RSS feeds. What I did was to a folder to my Safari bookmark as named as RSS. Depending on Safari's RSS detection, I saved all the interested RSS feeds to my RSS folder. In Safari 6.0, all those feeds become unreadable.

Based on web search, I found that the alternative way is to use RSS reader apps. RSS reader application is an specialized app handling RSS feeds. A RSS feed is an XML content, based on Web standard. It has been widely used to describe and to update web contents, such as blog entries, news,   data, or anything you want. Since RSS feeds are based on standard format, there have been many RSS based application available to parse and to present information from the standard format.

I found some, and tried them. From my experience, so far I like NetNewsWire the most. It is a free version (you can pay for it if you like). The app is not available at Apple App store. I had to download it from the application's web site.

The app must be signed with developer ID because my Mountain Loin's Gatekeeper only allows Apps from App Store and Identified Developers.

Google Reader as RSS Feed Source

NetNewsWire uses RSS Feeds from Google Reader when you run it first time. For people who don't have Google account, the app will display a list of default RSS feeds. I have Google account and I used Google Reader long time ago. Therefore, it is very convenient for me to get my previous RSS feeds back to alive. In addition to that, I can use NetNewsWire as UI to manage my Google Reader (I don't like Google Reader web site) contents.

UI Layout

The user interface of NetNewsWire is very much like email view: a layout of four panel views. On the left, it is the view of RSS feeds or folders. In the middle, the top panel is a list of entries for a RSS feed, and the bottom panel is a quick view of an entry's content. The right side is a panel with history thumbnails, which provides a quick way to go to previous views.




In the middle section, click on the title of an entry on the bottom panel, the middl section is changed to a browser view. The HTML format of the web content is displayed nicely, as same as I see it in Safari. This view is also added to the history view thumbnails.



RSS Feed Management

Another issue I am interested in is the management of RSS feeds. I need to update or add new RSS feeds. NetNewsWire does not provide a way to edit RSS feed's URL. However, I can do it by deleting one first, and then adding a new one. Deleting a RSS feed in NetNewsWire is called as "unsubscribe". By confirming unsubscribe, I can delete a RSS feed.

I like the way NetNewsWire to add a new RSS feed. I don't need to figure out what RSS feed's URL is. What I need is just to copy a web site URL to Subscribe's dialog. It will be smart enough to figure out if there is any supported RSS feed or not. Since the title information for a RSS feed is normally available from RSS feed, the title information is optional. You can use whatever title you want.

If you copy a URL for subscribe, the Subscribe dialog is smart enough to paste the URL there automatically, very handy!




I tried to delete and to add RSS feeds through NetNewsWire. The changes I made in the app are synced to my Google Reader. The counts for read RSS feeds are also synced as well. That's nice feature. It is almost like a kind of iCloud service.

Reference


Wednesday, August 15, 2012

Mountain Lion Crashed First Time

Today my Mac suddenly crashed. This is the first time I saw a crash after I updated my Mac to ML. My Mac has been running for several days. This afternoon, I logged in to my Mac when I got home after work. Within seconds, My screen suddenly became a while screen, just like a new start. Soon there was a message in the center of the screen about the crash. I tried to read the message, but I was not able to read them. The restart cleared the screen.

After the restart, I got a message about the reboot.



I clicked on Report button, a detail information was displayed. I am not sure if there was commend available before Mountain Lion. I clicked on Comments and I could write something there to tell what was happened.


Before ML, I had several times of blue screen. The blue screen happened like a curtain rolling down from top, and the whole screen became disabled. I had no time to respond or control my UI, and no time to save anything. The blue screen displayed a message about unexpected system panic. I was forced to turn off power. Not sure my sudden crash is the same case of blue screen.

Wednesday, August 8, 2012

My experience with Mountain lion dictation feature

I'm going to write this blog by using Mountain lion dictation. I'm not going to modify all tied all make any corrections. I understand about my English is not perfect I have strong Chinese accent. So I cannot complain about Moncton live dictation. It would be very interesting to see how can I write this blog by using my penlight dictation.

Often I updated my Mac OS last weekend, I started to try dictation feature yesterday. In the beginning I couldn't table dictation feature. It was very frustrating. Before giving a try, I didn't google search about how to enable dictation. Actually I think Google search for bald dictation. Okay, I have difficulty to use dictation right now. What I was trying to say I did a Google search football dictation.

Anyway let me continue. I didn't follow instructions to Naple dictation long system preference. However, I couldn't stop dictation by pressing function key works. Yeah I mean stop dictation. Here I mean spa dictation. Maybe I cannot say stop correctly in English. Not stop, I mean stock. Okay let's continue!

Then, I did Google research to find a solution. Arthur spending some time, I found a solution for Apple forever. The solution is at two special DNS IP in my night walk. Here is the picture.


Author I did this change, my dictation walks. I tried dictation into text. I mean text at the app. He dictation lost me, all I lost dictation. Today I gave dictation to try again. As you can see, it is really ross.

Not that thing I noticed is that you stinky keys are in Nabel, the dictation will not walk. Sticky keys can be enabled from accessibility through system preference.  My speaking keys was Knable. When speaking keys on table, pressing function keys twice will not walk.


My first experience all Moncton Dictation feature is mixture. For me it is frustrating experience. But I cannot complain, because it may be my English problem.

For all the experience, I have to speak very slow and clear. When I get back, in the house unlocked. It doesn't make sense at all. Many repeat again. When I did that, it's how long.

I try not correct any mistakes, thought I had to correct saw. Otherwise Psalm just that doesn't make sense at all! For me, I may use dictation to improve my English.

Sunday, December 18, 2011

Apple Support Story

Yesterday I purchased iPhone 4S, 64G white model. It is a beautiful device.  However, I soon realized there is one issue: iPhone does not show in my iTunes. I have so many apps in my iTunes for my previous iPhone 4, therefore, I do need to use iTunes to sync my previous iOS contents back to this new device.

Last night, I tried to google for solution, but with no luck. It looks like a common issue, but all the suggestions would not work for my case. I restarted my iMac 27 and restarted my iPhone. Still my iPhone is not in my iTunes.

Today is Sunday. I was not sure if Apple support was available or not. I dialed 1-800-MyApple anyway. Apple support was available. That's a good news. It took about 10+ minutes to get a support person on line. I spent 20 to talk with him.  He verified my iTunes and Mac OS versions.  He also told me to enable iTunes preference: Device section with Prevent iPods, iPhones, and iPads form syncing automatically enabled.  Still there was no luck to show my iPhone.

He transferred me to a senior special list on this issue. It took about another 10 minutes to get available person. Then we went through several times reboot with safe mode, hold on shift key while rebooting. He also instructed me to repair disk permissions from rescue HD after reboot with option key. Still no luck.  During the initial time, he also asked me if I connected my iPhones through USB hub or if there are any other USB devices. I cleared all those issues.

Then I asked my what are in my Macintosh HD's Library\StartupItems. That's something I did not know before. I found two items:

  • Privoxy
  • VistualBox
He recommended me to move those to Desktop or remote them if I don't need them.  I removed them. Still the problem existed.  He then sent me a file of "Capture Data.app.zip", which is an app to capture some disk log files for Apple engineers to analyze what may cause conflict or block iPhone display.  When I started the app, there were several options to select.  He was not sure what to select.

Finally, during the time I repairing my disk permissions, He told me take a break and he would call me back in minutes.  It had been over 1.5 hours passed. During this break, I grasped some food and drinks.  Soon he called me back.  Instead of capturing system log files, he suggested me to reinstalled iTunes from Apple web page.

I downloaded iTunes from the web. During the installation, I asked him if I should uninstall it first. He told me that iTunes is part of Mac OS application and it cannot be uninstalled.  Therefore, there is no need to uninstall iTunes.

I run the iTunes.dmg after downloading. I followed the instruction to install the app. After the installation, he told me to quit iTunes first and unplug my iPhone. Then start iTunes.  This time my iPhone is displayed in Devices on the left panel.  You got it finally! he said. What a relief from him, I can tell from his voice.

After the installation, I saw this nice end-thank-you screen:



It has been over 2 hours for my support case. It is actually not my iPhone's issue. It was my computer. However, my Mac just past 90 days telephone support warranty.  He did recommend me to get extended 3 year warranty.  

From this case, I realize that this warranty is actually great deal.  You have to pay for your get.  With extended 3 year telephone support, I think it'll save me a lot in terms of time and trouble to get my computer to local Apple store. Just image this case, how much Apple has to pay for support staff over hours on my one case.  The fee is basically break even for Apple to this type of service.

After my vacation back from China, I am sure to get the telephone support case.



Monday, September 19, 2011

My iMac27 Arrived!

Today my iMac 27 arrived, much earlier than expected. When I brought it home, I set it up in just minutes. Now It is in the progress to transfer all my data and apps from my TimeMachine, about 1 hour and 8 minutes left.

Today is the last day for back-to-school special. This year, the special is $100 iTunes gift card. I am still thinking if I should get MacBook Air 13"or not. I have plan to bring one back to China and give it to my sister as a gift.

I have sent out 4 Apple laptops (1 MB, 2 MBP and 1 MBA) to my relatives. They were all very suppressed by my generosity. For me, I think Apple laptops are the best gift, better than anything else.