The iPad screen size is 1024-by-768-pixel
1 Comment » by Jon Hibbins on 6 October 2010
Filed under: iOS, iPad, Platform, Uncategorized
Yup, i’m sure i’m not the only person who wanted to know the iPad screen size is 1024×768 pixels
1 Comment » by Jon Hibbins on 6 October 2010
Filed under: iOS, iPad, Platform, Uncategorized
Yup, i’m sure i’m not the only person who wanted to know the iPad screen size is 1024×768 pixels
No Comments » by Jon Hibbins on 3 October 2010
Filed under: Code, HTML, OSX, PHP, Platform, Quick Tips, Web
Because it’s painful, here’s how I did it on OSX :
2) Install it
/Android/android-sdk-mac_86 cd /Android/android-sdk-mac_86/tools
3) Setup the Emulator
./android4) Run the Emulator
./emulator -avd AndroidTest -partition-size 128
5) Setup the Hosts file
Set the device to read-write
./adb remount ./adb pull /etc/hosts
Edit the hosts with the following
nano hosts 10.0.2.2 localhost ./adb remount ./adb push hosts /system/etc
Congratulations you should now be able to browse the hosts
No Comments » by Jon Hibbins on 15 April 2010
Filed under: iPhone, Quick Tips
The iPhone does have a caps lock mode built in, but it’s disabled by default. To enable it, go to Settings > General > Keyboard and turn on “Enable Caps Lock.” Now whenever you need to type in all caps, simply double-tap the shift key to engage caps lock.
No Comments » by Jon Hibbins on 14 January 2010
Filed under: Platform, Quick Tips, Windows
If you use Windows Live Messenger a lot, you’ll have noticed that the icon now resides on the taskbar, where you can easily change status and quickly send an IM to someone. If you prefer to keep Windows Live Messenger in the system tray, where it’s been for previous releases, just close Windows Live Messenger, edit the shortcut properties and set the application to run in Windows Vista compatibility mode.
No Comments » by Jon Hibbins on 17 March 2009
Filed under: Code, iPhone, Objective-C, Platform, Software Development
Apple has announced the iPhone 3.0 software update which includes an updated Software Development Kit (SDK) with over 1,000 completely new APIs.
Here are a few highlighted features:
And yes, I am running it (I have an Apple Developer Account), and so far I found one bug (on safari re-highlighting the address bar can sometimes make the address disapear) and an un-announced fearure (the call history list is now much more verbose)
1 Comment » by Jon Hibbins on 12 February 2009
Filed under: .NET, C#, Code, OSX, Platform, Quick Tips, Software Development, Unix/Linux, Windows
If you need to access SVN remotely, by default it runs on port TCP port 3690, so you need to make sure it is open in your firewall etc.
1 Comment » by Jon Hibbins on 17 December 2008
Filed under: Code, iPhone, MSSQL2005, MSSQL2008, Objective-C, Software Development, SQL Server, TSQL
If you like to know what’s changing on your SQL Server then the following code creates an audit table and the associated trigger for logging the changes
The Audit Object Table
CREATE TABLE [dbo].[AuditObjects]( [EventID] [INT] IDENTITY(1,1) NOT NULL ,[EventData] [xml] NULL PRIMARY KEY CLUSTERED ( [EventID] ASC ) WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY]
And the associated Trigger
CREATE TRIGGER [TriggerAuditObjects] ON DATABASE FOR DDL_DATABASE_LEVEL_EVENTS AS INSERT INTO [dbo].[AuditObjects](EventData) SELECT EVENTDATA() GO ENABLE TRIGGER [TriggerAuditObjects] ON DATABASE
You can now use xpath queries to analyse the data
No Comments » by Jon Hibbins on 5 December 2008
Filed under: Code, Database, iPhone, MSSQL2005, MSSQL2008, Objective-C, Quick Tips, SQL Server, TSQL
Ever had the need to search stored procedures to find redundant tables or text that needs replacing or re-factoring ?
Here’s a script to help (Sorry for the cursor, I’m sad with myself for using it
)
-- Search string DECLARE @SearchString nvarchar(50) SET @SearchString = 'Search String' -- Required Declares DECLARE @getdbname sysname DECLARE @sqlstm nvarchar(1000) DECLARE SeachCursor cursor FOR -- Get All The Names into the SeachCursor SELECT '['+name+']' FROM [master].[dbo].[sysdatabases] ORDER BY name OPEN SeachCursor -- Add the Search Pattern SET @SearchString = '%' + @SearchString + '%' --Get the first Name FETCH NEXT FROM SeachCursor INTO @getdbname WHILE @@FETCH_STATUS=0 BEGIN --set the statement to define the search condition, with variables SET @sqlstm = ' SELECT [SP].[Specific_Catalog] AS [Database_Name], [SP].[Routine_Name] AS [Stored Procedure Name],[SP].[Routine_Definition] AS [Routine_Definition] FROM '+ @getdbname+'.[Information_Schema].[Routines] AS [SP] WHERE PatIndex('+''''+@SearchString+''''+', [Routine_Definition]) > 0' --Execute the Query EXEC (@sqlstm) FETCH NEXT FROM SeachCursor INTO @getdbname END --Close the Cursor and Deallocate it from memory CLOSE SeachCursor DEALLOCATE SeachCursor
No Comments » by Jon Hibbins on 18 September 2008
Filed under: MySQL, PHP, Platform, Unix/Linux
This is the 2nd time I have had to search for starting up Zend Core automatically on Ubuntu Workstation, so here is the answer:
First change the permissions of /etc/rc.local by opening a terminal window (Applications|Accessories|Terminal) and enter the following command:
sudo chmod 777 /etc/rc.local
Then open this file with the text editor (Applications|Accessories|Text Editor) and put the following text before the exit 0 command
cd /usr/local/Zend/Core/mysql && ./bin/safe_mysqld &
/usr/local/Zend/apache2/bin/apachectl start &
Zend Core, PHP and MySQL should now all start automaticaly at boot time.
13 Comments » by Jon Hibbins on 27 August 2008
Filed under: iPhone, Objective-C, Quick Tips
After a number of compile to iPhone device issues, specifically: “entitlement ‘application-identifier’ has value not permitted by provisioning profile” and “Command /usr/bin/codesign failed with exit code 1″, I have worked out you can have one and only one developer provision and developer application on the iPhone at a time otherwise you get installation errors etc…
I also had to have the correct Bundle Identifier in the Info.plist file and make sure the ‘Code Signing Identity’ and ‘Code Signing Provisioning Profile’ was also correct.
Hopefully this is useful to someone, Good Luck!!!