June 19, 2013

Samsung Pro 840 SSD requires trim on Mac OSX

When I first tested my new 256 GB SSD it had about 500 MB/s read/write. After about 5 months the rate was down to 75 MB/s write and 150MB/s read. After I enabled trim with Chameleon SSD optimizer it went back to 500 MB/s. So it appears that Samsung’s controller does not do enough garbage collection in OSX and trim really does need to be enabled to maintain performance.

Model Name: MacBook Pro
Model Identifier: MacBookPro8,1
Processor Name: Intel Core i5
Processor Speed: 2.3 GHz
System Version: Mac OS X 10.7.5 (11G63b) (Lion)

Samsung SSD 840 PRO Series:

Capacity: 256.06 GB (256,060,514,304 bytes)
Model: Samsung SSD 840 PRO Series
Revision: DXM04B0Q

January 31, 2012

Chromosome Explorer fixes for Firefox, IE, and Safari

For the aroma affymetrix chromosome explorer package, it currently only works on Firefox 3.

I don’t know if this has been fixed already, but I found a simple solution (hack) to allow Chromosome Explorer to be used with Firefox 9.01 IE7, and Safari 5. ( I have not tested other versions.)

For some reason, the order of loading the js script files is different.. so the explorer obj is undef when onLoad is being defined.

So if you init the explorer obj here first, it seems to work

###############
edit
reports/includes/js/ChromosomeExplorer3.1/main.js

remove line 1
var explorer = new ChromosomeExplorer();

in each dir for data edit (eg)
reports/PDX/cbs/ChromosomeExplorer.onLoad.js

add to the top

var explorer = new ChromosomeExplorer();

############

in addition, for IE

Edit reports/includes/js/domUtils.js

When setting the contents of the span, FF will interpret HTML
while IE will use plain text.

Change the method to set as HTML

function updateLabel(id, text) {
var obj = document.getElementById(id);
//DOM_setInnerText(obj, text); /* From Webcuts.js */
obj.innerHTML = text;
}

Keith Ching

November 8, 2011

Updated to iOS 5.0.1 beta1 and beta2 and iPhone 4S still unlocked. Battery fixes.

Was having killer battery problems with 5.0 off and on for a week but I think it was from the Exchange Calendar. I used iTop to check the CPU usage. Its normally 5-10%, but I was seeing 70%+ constant. I started turning stuff off.. notifications, airplane mode, wifi.. but still at 70%. I saw a process calaccessd and decided to delete my exchange calendar. CPU usage dropped down to 5% right afterwards. I just added the calandar back and no problems. I can’t confirm that was the cause since I’ve been unable to get the phone to run the CPU up again. Whereas it was occuring at least once a day, now it doesn’t happen at all. And now that i’ve updated to 5.0.1, I don’t know if it will ever happen again.

October 30, 2011

Upgrading MacBook Pro with 1.5 TB drive

MacBook Pro with 1.5 TB drive

MacBook Pro with 1.5 TB drive

I just bought a early 2011 MacBook Pro 13″ and needed more space than the 320GB drive it came with. So i bought an external 1.5 TB Seagate FreeAgent GoFlex USB3.0 drive for $119 from BestBuy.
I first plugged in the external drive and reformatted it and imaged the internal drive to the external drive using Carbon Copy Cloner.

I opened up the MacBook and took out the internal drive. The external Seagate drive was easy to open with a flathead screwdriver. After you remove the USB3.0 adapter module ( could be handy as it fits directly onto the drive ), the case is just a snap-tite plastic shell. You will basically break the case, but it has no electronics in it. The drive has some screws to hold it in position which I removed. The drive is also covered with aluminum tape and a metal guard which i also removed. When I removed all that stuff I realized I had made a mistake. The 1.5 TB drive was about TWICE as thick as the internal drive. There’s no way this monster is ever going to fit. Sure enough, it protrudes out way too far and you can’t screw the bottom panel of the Macbook back on.

However, the usual hard drive is secured in position by four screws on the ends of the hard drive which sit in rubber seats to prevent the drive from moving around. The fit was going to be so tight, i figured that the new drive does not need to sit in the rubber seats because there will be no space for moving around. I removed the seating screws so that the drive can sit flush up against the aluminum. The drive was now at the same height as the battery. I didn’t want any drive electronics to touch the casing, however since the regular internal drive is suspended a few mm above that surface. The external drive actually had a sheet of insulator plastic along the bottom of it so i used that to cover the bottom of the drive. So the rubber seats are still there, there’s just no screws in the hard drive. The fit is snug however and the drive will not shift up and down nor in and out. However, in the axis of left to right ( from the edge of the case to the battery ) it can shift about a cm. The external case came with some rubber seats, so I just used one of these to plug up the empty space between the case edge, pushing the drive flush against the battery. Putting the bottom panel back on did not require any extra force or pushing. The plate seems to fit normally as far as i can tell.

The drive seems to function normally, but since it really looks like two drives in one i’m sure it probably sucks more battery than a regular drive. Since the spec was a USB external drive, I don’t think it will draw more current than the USB port provides, so I don’t think that is a concern.

BTW. This drive is quiet (about the same as the internal) and doesn’t vibrate all around like if you put a 7200rpm drive in.

other discussions

October 21, 2011

Off contract iPhone4S unlocked

Apparently its also true that an AT&T iPhone4S bought off contract will say that its unlocked when you plug it in to iTunes. Even if the AT&T SIM is inside. You can replace the SIM with T-mobile and seems to work ok.

October 20, 2011

AT&T prepaid on locked iPhone4

Apparently its true, you can use the AT&T GO prepaid SIM in a locked iPhone4.
You will not be able to activate it online using their website. You have to call the
prepaid service line (800) 901 9878 and ask them to activate the SIM. When asked for
the IMEI number for the phone, I said I didn’t have it yet. Rep said someone would call
back later. Subsequent followup call did not ask for it. Only wanted to make sure I had
added money to the account.

iPhone4S sold out from many Apple stores today.

Reservation system showed no available phones from any carrier, color, or type for
UTC
Fashion Valley
Carlsbad
Valley Fair
Mission Viejo
Otay Mesa
Temecula
Palo Alto
San Francisco

@3am this morning

after that i stopped checking..

October 13, 2011

The device is not eligible for the requested build

When updating to iOS 5.0 if you get this error, check your /etc/hosts file for a gs.apple.com entry.
comment out with a #

November 26, 2008

Using Air Sharing to transfer videos from Cycorder

Air Sharing from Avatron Software is a program to easily transfer files to/from an iPhone to a Mac or PC as if it were a mounted disk. Cycorder is an iPhone app to capture videos.

To transfer videos from cycorder to your PC, you have to scp them to your PC.
(they are stored in /var/mobile/Media/Videos )
ie. from your PC, scp iphoneip:/var/mobile/Media/Videos/*.mov .

However, you can have the videos automatically show up in air sharing by creating a
Videos folder in the air sharing Documents folder and symlinking it to /var/mobile/Media/Videos

First find where the air sharing Documents folder is:
on my iPhone, it is
/var/mobile/Applications/814EA91C-D99A-44C2-9643-8EBDF49E1088/Documents

create a Videos folder using air sharing. the final path is then:
/var/mobile/Applications/814EA91C-D99A-44C2-9643-8EBDF49E1088/Documents/Air\ Sharing/Videos

Find the folder where cycorder writes the video files:
/var/mobile/Media/Videos

delete the Videos directory.

From /var/mobile/Media, symlink it to the air sharing videos directory

ie. ln -s /var/mobile/Applications/814EA91C-D99A-44C2-9643-8EBDF49E1088/Documents/Air\ Sharing/Videos Videos

it should now look like this:

KillerZ:~/Media mobile$ ls -l
total 4
drwxr-x— 4 mobile mobile 136 Nov 23 16:28 DCIM/
drwxr-xr-x 2 mobile mobile 68 Nov 23 16:18 Downloads/
drwxr-x— 3 mobile mobile 136 Nov 23 17:05 Photos/
drwxr-xr-x 2 mobile mobile 68 Nov 23 16:36 PublicStaging/
lrwxr-xr-x 1 mobile mobile 90 Nov 26 21:30 Videos -> /var/mobile/Applications/814EA91C-D99A-44C2-9643-8EBDF49E1088/Documents/Air\ Sharing/Videos/
-rw-r–r– 1 mobile mobile 0 Nov 23 16:17 com.apple.itunes.lock_sync
drwxr-xr-x 6 mobile mobile 204 Nov 23 16:36 iTunes_Control/

Now when you capture a video using cycorder, you can just drag out the clips using air sharing.

September 8, 2008

vnc

vnc-4_1_2-x86_win32.exe