Archive

Archive for the ‘General Stuff’ Category

3GS Jailbreak finally arrives! Spirit FTW!

Rating 4.83 out of 5


Avid reader,

You will of course know how difficult it has been for the humble 3GS iPhone user to JailBreak his/her phone. Well finally a group of elite hackers and coders have put together a ‘userland’ Jailbreak.

‘userland’ means simply – point and click… no complex restore processes; just plug your phone in and press ‘Jailbreak’

You can download it at http://spiritjb.com/

I’m off now to download all those Cydia goodies that I miss :o )

UPDATE – July 2010

This has now of course been superseded by www.JailbreakMe.com – this site doesn’t even require you to connect your iPhone to a PC, just simply visit the URL from Safari on the phone itself. Once complete, run all the Cydia updates, reboot and then you can install Ultrasn0w to allow full unlocking (at present up to 4.0.1 firmware) to any carrier.

Share
Categories: General Stuff Tags:

iPhone Secret Codes and Tricks (also works on Nokia et all!)

April 8th, 2010 No comments
Rating 4.88 out of 5


Hi All,

I’ve been playing with my iPhone, and have discovered that a lot of the GSM codes that work on your average Nokia, also seem to work on the iPhone – but with more detail

I’ve compiled a list of these below (and yes… blatently borrowed the information from various other websites!) – I haven’t checked all of these codes, but most seem to work as described.

Note: (Call) means press the ‘Call’ button after entering the code shown…

General Codes

*3001#12345#* (Call). Enter Field Mode – This shows many things useful to a telephone mast engineer, but you will find that you probably will only be interested in the top-left number that shows the dB signal strength you are getting to the local mast.
*#06# Displays your IMEI (Note: This is common to all GSM phones) – The IMEI is the unique id for your mobile phone, and is used by the network to identify you in conjunction with your SIM card – In the UK, the networks can ‘block’ a phone based on this, and it is now illegal (I believe) to modify or duplicate an IMEI.
*#30# (Call). Calling line presentation check.
*#76# (Call). Check whether the connected line presentation is enabled or not.
*#5005*7672# (Call).  Displays the SMSC (SMS Centre Gateway) Number.
*#5005*5264# (Call).  Displays the Language setting and tells you the “actual language” (e.g: ‘en’).

Call Forwarding / Divert (for each call type, e.g. Voice, Data, etc):

*#21# (Call).  Setting interrogation for call forwards (enabled / disabled)
*#43# (Call).  Shows if ‘Call Waiting’ is enabled
*#61# (Call).  Check the destination number for call forwarding on ‘Unanswered’
*#62# (Call).  Check the destination number for call forwarding on ‘No Service’
*#67# (Call).  Check the destination number for call forwarding on ‘Busy’
To Set Call forwarding manually:-
DIVERT ALL
ON: **21*XXXXXXXXXX# (Call) (XXXXXXXXX = Destination Phone Number)
OFF:##21# (Call)

DIVERT IF BUSY
ON: **67*XXXXXXXXXX# (Call)
OFF:##67# (Call)

DIVERT IF SWITCHED OFF (or ‘No Signal > 20mins’)
ON: **62*XXXXXXXXXX# (Call)
OFF:##62# (Call)

DIVERT IF NO ANSWER
ON: **61*XXXXXXXXXX# (Call)
OFF:##61# (Call)


Call Barring/Blocking:

*#33# (Call). Check for call control bars.

For Pre-pay / PAYG phones (these seem to be AT&T specific, but give them a go!):

*777# (Call). Account balance.
*225# (Call). Bill Balance.
*646# (Call). Check minutes.
*3282# (Call). View wireless data usage statistics (also *data#).
*225# (Call). Check the bill balance on your AT&T account (also *bll#).
*729# (Call). Makes a call to AT&T to pay your wireless bill.
*639# (Call). Show upgrade eligibility (also *new#)

That’s all folks!

Paul

Share
Categories: General Stuff Tags:

Installing MAME on an iPhone (Quick Guide!)

January 11th, 2010 No comments
Rating 4.42 out of 5


This quick guide will explain how to install MAME (Multi Arcade Machine Emulator) onto your Jailbroken iPhone

Ok, before we begin, you need to check that you have the following configured:-

  • iPhone (Jailbroken) with Cydia installed
  • A PC (or Mac) with a SFTP (SSH Secure FTP) client (FileZilla is a nice ‘free’ client)
  • A copy of the ROMs you want to play
  • A fair idea of how to use Cydia, SFTP, SSH etc…

Step 1.

Install Mame4iPhone, simply search on Cydia for ‘Mame’ (from the ZodTTD repository) and it will be the 2nd or 3rd item down the list.

Step 2.

Install “WhatIP” from Cydia (this app will tell you what IP address your iPhone is using)

Step 3.

Go back to the iPhone home screen, and tap on the WhatIP icon. You should see something like this:-

WhatIP

Step 4.

SFTP into your iPhone – The default username / password is “root” and “alpine”  [As a side note, its a good idea to change this!]

Place the ROM’s into the following folder: /var/mobile/Media/ROMs/MAME/roms

Step 5.

Play !!!!

Share
Categories: General Stuff Tags:

VB.NET 2008 – Hint’s and Tip’s (including flicker-free ListViews)

November 19th, 2009 No comments
Rating 4.75 out of 5


Hi Avid Reader,

As you probably know by now, I’m a VB programmer. I’ve spent many year using VB6, and am now (under duress) having to migrate to VB.NET.

The purpose of this article is to show you some cool hint’s, tip’s, trick’s and bug-fixes that I’ve found along the way. I’ll be updating this Blog entry as time moves forward, so stay tuned to this one!

List View Flickers

This is just plain stupid. The standard ListView control (as part of the Common Control Library 6) invalidates the entire control each time a new item is added – e.g. lvInfo.Items.Add(“Hello World”)

This can be fixed using a little bit of Windows ‘SendMessage’ tweaking;

' Place at the top of the Form Class

Declare Auto Function SendMessage Lib "user32.dll" (ByVal hWnd As IntPtr, _
 ByVal msg As Integer, _
 ByVal wParam As IntPtr, _
 ByVal lParam As IntPtr) As IntPtr

 Const LVM_FIRST = &H1000
 Const LVM_SETEXTENDEDLISTVIEWSTYLE = (LVM_FIRST + 54)
 Const LVM_GETEXTENDEDLISTVIEWSTYLE = (LVM_FIRST + 55)
 Const LVS_EX_DOUBLEBUFFER = &H10000
 Const LVS_EX_BORDERSELECT = &H8000
' Place in the Form_Load event

 Dim styles As Long
 styles = SendMessage(lvInfo.Handle, LVM_GETEXTENDEDLISTVIEWSTYLE, 0, 0&)
 styles = styles Or LVS_EX_DOUBLEBUFFER Or LVS_EX_BORDERSELECT
 Call SendMessage(lvInfo.Handle, LVM_SETEXTENDEDLISTVIEWSTYLE, 0, styles)

This fix gives you a nice, smooth update each time.

The next fix is “How to keep the last item entered into a ListView visible…”

lv = myFormName.lvInfo.Items.Add("My Information to Show")
lv.EnsureVisible()

Simple, but effective!

Getting the App.Path in VB.NET

Another simple one (when you know it!) :-

Dim AppPath As String = Application.StartupPath()

Reading and Writing INI Files

Microsoft wants us to abandon INI Files and use XML instead. Whilst this may seem logical, its not always the simplest way of doing something (which sums VB.NET up really….) – This Class will give you a simple way of reading and writing INI Files.

Public Class IniFile
 ' API functions
 Private Declare Ansi Function GetPrivateProfileString _
 Lib "kernel32.dll" Alias "GetPrivateProfileStringA" _
 (ByVal lpApplicationName As String, _
 ByVal lpKeyName As String, ByVal lpDefault As String, _
 ByVal lpReturnedString As System.Text.StringBuilder, _
 ByVal nSize As Integer, ByVal lpFileName As String) _
 As Integer
 Private Declare Ansi Function WritePrivateProfileString _
 Lib "kernel32.dll" Alias "WritePrivateProfileStringA" _
 (ByVal lpApplicationName As String, _
 ByVal lpKeyName As String, ByVal lpString As String, _
 ByVal lpFileName As String) As Integer
 Private Declare Ansi Function GetPrivateProfileInt _
 Lib "kernel32.dll" Alias "GetPrivateProfileIntA" _
 (ByVal lpApplicationName As String, _
 ByVal lpKeyName As String, ByVal nDefault As Integer, _
 ByVal lpFileName As String) As Integer
 Private Declare Ansi Function FlushPrivateProfileString _
 Lib "kernel32.dll" Alias "WritePrivateProfileStringA" _
 (ByVal lpApplicationName As Integer, _
 ByVal lpKeyName As Integer, ByVal lpString As Integer, _
 ByVal lpFileName As String) As Integer
 Dim strFilename As String

 ' Constructor, accepting a filename
 Public Sub New(ByVal Filename As String)
 strFilename = Filename
 End Sub

 ' Read-only filename property
 ReadOnly Property FileName() As String
 Get
 Return strFilename
 End Get
 End Property

 Public Function GetString(ByVal Section As String, _
 ByVal Key As String, ByVal [Default] As String) As String
 ' Returns a string from your INI file
 Dim intCharCount As Integer
 Dim objResult As New System.Text.StringBuilder(256)
 intCharCount = GetPrivateProfileString(Section, Key, _
 [Default], objResult, objResult.Capacity, strFilename)
 If intCharCount > 0 Then GetString = _
 Left(objResult.ToString, intCharCount)
 End Function

 Public Function GetInteger(ByVal Section As String, _
 ByVal Key As String, ByVal [Default] As Integer) As Integer
 ' Returns an integer from your INI file
 Return GetPrivateProfileInt(Section, Key, _
 [Default], strFilename)
 End Function

 Public Sub WriteString(ByVal Section As String, _
 ByVal Key As String, ByVal Value As String)
 ' Writes a string to your INI file
 WritePrivateProfileString(Section, Key, Value, strFilename)
 Flush()
 End Sub

 Public Sub WriteInteger(ByVal Section As String, _
 ByVal Key As String, ByVal Value As Integer)
 ' Writes an integer to your INI file
 WriteString(Section, Key, CStr(Value))
 Flush()
 End Sub

 Private Sub Flush()
 ' Stores all the cached changes to your INI file
 FlushPrivateProfileString(0, 0, 0, strFilename)
 End Sub

 End Class

 

This can be used in the following manner:-

 Dim settings As New IniFile(Application.StartupPath & "\My_INI_File.ini")
 gCustName = settings.GetString("General", "CustName", "Not Registered")
 gCustSerial = settings.GetString("General", "CustSerial", "")
Share
Categories: General Stuff Tags:

How to make Sloe Gin – The ‘Dengie’ Way!

August 23rd, 2009 No comments
Rating 4.88 out of 5


Welcome again avid reader,

Due to a very wet spring followed by a wet July, and a fantastic August, we have an abundant crop of Sloes this year. Sloes are the fruit of the Blackthorn shrubs, and when ready to pick, show a white-ish blush on the otherwise deep purple berries.

Sloe Berries

These plum-like berries are very bitter, and are only used in Jams and preserves or as a core ingredient in Sloe Gin.

Traditionally you should wait for the first frost, or even place them in the freezer overnight, but after experimentation over the last couple of years I can categorically state that this seems to have no effect whatsoever, and just appears to be folklore!

My ‘Dengie’ recipe is as follows;

  • 1 x empty screw-top wine bottle (or bottle with a cork that removes easy… e.g. Port, Sherry or Pineau)
  • Fresh Sloes
  • 1 x Small Wine Glass of Sugar (normal granulated is fine)

Method:-

  • Clean and rinse the target bottle.
  • 1/2 fill with Gin (use a half-decent Gin for best results)
  • Tip the wine glass of sugar into the bottle
  • Wash the Sloes
  • Pierce the Sloes with a fork (a ‘Silver’ one is not mandatory – despite folklore!) and place in bottle till the Gin and Sloes reach halfway up the neck of the bottle.

Note: If the Gin reaches the neck before the Sloes, tip some away (into the next bottle obviously!) as the Sloes and Gin should reach the neck of the bottle at the same time.

Ongoing Care:

  • Shake the bottles vigorously once a day for the first week (the sugar will settle, so try to get it evenly mixed)
  • After Week 1, shake weekly
  • Wait for at least 3 months then decant the Gin (minus the berries and any sediment – I use a fine mesh sieve lined with muslin cloth) into fresh bottles

Sloe Gin is best served as a sipping aperitif in shot-glasses, or over ice for a longer drink (or carried in a hip-flask for those cold winter mornings!).

I’m told that the boozy-Sloes can be used to make an interesting Jam/Jelly afterwards, but I haven’t tried this myself yet!

 

2011 Update

Hello again avid reader, here is a brief update to this post: Try adding a few crushed Damson’s to the mix to make it a bit sweeter and richer, or even replace the Gin with Vodka (again, a ‘good’ one!) to make Sloe Vodka.

 

Share
Categories: General Stuff Tags: , , ,