Archive for category Ask J.D.

Development tips and links for iPhone apps

Description: This is a an entry where I keep a list of misc development tips for iPhone app development.

SDK

XCode can’t find base SDK – Stack Overflow http://stackoverflow.com/questions/3034912/xcode-cant-find-base-sdkIf you can’t choose the SDK at the top left of x-code you have to first set the base SDK in the the project settings. Project -> Edit Project Settings. Then choose the “General” tab. At the bottom you can choose “Base SDK for all Configurations:”

Buttons

Improved Gradient Buttons

Improved Gradient Buttons http://www.iphone4gapp.net/improved-gradient-buttons.htmlThere are five built-in styles which can be seen in the image above, or you can manually set the gradient to any value you’d like. You can download the source codes from HERE (code.google.com)



Button creator (ZIP download)

Creating Screenshots

iPhone-Simulator Cropper (Curious Times)

iPhone-Simulator Cropper (Curious Times) http://www.curioustimes.de/iphonesimulatorcropper/I hacked this tool to take screenshots of my Apps running in the iPhone-Simulator. Before that, i took a screenshot (cmd+shift+4) and cropped the application screen with the help…

Useful classes and code in general

Presenting, Appirater - Arash Payan | Blog

Presenting, Appirater – Arash Payan | Blog http://arashpayan.com/blog/index.php/2009/09/07/presenting-appirater/Like most developers, I’m not thrilled with the way the App Store presents my apps. There are several problems, but in particular, I really don’t like the user review…


Fonts

Convert Mac OSX dfont files to ttf (TrueType)!

DfontSplitter « Peter Upfold

DfontSplitter « Peter Upfold http://peter.upfold.org.uk/projects/dfontsplitterDfontSplitter for Windows and Mac are open source programs which allow you to take Mac-formatted .dfont font files and convert them into TrueType TTF fonts, which Windows and…
Where does Mac OS X store fonts?

Where does Mac OS X store fonts? http://knowledgebase.insidersoftware.com/entry/41/Mac OS X stores fonts in several different places, which can make dealing with fonts a bewildering experience. Here are some of the locations…

, , ,

No Comments

Windows 7 ethernet goes to sleep! [solved]

Question. Hello! I have a problem with my network connection in Windows 7. Everything works great until the computer has been at rest for a while, then my ethernet connection drops out! As soon as I move my mouse or keyboard the ethernet comes back on. My laptop is NOT in sleep/hibernate mode when all this occurs! Please help!?

Answer. Great question :-) . Here’s a potential solution for your Ethernet woes ;-)

  1. Go to Control Panel -> Network and Internet -> View network status and tasks -> Adapter settings
  2. Double click on the network connection that is giving you problems. In this example the “Local Area Connection” which is the Intel82567LM Gigabit Ethernet adapter.
  3. Click the “Properties” button
  4. Click the “Configure” button
  5. Go to the “Power Management” pane
  6. Uncheck the “Allow the computer to turn off this device to save power”

Screenshot of Windows 7 power management pane for Ethernet controller

Hopefully that will do the trick for you!

PS one more Control Panel area to checkout:

Control Panel\Hardware and Sound\Power Options\Edit Plan Settings

And then the “Change advanced power settings” option, there you will find a plethora of power related settings that you may want to adjust, especially the “wireless adapter settings”:

Windows 7 ethernet power/performance options

, , , , , ,

No Comments

Windows 7 x64 driver for “ACPI TOS6205″ (bluetooth)

Question. from Laptop Nut:

Hello, I have a red Toshiba T135 Satellite laptop and I recently installed Windows 7 Ultimate on it. After running Windows update I still have ONE unknown device in device manager. It is called ACPI/TOS6205 and I don’t know what it is or how to get it working :-(

Answer. That is the bluetooth for your laptop. You should be able to get it working by installing the Toshiba bluetooth stack:

http://aps2.toshiba-tro.de/bluetooth/?page=download

Since you’re running 64 bit Windows 7, you’ll want the driver version: 7.10.16  Windows XP x64 / Windows Vista x64 / Windows 7 x64 (or whatever the latest equivelant it). The filename will be BT-stack-64bit.zip

Hope this helps!

PS You have a cool laptop: nice battery life, decent performance and good looks!

UPDATE from Laptop Nut:

thanks that worked perfect! I like the laptop too only wish it had a nicer screen…

, , ,

No Comments

SOLUTION: Getting Broadcom Crystal HD decoder to work in Windows 7

NOTE: this is a first draft of this post, more info and some screenshots to be added.

After installing the Broadcom card and drivers I had a difficult time getting MKV x264 video files to play.

Solution:

  • Disable all “internal filters”
  • Set external filter to Broadcom

Applies to: GOM Player, Media Player Classic Home Cinema

Basic info to the Broadcom card itself:

XBMC & Broadcom Bring 1080p Decode Upgrade to ill-equipped netbooks, nettops, Apple TVs

XBMC & Broadcom Bring 1080p Decode Upgrade to ill-equipped netbooks, nettops, Apple TVs http://www.anandtech.com/show/2898In one of my last articles on ION I talked about XBMC being one of the best applications for the platform. It delivers a better UI for watching downloaded content than Windows… And today it just got incredible. Thanks to the efforts of Scott Davilla, the XBMC developers and Broadcom there’s now full support for the Broadcom Crystal HD decoder (BCM970012) in all versions of XBMC. The code has been merged into XBMC as of this morning and will be available in the next release of the project.

Links that were helpful in finding that solution:

EeeUser Forum / B202 + Broadcom Crystal HD=1080P

EeeUser Forum / B202 + Broadcom Crystal HD=1080P http://forum.eeeuser.com/viewtopic.php?id=84273Just installed the Broadcom Crystal HD card on the B202.The Verdict: Excellent playback in both 720P and 1080P through XBMC (activating the Broadcom Crystal HD rendering [...] read on for Broadcom -> Windows Media Center tips…

Broadcom HD Decoder - MyHPMini.com

Broadcom HD Decoder – MyHPMini.com http://myhpmini.com/forum/viewtopic.php?f=59&t=3819To get MPC-HC to work with 1080, uninstall ALL additional video codecs (FFMPEG and everything else)…

forum.thinkpads.com • Information

forum.thinkpads.com • Information http://forum.thinkpads.com/viewtopic.php?f=30&t=83880I’m using MPC (Media Player Classic) for playing HD material. If you go to play->filters during HD playback, you should see Broadcom listed as a Codec. Otherwise, something is wrong with the driver installation [or your filter/codec selection].
DXVA Support in MPC Home Cinema

DXVA Support in MPC Home Cinema http://mpc-hc.sourceforge.net/DXVASupport.htmlModern graphics card offer the possibility to decode partially or completely a video stream using DirectX Video Acceleration (DXVA), in order to reduce CPU usage dramatically.… Unfortunately the MPC-HC decoder only supports the “bitstream mode” at this stage, which means that only the most recent graphic cards are supported : nVidia series 8(9)xxx for…

[end]

, , ,

No Comments

Upgrading/replacing a parity drive in unRAID

I’m preparing to upgrade my 2TB WD Green parity drive to a 2TB WD Black parity drive on my unRAID system. I did a lot of searching for resources on this topic and while there are some great forums posts out there, they are sometimes hard to find. So here is a consolidated list of useful links for parity drive replacement:

NOTE: many thanks to all the helpful and supportive unRAID users out there, the credit for all of this awesome info goes to them!!!

Steps to upsize parity drive?

Steps to upsize parity drive? http://lime-technology.com/forum/index.php?topic=2280.msg17513#msg17513Hi All,I’ve a system with 6x 750 GB and 3x 500 GB drives; just received new 1 TB drive I would like to use as the parity drive.I think I understand the steps to replace the 750 GB parity with the new 1TB parity drive, but hoping for someone to tell me the following steps are correct…

1  – Ran parity check last night, no errors.  This step not really required, but a sanity issue
2  – stop the array
3  – go to devices tab, remove parity drive from configuration
4  – power down system via “powerdown” button
5  – remove existing 750 GB parity drive, replace with new 1 TB drive
6  – power on unraid
7  – go to devices tab, assign 1TB drive as parity drive
8   - start the array with the “start” button
9  – wait for parity rebuild to complete
10 – power off array and system
11 – install 750 GB drive removed in step 5
12 – power on machine, start the array
13 – go to devices tab, add the new/old 750 GB as a data disk
14 – start the array – disk will be formatted and added to the array.

NEW: jump straight to step-by-step  photos of the entire process!

Answer from Joe:

You’ve done your homework.

The steps you listed look good.  When you go to add the 750Gig drive back into the array as a data disk you will probably also need to check a checkbox indicating you wish it to clear and format the disk.

Once that checkbox is checked, press the “Start” button.

The rest is just a matter of time to let it build parity on the new parity drive, and then to clear and add the old-parity/new-data  disk.

Upgrading unRAID parity drive http://lime-technology.com/forum/index.php?topic=4732.0I’m running 5×1TB at the moment. When I want to start moving to larger drives, is it a simple matter of stopping the parity drive, replacing it with a larger drive and syncing?…

Answer by prostuff1:

unRAID will only see one parity drive as it will be the one assigned to the parity slot on the Devices page.

My suggestion when upgrading parity is to:
1. Run preclear on the drive a could of times (not necessary but will stress test the drive to find early failure)
2. Take out the old party by disconnecting it
3. Hook up new parity drive and assign it as parity once the computer is started back up
4. Let parity rebuild and then run a check on it to make sure nothing is going funky.
5. Shut down the server and hook the old parity drive back up
6. Run preclear on the old parity drive and let it complete
7. Assign the old parity drive to a slot and your all done.

UnRAID Manual – UnRAID (Disk_configuration_changes) http://lime-technology.com/wiki/index.php?title=UnRAID_Manual#Disk_configuration_changesHere are the normal configuration changes you can make… You replace a single disk with a bigger one…

The end, for now!

, , , , , ,

No Comments

SOLUTION: Force Firefox to autofill username and password!

Q. Some websites (like Chase, Gmail, WordPress) won’t autofill my login credentials even though I saved them. What’s up with that?!

A. Good question. Sites can specify autocomplete=”off” to prevent browsers from filling in login info. This  is what is causing your  problem, thought it is meant to be a beneficial security feature to prevent someone from logging into with your saved/remembered info. However, it can be really annoying if you have to start typing  your username password in each time! It is especially annoying if you’re using an autologin script (b/c that script won’t work if the login info isn’t autofilled).

So, here’s how to fix it by making FireFox ignore the “off” setting:

WARNING: after this modification, anyone using your browser may have your login info filled in if they visit a site where you’ve saved the info!

use your favorite text editor to edit the nsLoginManager.js fil located in C:\YOUR FIREFOX FOLDER\components\ folder (or C:\FirefoxPortable\App\Firefox\components\ for portable firefox)

Locate the following lines of code (use the find feature of your text editor), and comment out three lines by adding // (double slash) in front of the lines.

Before the change (honors autocomplete “off” setting)
if (element && element.hasAttribute(“autocomplete”) &&
element.getAttribute(“autocomplete”).toLowerCase() == “off”)
return true;

After the change (always sets autcomplete to “on”

// if (element && element.hasAttribute(”autocomplete”) &&
// element.getAttribute(”autocomplete”).toLowerCase() == “off”)
// return true;

Screenshot showing the lines commented out

More info…

Where I first heard about this solution:

Fix Firefox Does Not Save, Store or Remember Password On Some Sites Permanently for Always Auto-Complete » My Digital Life http://www.mydigitallife.info/2008/08/16/fix-firefox-does-not-save-store-or-remember-password-on-some-sites-permanently-for-always-auto-complete/Firefox web browser has built-in password manager that able to save, store or remember user name, ID and password credentials to auto-fill and auto-complete the login or logon…

The opposite problem:

Forcing Firefox to obey autocomplete=”off” for password fields | VerySimple http://www.verysimple.com/blog/2007/03/07/forcing-firefox-to-obey-autocompleteoff-for-password-fields/In particular, Firefox will *always* populate certain password fields. There is seemingly no way to tell Firefox not to fill in a field if it really wants to do so. This can be a…

, ,

No Comments

Caricature drawing, two iPad caricature articles

YouTube – iPad Caricature Demonstration with Art Studio and Pogo Sketch (with Digital Artist Angie Jordan) http://www.youtube.com/watch?v=RDXe_wsk9bc&feature=youtube_gdataiPad Caricature Demonstration with Art Studio and Pogo Sketch (with Digital Artist Angie Jordan).
iPad Caricature Video Demonstation – Part 1 – Digital Caricatures by Angie Jordan http://blog.angiejordan.com/2010/04/ipad-caricature-video-demonstation-part-1/On Saturday, I drew my first iPad Caricatures at the device’s launch. After I posted pictures here and on Facebook, I was swarmed with emails, Facebook messages, and phone…

Fast Icon - Quality Custom caricatures from photos for you.

Fast Icon – Quality Custom caricatures from photos for you. http://caricatures.fasticon.com/Use it as avatar for your Blog or Website. Use it as Buddy Icon in your Aim. Use in your Business Card. Use it in your Logo. Use it as virtual auctioneers for your eBay auctions…

How to Draw Caricatures: The 5 Shapes | Tom's MAD Blog!

How to Draw Caricatures: The 5 Shapes | Tom’s MAD Blog! http://www.tomrichmond.com/blog/2008/02/14/how-to-draw-caricatures-1-the-5-shapes/This is the first of a series of articles I will post here on The MAD Blog about my theories, methods and processes concerning how to draw caricatures. A lot of this information…

How to Draw Caricatures - A Complete Guide

How to Draw Caricatures – A Complete Guide http://www.drawingcoach.com/how-to-draw-caricatures.htmlIf learning how to draw caricatures is what you’re after, then you’ve come to exactly the right place. Caricatures aren’t necessarily hard, but if it’s your first time trying one…
Process Junkie: Caricature Process Page (Adobe Illustrator)

Process Junkie: Caricature Process Page (Adobe Illustrator) http://processjunkie.blogspot.com/2005/03/caricature-process-page-adobe.htmlA bunch of cartoonists posting photos of themselves to be caricaturized by their peers, lots of fun. Here’s an updated version for all of you process lovers out there.

No Comments

Pairing Saitek A-250 bluetooth speakers with iPhone/iPod touch

Today I paired my old Saitek wireless speakers with my relatively new iPod touch.  I’d paired the Saitek to a PC before, and the iPod to a different wireless speaker, but this was my first time with iPod + Saitek.

Here are two links that were helpful to me, one on iPhone/iPod Touch bluetooth and one on the Saitek (and how to pair).

NOTE: these instructions are for the iPhone’s and iPod touch models that have built in bluetooth.

Hands on with stereo Bluetooth and the iPhone 3.0 update [Macworld]

Hands on with stereo Bluetooth and the iPhone 3.0 update [Macworld] http://www.macworld.com/article/141249/iphonea2dp.htmlYou pair an A2DP accessory with your iPhone or iPod touch the same way you do a Bluetooth phone headset. One the iPhone or iPod, you launch the Settings app and go to General…

Here’s an excerpt from the 2nd article, altered to be specific to the Saitek A250:

On the iPhone or iPod,  launch the Settings app and go to General -> Bluetooth. Make sure Bluetooth is On, and you’ll see the “searching” indicator next to Devices. Then you put your Bluetooth accessory into pairing mode; for most accessories, this involves holding down a connection button (the Saitek forward/reverse icons) until an LED flashes blue and red (or in this case, one of the LCD’s icons flashes faster). Tap on the accessory’s name  (the Saitek A-250 is called “DM03 sink”) when it appears in the Devices list on your iPhone or iPod, and in a few seconds it should connect automatically. (The Saitek A-250 requires a passcode “8888″ when you connect; a keypad will appear on the iPhone or iPod’s screen.)

Stream Audio with the Saitek A-250 Wireless 2.1 Speaker System [Geek.com]

Stream Audio with the Saitek A-250 Wireless 2.1 Speaker System [Geek.com] http://www.geek.com/articles/labs/stream-audio-with-the-saitek-a-250-wireless-21-speaker-system-20060727/The Saitek A-250 Wireless 2.1 Speaker System is a lightweight streaming audio speaker system with a high quality sound and a styling design…

Here is excerpt from the article, edited to be appicable to the iPhone/iPod:

Saitek A-250 passcode/PIN Number

“The passcode is 8888, but that won’t help unless you put the A-250 in pairing mode.

If you want to use your onboard Bluetooth[...] try the following”
1-Turn on the A-250
2-Initiate a Bluetooth device search from your iPhone/iPod. You should pick up a Headset “DM03-SINK” . That’s the A-250.
3- Now put the A-250 in device pairing mode, by pressing the Back (||) [forward/reverse] buttons at the same time for about 3-4 seconds. Pairing mode will be indicated by the flashing radio signal icon doubling in frequency.
4 – While the A-250 is in pairing mode, initiate a connection process from your iPod/iPhone for the DM03-SINK headset.
5 – when the PIN window opens enter “8888″ and you should get a connection.
6 – once you pair it with your iPhone/iPod, all the audio will play through the speakers
NOTE 1: you have to control volume ON the speakers, the iPhone/iPod won’t be able to adjust the volume
NOTE 2: the pause/play button on the speaker works wirelessly with the iPhone/iPod to pause/play, the forward/backward buttons do not work.

, , , , , ,

1 Comment