Category: Miscellany


So… free listings on ebay. It’s an experiment. I’ve listed some of these items in the past and they haven’t sold. I was kind of glad they didn’t as I listed them all at £0.99 and I’d probably have lost money on the auction just on postage costs. Now I don’t have the space and the models I want to keep and display have been kept and displayed. So here’s what’s currently up on ebay from me:

DizietEmbless Ebay Items

The swimsuit leela model really is rare.  The eva model is the only one of it’s kind I’ve ever seen so I believe they are rare.  It was found in a comic/anime store in the middle of Amsterdams red light district.  Somewhere near a church by a canal if memory serves.  It was found along with another Eva model that was huge, which I’m keeping.  In part because I like it and also because it wouldn’t resell as some of the guns have gone AWOL over the last 10 years.

The experiment here is that it makes sense that lower start prices encourage people to bid, so if you start at 0.99 by the time it gets to the price you wanted to list it at (say 10.00) you’ll have a few people competing to win it and the price would be higher than if you listed it at 10.00 to start with.  This is true and it works.  So setting reserves can help, but everyone sees reserve not yet met so might be put off challenging just to find the seller won’t sell.  Also reserves have to be set over £50 so it’s not practical for any of these items bar the PSP.  In the promotion though, to get a free auction, you couldn’t use a reserve.  So I’ve listed them at reasonable starting prices from the off, which is still free.  If they sell great.  If they don’t I might relist at 0.99, I might find a local store to take them, or I might just open the boxes and play with the toys like my inner 14 yr old wants me to.

Some quick math about the app store.

If we image the following, slightly unrealistic, scenario:

1) That I’d like to recoup the cost of my Mac.
2) That I’d like to recoup the cost of the developer program for 1 year.
3) That I’d like to draw, retrospectively, a moderate salary for the time it took which is let’s say 3 months.

Then we have:

Mac : £1700
Developer Program : £59
Salary Per Month : £1500
Total : £6259

Apple take 30% of the Applications retail cost so I need to inflate that sum to arrive at the total value of sales such that I receive that much in return:

A * 0.70 = £6259
£6259/0.70 = A
A = £8941.50

If we assume I price it at the lowest possible price which is £0.59 then we need to sell ~15200 copies. :P

Should have read the Gamekit docs.

Damnit. Got everything working and then got errors during the first tests:

2010-10-19 18:34:14.969 Cooking Companion[1369:207] AGPSessionBroadcast failed (801c0001)

It would appear that I’m limited to 95kB. Sadly I am trying to send:

(gdb) print (NSUInteger)[data length]
$4 = 387339

I would expect that 381000 bytes of that are my UIImage data. So I have a few choices. Firstly I’m going to stop storing full sized images but limit them to a more conservative 640 pixels tops. This seems reasonable for the iPhone 4′s 960×640 and the iPad’s 1024×768 resolution. So that restricts it to:

(gdb) print (NSUInteger)[data length]
$5 = 895035

Right. Odd isn’t it? Run my images through this function to limit the size:


	CGSize size = selectedImage.size;
	CGFloat ratio = 0;
	if (size.width > size.height) {
		ratio = 640.0 / size.width;
	} else {
		ratio = 640.0 / size.height;
	}
	CGRect rect = CGRectMake(0.0, 0.0, ratio * size.width, ratio * size.height);

	UIGraphicsBeginImageContext(rect.size);
	[selectedImage drawInRect:rect];
	recipe.photo = UIGraphicsGetImageFromCurrentImageContext();
	UIGraphicsEndImageContext();

And they get much larger. A quick test using an empty view based application with a jpeg from my digital camera:

- (void)viewDidLoad {
    [super viewDidLoad];

	UIImage *jpeg = [UIImage imageNamed:@"P1040367.jpg"];
	NSData *original = UIImagePNGRepresentation(jpeg);

	CGSize size = jpeg.size;
	CGFloat ratio = 0;
	if (size.width > size.height) {
		ratio = 640.0 / size.width;
	} else {
		ratio = 640.0 / size.height;
	}
	CGRect rect = CGRectMake(0.0, 0.0, ratio * size.width, ratio * size.height);

	UIGraphicsBeginImageContext(rect.size);
	[jpeg drawInRect:rect];
	UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
	UIGraphicsEndImageContext();
	NSData *resized = UIImagePNGRepresentation(image);
	NSLog(@"Finito");
}

From debugging:

(gdb) print (CGSize)[jpeg size]
$2 = {
  width = 2448,
  height = 3264
}
(gdb) print (CGSize)[image size]
$3 = {
  width = 480,
  height = 640
}
(gdb)

So it gets resized. What about the data length?

(gdb) print (NSUInteger)[original length]
$4 = 10572117
(gdb) print (NSUInteger)[resized length]
$5 = 639538

What’s interesting here is that the original jpeg is only 2.4 MB yet my NSData representation is 10MB. Not a good thing to transmit, it also makes me think the images I was using earlier were small and I was unwittingly making them much larger.

So… overclocking.

My main system is a Q6600 with 4GB of 400Mhz DDR2 (e.g. 800Mhz). This is slightly overclocked to 2.64Ghz (lit. 2637.7Mhz) and 439.6Mhz for the RAM. It used to be higher but I think I burnt out the ram and this new batch doesn’t seem to like it. I did some benchmarks originally against fallout 3 and to be honest there wasn’t really anything in it, but it was stable so I left it.

Now… graphics. That runs at:

Core : 750Mhz
Memory : 900Mhz

It’s a 4870, a vapor if I remember correctly. So benchmark time, fallout 3 at:

1280×800
4xAA
8xAF
Everything else high.
View Distance and LOD Maxed.
VSync On
HDR On

Hard to say as there is no benchmark but a wander around outside megaton dropped to 45 approaching the front door from the back, most of the time it was a solid 60.

Core : 801Mhz
Memory : 950Mhz

Again hard to say but in the same perimeter walk it sat at 64-65. Although the frame rate plummeted the same amount when pulling around to the front of megaton where there is quite a sizable vista to draw. I’ll try some HL2 benchmarks at silly settings or something at some point.

Delicious Library and Me

I’ve been cataloguing a lot of stuff that I have with a view to selling it. Having got the new mac I checked to see if my code for delicious library still worked, which it did. Since then I’ve realised that what I also need is a searchable index for the ammo box type things full of CD’s. Currently they’re in there with the CD in the front of the slip and the inlays in the back. A lot of these are scanned in already or I’m scanning them in as I go.
Delicious Library has a ‘location’ field which is blank by default and only shows up when you edit an item. I needed to set this for things as I went so I created this small applescript:

-- Menu Title: [3] "Set Location"
-- Menu Keyboard Shortcut: command-l
-- Menu Path: [3]

-- Copy and paste everything into Script Editor (use spotlight to find it).
-- Then save to home/Library/Scripts/Applications/Delicious Library 2
-- You can edit the menu keyboard shortcut to be whatever you want.

tell first document of application "Delicious Library 2"
set selectedItems to selected media
set itemsRef to a reference to selectedItems
repeat with mediaItem in itemsRef
display dialog "Enter location:" default answer "X.X"
set newLocation to text returned of result
set location of mediaItem to newLocation
end repeat
end tell

Which does what I want. After I’ve scanned an item in I can hit apple-l and type in the location. Much much faster.

Updating to the iPad err update.

So all the code is now in place and functionally it should be the same as the iPhone version now, yet I discover that somewhere along the line I broke the code to actually add ingredients. I had to go back to code from August 17th to find working routines. The curse of cut and paste strikes, somewhere along the way of refactoring the code I broke a call from the ingredient view back to the recipe table view which meant that when the updates finished the sanity check that it does failed. It checks, when exiting edit mode, that the number of rows in a section matches the number of rows before the updates +/- any rows inserted/deleted.

In other news I finished FFXIII yesterday, the worst story of any FF game I’ve played although I never did finish FFIX. That might be slightly unfair, the story may have been brilliant but such was the story telling that it made very very little sense even for FF.

Onto Brutal Legend now, which appears to be like playing an Epic Metal Rock Video which is to say it’s a lot of mindless Fun! Although the reason for playing through all these unfinished games is now moot. I was finishing them to trade them in and stash up the points on a game gift card. However I’ve discovered I can only spend them in store and thus can’t use them against my online Kinect pre-order. Ho hum.

I’m still here. A smorgasbord of stuff.

It’s been a while since I posted anything so this is a bit of a mish mash update.

The holiday in Madeira was excellent. In particular the Monte Palace gardens which included an excellent exhibition of minerals, I bought the book and one on madeiran cooking too. Although the latter was bought at the airport as it was rather too expensive elsewhere. The minerals book is pricey but has excellent photos and can’t be found anywhere else. Check the binding of it though as the first one I got was degraded. They swapped it and apologised profusely though with no hassles. Photos are up on flickr. I might post really heavily edited highlights sometime.

Rewriting my code for the iPad has taken a bit longer. Mostly due to design decisions I made when coding it for the iPhone. Particularly the parsing of messages between objects, changing the way views are presented (image pickets etc), and realising where NSNotificationCenter would be more appropriate than delegate protocols. Progress is steady now though.

Laughs in the Park was excellent with Eddie, Dylan Moran and Reginald D Hunter. Took my dad along to it and a great time was had. All were funny with Eddie seeming to relish the telling of his roman material amongst roman ruins and Dylan Moran just being on fire. Hunter made some excellent observations/jokes too. All in all wonderful stuff. A friend of mine even bought out some VIP passes which was a pleasant change from the rather cold field during the breaks.

Flew up to Aberdeen on Sunday to help a mate with the rather horrible task of sorting out her fathers house since his passing in February. Driving back south tomorrow. Looong drive time.

Also just watched the girl with the dragon tattoo. Excellent adaptation of the book, although it shied away from blomqvists promiscuity a bit which I feel is important in lending the relationship with slander more depth.

A view of a dying way of Fen life.

Nice audio slideshow.

The Eel Man of the Fens

and decides to announce it as a Doctor Who fanfic rather than a boring paper (via Metafilter):

Doctor Who and the Silver Spiral

Playing with photoshop.

It’s all well and good making apps that work but you realise how dull they look. That’s the key difference between what I have right now and existing apps in the store. Look and Feel. To fix that we need graphics. I’ve been toying around with making my own. Like:

Bowl

Bowl


The background is a canvas kind of paper texture thing from a tutorial I found. Can’t remember where as the image was already on my hard disk. It’ll do. The original is 1920×1200 and it’s getting cropped and shrunk down to 128×128 in the final version anyway.

Powered by WordPress | Theme: KLG based on Motion by 85ideas.