Showing posts with label macosx. Show all posts
Showing posts with label macosx. Show all posts

Friday, March 29, 2013

how to mount read/write ntfs in macosx

Well .. i was facing same problem and i've found a solution that works perfectly for me and i can write on NTFS:

1- Install OSXFUSE == > The most important part is to check the compatibility layer within installation otherwise it wont work
2- Install fuse_wait pkg
3- Install ntfs-3g 2010.10.2 and remove the MacFuse from the customized installation (if you couldn't, just after installation, go to preference and remove the MacFuse)
4- Reboot your macbook, et Voila .. it'll work

i've got this info from this link
https://github.com/osxfuse/osxfuse/wiki/NTFS-3G

Hope that would help

Cheers, Soha

Thursday, April 14, 2011

encrypted partition with macosx

ง่ายมากเลย เพียงท่านเปิดโปรแกรม Disk Utility ขึ้นมาแล้วทำการสร้าง disk image ใหม่ขึ้นมา ในหน้าฟอร์มการสร้างนั้นจะมี option ให้เลือกว่าต้องการ encrypted disk image : ) เมื่อสร้างเสร็จเวลาต้องการใช้งานก็เพียง double click disk image นั้นขึ้นมามันจะ prompt ถาม passphrase เมื่อกรอกเสร็จก็จะเห็นเป็นอีก partition หนึ่งใน Finder

อ้างอิง

Wednesday, March 23, 2011

firefox 4 with macosx 10.5 (leopard)

I run macosx 10.5 (leopard).  Today, I decided to replace my Firefox 3.x with Firefox 4.0.  Then I tried to call Firefox Profile but failed:

% /Applications/Firefox.app/Contents/MacOS/firefox-bin -P -no-remote
dyld: unknown required load command 0x80000022
Trace/BPT trap

Zzz... I just CAN'T LIVE WITHOUT FIREFOX PROFILE!!!

OK, thanks to asqueella.blogspot.com!  I have no idea what he is talking about but the solution is to:

% arch -i386 /Applications/Firefox.app/Contents/MacOS/firefox-bin -P -no-remote

Reference

Thursday, August 5, 2010

recording any audio from your macosx

Ladies and gentlemen, I give you WIRETAP !!!

I bold it.  I italicise it.  And I even underline it.

The best tool ever to record any audio that can play on your MacOSX machine.  What I feel is that it just records directly from some  very low-level device or device driver I have no idea.  It's just amazing.  Go Get It Now!!!  And start recording everything!!!

Wednesday, August 4, 2010

screen title and vim (a.k.a. vi)

I use "screen" everyday whether I am on Grml Linux or MacOSX.  And also every time I log on to any unix servers, I have to run screen too as it is the best way to keep my sessions safely whenever there is Internet connection disruption.

Normally, when I do coding, I run multiple vim s under screen like this:



The blue status line comes from a setting in my .screenrc :

hardstatus on
hardstatus alwayslastline
hardstatus string "%{.bW}%-w%{.rW}%n %t%{-}%+w %=%{..G} %H %{..Y} %m/%d %C%a "

As you may notice, all the title of each screen are just the same "vi" even though I ran:
  • [screen 0] vi a
  • [screen 1] vi b
  • [screen 2] vi c
Therefore, I have no idea which file it is unless I switch to that screen which can be cumbersome most of the time.

Luckily, vi can send some special status to shell and screen to display a customized title.  All you need to do is to add these lines in your .vimrc file:

let &titlestring = "vi(" . expand("%:t") . ")"
if &term == "screen"
  set t_ts=^[k
  set t_fs=^[\
endif
if &term == "screen" || &term == "xterm"
  set title
endif

Note that the "^[k]" and "^[\" are control characters which you have to enter them by (in vim):
  • [in edit mode] ctrl+v => esc => k
  • [in edit mode] ctrl+v => esc => \
After that you re-run screen and use vi to open files and it should look like this:



Notice the vi(a), vi(b) and vi(c) - Now they display which file names they are opening!

references:

Friday, July 30, 2010

lftp error "Delaying before reconnect"

lftp is a well-known ftp client.  I use it with both MacOSX and Grml Linux.

Few days ago I had to download all files from a virtual host directory which resides in a shared hosting environment.  A bad thing about using these cheap shared hostings is that it provides us ftp to be the only mean of file transferring which sucks.  (When possible, I would rather go with sftp, rsync or fully shell access where there are a whole bunch of other fancy ways to choose from.)

I searched on Google to find any alternative ways (other than lftp) to sync files from ftp site to my local directory instead of having to download the whole files again and again which is too expensive.  (By synchronizing I mean to fetch only newer or modified files on the next synchronizations.) (which lftp's man page does not state precisely whether it can do it or not so I assume it can't.) Unfortunately, I couldn't find an OpenSource one for Linux.  I could see only proprietary softwares for both Windows and Linux.  If anyone can suggest me for Linux, please do.  I know WinSCP for Windows is free-to-use and supports synchronization but I need one for Linux.

OK.  So it seemed I had no other choices.  I had to go with lftp to download the whole files to my local disk then.

As usual, I logged on to the ftp server with lftp, switched to the directory I wanted (in my case it was public_html/), then issued "mirror" command.  Unfortunately, I got this error:

[Delaying before reconnect: 57]  

I then pressed ctrl+c and tried "ls" and this is what I got: 

[lftp 4.0.2] someuser@somehost ~ % ls
`ls' at 0 [Delaying before reconnect: 57]  

I was like #wtf (oops!).  I then turned debugging mode of lftp on.  With the error message I got from running lftp in debugging mode, I then found out (from Google) that if I ran into that mysterious problem, I should try:

set ftp:ssl-allow no

And it just worked....!  Now I can use both mirror and ls and assumably everything... ha ha

Note that as I am just a lazy nerd so I didn't go further to find out why we need to unset that ssl-allow property : P  I would greatly appreciate if anyone can tell me why : )

Recommended Softwares

Monday, July 26, 2010

external harddisk access error in macosx

I have a 1TB external harddisk connected to my MacMini via USB port.  I used it for:
  • Back up with Apple's TimeMachine
  • Back up other data
  • Store movies and softwares
Just today when I turned my machine on there was no disk icon shown in either Finder or Desktop.  I went to Disk Utility (a gui disk management for MacOSX) where I could still see my external harddisk listed.  I was so sure something really went wrong.

In Disk Utility, I tried clicking both Verify Disk button and Repair Disk button.  None of them worked as you can see from the screenshot:


This is frightening.  I then went to shell in Terminal and tried fsck like this:

$ fsck_hfs  /dev/disk1s2

And here is what I got:

** /dev/rdisk1s2 
** Checking Journaled HFS Plus volume.
** Detected a case-sensitive catalog.
   Invalid node structure
(4, 0)
   Invalid B-tree node size
(4, 0)
   Invalid node structure
(4, 0)
   Invalid B-tree node size
(4, 0)
** Volume check failed.

(Note that I knew it was /dev/disk1s2 from the command "diskutil list".)

The error message looks the same as what I got from Disk Utility.  I found later that Disk Utility's Repair Disk button made use of fsck which is why it yielded the same result.

I also tried attaching the harddisk with my Grml Linux laptop and mounted it as hfsplus.  I could see all the files there (and of course, I can access all files and even copy them to anywhere else so my ass is still safe).  Though, fsck.hfsplus in Linux did not work either.

After spending time researching about this issue, I can conclude that:
  • This is a rare case (assuming my harddisk is still in a good condition as I just recently bought it).
  • fsck is not the right tool to fix this special case.
  • All lead me to use Disk Warrior to fix the problem in my harddisk.  People claim it knows hfsplus file system more than fsck_hfs.
And it just worked!  Here are the steps it took:
  1. Open Disk Warrior
  2. Under Directory tab, choose your external harddisk device in a drop down list
  3. Click Rebuild and wait for a long while depends on how much damage and how large your harddisk is
  4. Once it's done, it will popup a report telling us what kinds of damages it detects and etc.  All we have to do is to click Replace button and wait for another while
  5. And that's it!
Good luck, everyone : )

Thursday, July 15, 2010

apple bluetooth keyboard model no: a1255

I got this second hand keyboard from a good friend at very cheap price.  It requires 3 AA-size battery.  On the first week. I was really shocked to see that its battery level went down so fast like around 5% to 10% everyday.  I thought this keyboard might be damaged or something.  However, after the battery level reached like 60%, it then started dropping very slow.  I think after 2 months, it is now still left 36% which is amazing!

Friday, June 25, 2010

grayscale monitor in macosx

I had been looking for a way to have an e-ink-like monitor that I can use with my computer.  The closest technology I had found was iLiad, an e-book reader which is well-known for its openness for hacking.  Of course, it is a linux-based. People have been able to run x window, xclock and etc on it together with using keyboard remotely.  Yes, it looked promising.

However, just today, I happened to find out Pixel Qi's hybrid monitor!  You can search it from Google.  There are many stories about it.  Rumour has it that this special monitor will be shipped around September to December this year (2010).  What is cool about its monitor?  It is the same quality as e-ink!  Its refresh rate is a lot higher than those e-ink out there like Amazon kindle or Sony Digital Reader that I am using.  It even supports colour (still e-ink!).

I will buy it for sure.  But, meanwhile, I have also found a way to turn everything on my screen to be grayscale by going to:
  • System Preferences
  • Universal Access
  • Display
references

Thursday, June 10, 2010

How to hibernate a mac

With new mac (current year is 2010), we can hibernate our macintosh computers by manipulating power management settings via this command:


$ sudo pmset hibernatemode 1

Then, the next time you "sleep" your mac, it will hibernate instead.  Make sure you wait until the white LED turns off which is when you can unplug the power cord.

I can confirm that this method works with MacBook Pro and MacMini (current year is 2010).

Note that this is not a hack as "pmset" is an official tool which you can read its manpage on your system via:

$ man pmset

You only need to set this property just one time and it will be set forever until you set it to something else later.

For those who hates UNIX's way of doing things for some reason (even though you are running MacOSX which is a UNIX system), you can try this:


And get a D from me.

Sunday, January 31, 2010

How to back up sms in Nokia phone on MacOSX

It's BluePhoneElite 2. You can search for it on google.
It comes with other useful functionalities too. Check it out!

Sunday, January 24, 2010

sony digital reader and macosx

In September 2008, I bought a Sony Digital Reader PRS-505, the latest version of Digital Reader from Sony at the time. It cost me around CAD$ 299 + (expensive canadian's) tax + shipping fee. I used it for a few weeks and then I stop. Yeah, I was just a lazy guy.

Regardless of my laziness, anyway, now I am getting back to it again. A bad thing about Sony is that they don't support any operating systems other than Windows. I am talking about software to manage my sony digital reader. But at least, there are some people working on this and give it away for free (to use? or free as in freedom? dunno...). There are 2 most interesting ones I have found:
  1. docudesk
  2. calibre
I read the review of the first one which is docudesk and think that it will not work for me. And, more importantly, it crashed when I invoked it all the time...???. So I choose calibre with the main reason, it supports RSS feeds. This means I can download articles from RSS feeds and read it from my digital reader. YAY!

Friday, July 10, 2009

how to mount macosx partition from linux

# mount -t hfsplus /dev/usb-sda2 /mnt/usb-sda2

But if you can't write into the mounted partition, you might have to disable journaling on this hfs partition by executing this command from your macosx on this drive:

# /usr/sbin/diskutil disableJournal /Volumes/mac-backup

Monday, June 1, 2009

disc got stuck in macmini

June 1, 2009

A dvd disc got stuck in my macmini last week.  I searched through the Internet and found nothing that could help me resolve the issue.  Fortunately, after rebooting my computer for around 10 times, the disc icon appeared on the desktop and I could properly eject it.  I am no kidding!


July 3, 2010

Today, my disc got stuck again.  But this time I could eject it properly by running this command in Terminal:

$ drutil eject

Saturday, October 25, 2008

Bluetooth Headset with Web Browsers and etc in MacOSX

It is weird that MacOSX does not have a good support for Bluetooth. I
have just bougth Sony Wireless Stereo Headset (Bluetooth) DR-BT22 from a
Sony Style store. My operating system version is MacOSX 10.5.5. By
default, this headset works well with Skype, X-Lite (an VoIP phone
software), iTunes (both local mp3 files and online radio), Quicktime, and
other standalone applications. However, I cannot listen to any online
music through any web browser (I tried Safari, Opera and Firefox). What
happened is that all the online music stopped working at all.

The problem is that I can't listen to any online music through any web
browser with my Bluetooth headset.

Luckily, I found this article:

http://macosx.com/forums/hardware-peripherals/296416-problems-using-bluetooth-headset-mac-audio.html

Here is the essential part of the article:
--------------------------------------------------------------------
First, 2 files needed,

a. a2dpcastAudioDevice.tgz:
http://www.coolatoola.com/a2dpcastAudioDevice.tgz

b. the updated a2dpcast: http://www.coolatoola.com/a2dpcast-0.3.zip

Then run terminal from Application/Utilities/terminal and install the
kernel extension for the audio device (replace DOWNLOAD_DIR with the path
to where your browser downloads stuff to) - you need your admin password
to do sudo:

1. cd /
2. sudo tar xfzp DOWNLOAD_DIR/a2dpcastAudioDevice.tgz --same-owner
3. sudo kextload /System/Library/Extensions/AudioReflectorDriver.kext


Copy a2dpcast to /usr/local/bin (replace A2DPEXTRACTDIR with the path to
where your extracted the downloaded a2dpcast-0.3.zip) - you need your
admin password to do sudo:

1. sudo cp A2DPEXTRACTDIR/a2dpcast-0.3/a2dpcast /usr/local/bin

Run a2dpcast with your Bluetooth address

1. /usr/local/bin/a2dpcast aa-bb-cc-dd-ee-ff 27

Keep a2dpcast running, leave the terminal open, then run whatever program
that you want, the sound will be streamed automatically to your headset.
Again, do not close the terminal until you have enough enjoying your
bluetooth headset
--------------------------------------------------------------------

To get your mac address of your Bluetooth Headset, you can go to:

Finder > Applications > Utilities > System Profiler > Bluetooth

There you find your headset model and the mac address of your headset is
there.

Hope that help!

Monday, September 29, 2008

TrueNetTalk and X-Lite on MacOSX

TrueNetTalk is an VoIP software provided by a telephony company in Thailand.  The package comes with a silly support that provides a client software that can be runned only on Windows.
VoIP is a standard protocol that does not depend on the client software.
A famous VoIP client is X-Lite which has a MacOSX version.
The trick is that you have to use "61.90.255.132".

Thursday, September 11, 2008

Apple Mail Font Problem with Microsoft Outlook and the Rest of the World

People have a lot of problems when they have to send emails from Apple Mail to the recipients that use Microsoft Outlook as their email client.  The problem is that the font that is shown to the recipients who use Microsoft Outlook will be Times New Roman 12pt regardless of whatever font you set with Apple Mail Preferences.

As I searched from Google, I found 3 interesting threads:


The #1 link says that the Font that we see in Apple Mail is shown correctly in Outlook only the signature part.

The #2 link says that we can use Stationery to accomplish the same result like #1 link but the problem is:

The #3 link says that we can use the Stationery only when we Compose a new email.  This means when we forward or reply the email, we can't use this method.

I have come up to a working solution which is quite easy.   I use Signature to solve this problem.

I created a signature with Verdana font like this:

>
> Hi _,
>
> <put content here>
>
> Thanks,
>
> unsigned_nerd
>

Then every time I compose a new email or reply/forward an email, the signature will show up and I put my email message in the "<put content here>".

It WORKS!

NOTE THAT we can use only Fonts that don't have a space in their name and exist in Windows.

For example, I can't use "Courier New" but I can use "Courier".

Sunday, August 17, 2008

how to burn cd image in mac os x

  1. Insert a blank disc.
  2. Start Disk Utility.
  3. From the File menu, choose Open Disk Image and select the ISO to be burned.
  4. In the list of volumes, you will now see an item representing the ISO file. Select it.
  5. Click the Burn button and follow the instructions.

Monday, August 11, 2008

.app downloaded from torrent site does not work in MacOSX


Sometimes you might encounter a problem that you double click .app file in your MacOSX and nothing happens.  Mostly, the .app you download from a torrent site.  Those torrent files sometimes don't have proper file permissions.

Try this:

# cd ActiveState\ License\ Installer\ \[Intel\].app/Contents/MacOS
# chmod +x License

Related Resources:
http://www.demonoid.com/files/details/1529559/6976998/