About Me

My photo
PhD Candidate at Purdue University, Computer Science.
Showing posts with label MAC. Show all posts
Showing posts with label MAC. Show all posts

Friday, March 19, 2010

MAC expose bug


I have a macbook-pro, and whenever I use show all applications using the expose feature.
I got a shadow of un-existing application within the displayed windows...
u can see it in the picture, i am marking it in gray.

Wednesday, September 23, 2009

Back to MAC

Hurray..Hurray.

I am on MAC again :)
This post is from MacBook-Pro 


  Model Name: MacBook Pro 15"

  Model Identifier: MacBookPro2,2

  Processor Name: Intel Core 2 Duo

  Processor Speed: 2.16 GHz

  Number Of Processors: 1

  Total Number Of Cores: 2

  L2 Cache: 4 MB

  Memory: 2 GB

  Bus Speed: 667 MHz

Friday, May 09, 2008

When Adobe is going to support RTL?

I was wondering when adobe will support RTL languages? the flash players on MAC doesn't even allow to switch to arabic keyboard!!
The input also looks silly on windows when you try to edit in a text box and you find the characters are hiding and going from LTR!!!

When they are going to work seriously on RTL languages!

Sunday, January 27, 2008

ImageMagick: Installation on MAC ( Third Shot)

After I installed ImageMagick on my MAC. I couldn't run the mogrify commands to resize my JPG image.
the error i got was..
No decode delegate for image format
So, I tried to rename my file to gif and test but i got the same error again. I thought that my installation was not able to find the module responsible of decoding different formats.
I couldn't find any solution to the problem, but i figured out that I was wrong about renaming the file. this was not enough as a work around.

I reinstalled the imageMagick another time but with some more complex steps this time. this time I will add the PNG support to my installation.

  1. Install Fink.
  2. Add /sw/bin is in your path. (on the root vi .bash_login)
  3. add symbolic link: cd /Developer/SDKs/MacOSX10.4u.sdk
    ln -s sw /sw
  4. Download the libpng lib. Make sure to read the INSTALL file of the downloaded folder. It will guide you to install the zlib as well.
  5. Make sure the files are included in your include folder . in /usr/local/include. The files you'll be looking for are named "png.h"
  6. gunzip -c ImageMagick.tar.gz | tar xvf -
  7. cd ImageMagick-3.8
  8. ./configure --prefix=/sw --with-quantum-depth=16 \
    --disable-dependency-tracking --with-x=yes \
    --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib/ \
    --without-perl --with-png=yes
  9. read the console and make sure that the PNG format was supported successfully.
  10. make
  11. sudo make install
  12. In case you need to check a list of supported format from of the ImageMagick run the following command $convert -list format.
  13. you can apply this for all formats you need (jpeg, tiff...etc). the ImageMagick doesn't support all formats by default.


Saturday, January 26, 2008

ImageMagick: Installation on MAC ( Second Shot)

Referring to my previous post, I found the ImageMagick not working it gave me the following error..

Error Output:
dyld: Library not loaded: /ImageMagick-6.3.8/lib/libMagick.6.dylib
Referenced from: /Users/tfield/ImageMagick-6.3.8/bin/convert
Reason: image not found

I couldn't find the reasons for this error. So, I deleted my installations and started to compile it from scratch.
the end result was as I expected, it works now on my MAC. It seems that the there is something wrong with the binary distribution.
  1. Get the source code from this link.
  2. gunzip -c ImageMagick.tar.gz | tar xvf -
  3. cd ImageMagick-6.3.3
  4. ./configure
  5. make
  6. sudo make install
everything should be working now. Type convert -version in the command line to check the installation version.

ImageMagick: Installation on MAC

  1. Install MACPorts from the pckg.
  2. Configure your shell to use the port from shell.
  3. run from new shell window the following command..
    sudo port install ImageMagick

Monday, December 24, 2007

Keep my MAC Screen Clean

Thx to ZDNet. They posted some tips to keep your restore your glossy screen.

Of course this is applicable for all screens, not just for MAC.

Saturday, November 03, 2007

Installing Windows, Ubuntu7.10, Mac OS 10.4.10 on MacBook (Triple Boot)


I am happy with my MacBook with its running Mac OS X 10.4.10. I can't stand working on windows any more, I feel more comfortable with Mac OS.

My master Thesis is running on linux environment(basically Fedora, but I successfully turned it to be Ubuntu)
My current project delivery should be done on windows. An easy solution costing 60$ would be to purchase Fusion.
Although Fusion looks very interesting, I didn't submit to this solution, for the following reasons:
  1. Running virtual machines consumes more memory, in this case I will loose some performance which is something I will certainly need during development.
  2. More memory usage, means more power consumptions, hence less battery life time. in normal cases I enjoy having ~4hrs battery life time with my lovely Mac. this is sthg i don't stand to loose.
  3. to overcome the first problem, I can extend my RAM. this will make the virtual software costs me almost (60+90)$....I really can't afford this for now. (I didn't get paid for salary 3 months ago)
So, I decided to to create a triple boot on my MacBook. It was a very risky step for me..But here we go, I have nothing to loose anyway (keeping in mind 150$ :S, 900 LE when converted to our local currency!!!!!! )

My MAC specs are:
Processor: 2.16GHz Intel Core 2 Duo
Memory: 1 GB 667 MHz DDR2 SDRAM
MAC OS X: 10.4.10

The target is to install Ubuntu 7.10 and WinXP SP2 on MacBook.
steps:
  1. Get BootCamp: I think it may force you to update to Mac 10.5. (luckily I installed it 1 month ago before leopard is released)
  2. Update your Mac OS.
  3. Install rEFIT.
  4. run BootCamp assistant and follow instructions to burn driver CD for windows. (don't proceed with installing steps)
  5. Backup your data. (you may not loose your data if things go smoothly)
  6. Check your disk partitions and identify the Mac Partion. I most cases it is /dev/disk0s2. but if you are not sure, you can verify this by running a shell command using the diskutil:
    $ diskutil list
    resize your HDD using Diskutil by running the following command. first you specify the volume to be resized, and its new size, then the type, and the name of the new volumes followed by their size.
    $ diskutil resizeVolume /dev/disk0s2 70G "Linux" "Linux" 20G "MS-DOS FAT32" "Windows" 20G
  7. insert your XP SP2 CD and hold down the "ALT" key.
  8. install XP on the valid partition, just give it a quick FAT32 format.
  9. you should now have a dual boot(windows with Mac).
  10. insert your Ubuntu 7.10 Live CD.
  11. run the installation normally. You should set up the partition manually. Don't mount the EFI system partition. you need only to mount / to the drive you allocated to your linux installation. I didn't make a SWAP file, I just don't need this for now, I relied on my 1GB RAM.
  12. Continue through the following steps.
  13. When you reboot, you should have triple boot.

Saturday, October 20, 2007

No ldd on MAC OS X

ldd is not available on MAC OS X. Instead, I used the otool -L command to have the same functionality that ldd does.

Wednesday, August 22, 2007

MAC character set reference


Ever wanted to type the copyright icon, or do an accent over an A without having to resort to some character palette? We have, and it takes time and is an effort. So we put together a series of help sheets that reference all of the characters that aren’t listed on your keyboard, along with their shortcut keys to make your life easier.
Get the List from Liquidicity

Thursday, August 16, 2007

PDF Library on MAC

It happened by luck...
I was dragging a PDF file, then I dropped it mistakenly on itunes. I expected an error message or something popping into my face. Surprisingly, the PDF file was added ti the library.
At first glance, I thought it would be a bug or sthg :), so I clicked the file, and it opened the MAC viewer to display the PDF file.
WAAW, the itunes support PDF Files :), I am new to MAC world and it is clear that I miss a lot. I decided to give it a chance and check how much itunes can go far with me as a PDF organizer for files on my MAC.
I created a new library and called it "ebook" and I dragged some pdf to that library.
the itunes copy any files dragged to its library. In this case, I will have at least two copies of each files.
from preferences->advanced uncheck the "keep itunes music folder organized" and "copy files to itunes music folder when adding to library".
This doesn't look enough so far, i need some kind of tagging. thx to the "smart playlist" I can automatically assign a keyword and it will be added automatically to this playlist.
Hence, all I have to do is to add a prefix to my PDF files depending on the folder structure i need it to be.
I browse media and documents through only one application now :)
the advantage of itunes was to make a virtual structure. So, it wasn't a big deal where i place physically the file as long as i organize it well by tagging through the playlist, and the file can exist in many playlist (many-to-many relation) and this is sthg u don't get by folders.
Don't forget that this also will work under Windows as well ;)
I was happy with my itunes so far, although it doesn't support search in PDF contents.
searching in PDF contents is supported in Spotlight, so it was not a big deal. Another problem is that files are not opened inside itunes, instead, they were opened by the MAC Viewer.

What else can I have here?
I found a great tool called yep, It is really a great tool. It has the same decent look as any MAC tool.
It does everythg: searching, printing, tagging, browsing..etc it is really a great document store. It is freeware; I hope it remains so.

Tuesday, August 14, 2007

RSS Reader For MAC OS

I was trying to figure out the RSS readers i can use on my macbook.
I find an application called Shrook
At first glance, i didn't like it. I can't drag a link from Firefox. It works only with Safari.
Actually I am not a Safari fan as it has some problems with many sites. Rendering Arabic sites is always corrupted on Safari.

I decided to move to Google Reader
I didn't use it b4. I relied on Google Desktop reader, and it was enough for me at that time.
But I realized sthg very weird that may push me to refer to Shrook again.
I didn't find "SEARCH" in Google Reader!!!!
I didn't try to bother to look for it at first, I never expect that it is not there. IT's GOOGLE!!!