Archive

Archive for March, 2010

XBox 360 Halo3 Reach code generator

March 30, 2010 Leave a comment
Thanks to @NWMTUG for this excellent XBox Game!

http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=230455976792

Eh hem, but I don’t have an xBox, so it’s for sale.

Advertisements
Categories: Uncategorized

Read Wii Game DVD from windows

March 24, 2010 Leave a comment
Got a Wii game on DVD, but forgotten it’s title? Using ImgBurn here’s how

Open up imgBurn, press discovery.

You get some disc info on the right hand side:

MATSHITA DVD-RAM UJ880AS 1.50 (ATAPI)
Current Profile: DVD-ROM

Disc Information:
Status: Complete
Erasable: No
Sessions: 1
Sectors: 2,294,912
Size: 4,699,979,776 bytes
Time: 510:00:62 (MM:SS:FF)
Supported Write Speeds: 2x, 4x, 6x, 8x

TOC Information:
Session 1… (LBA: 0)
-> Track 01  (Mode 1, LBA: 0 – 2294911)
-> LeadOut  (LBA: 2294912)

Pre-recorded Information:
Manufacturer ID: DAXON016S

Physical Format Information (Last Recorded):
Disc ID: 0@P-!-00
Book Type: DVD-R
Part Version: 5
Disc Size: 120mm
Maximum Read Rate: Not Specified
Number of Layers: 1
Track Path: Parallel Track Path (PTP)
Linear Density: 0.267 um/bit
Track Density: 0.74 um/track
First Physical Sector of Data Area: 196,608
Last Physical Sector of Data Area: 2,491,519
Last Physical Sector in Layer 0: 0

Performance (Write Speed):
Descriptor 1…
-> B0: 0x00, B1: 0x00, B2: 0x00, B3: 0x00
-> EL: 2297888 (0x00231020)
-> RS: 2,770 KB/s (2x) – WS: 2,770 KB/s (2x)
Descriptor 2…
-> B0: 0x00, B1: 0x00, B2: 0x00, B3: 0x00
-> EL: 2297888 (0x00231020)
-> RS: 5,540 KB/s (4x) – WS: 5,540 KB/s (4x)
Descriptor 3…
-> B0: 0x00, B1: 0x00, B2: 0x00, B3: 0x00
-> EL: 2297888 (0x00231020)
-> RS: 8,310 KB/s (6x) – WS: 8,310 KB/s (6x)
Descriptor 4…
-> B0: 0x00, B1: 0x00, B2: 0x00, B3: 0x00
-> EL: 2297888 (0x00231020)
-> RS: 11,080 KB/s (8x) – WS: 11,080 KB/s (8x)

etc.

Press Tools > Drive > sector viewer >

Then at LBA 0, offset 0020 you see the Game name i.e. "101-in-1 Party Megamix Wii"

Categories: Uncategorized

Hello World for Palm Pre

March 21, 2010 Leave a comment

Created with ares, just dropped a "Hello World" label on the form, then pressed Run.

You need to have Sun Virtua Box, and the Palm Emulator installed an running.

This is the source of the main-chrome.js file

opus.Gizmo({
    name: "main",
    dropTarget: true,
    type: "Palm.Mojo.Panel",
    h: "100%",
    styles: {
        zIndex: 2
    },
    chrome: [
        {
            name: "label1",
            label: "Hello World",
            type: "Palm.Mojo.Label",
            l: 0,
            t: 77,
            h: 77,
            hAlign: "center",
            vAlign: "center"
        }
    ]
});

Categories: Uncategorized

Mobile version of Google Translate

March 21, 2010 Leave a comment
Here’s some code to plug into Google Transate in C# – Not using the API:

 /// <summary>
        /// Translate Text using Google Translate
        /// </summary>
        /// <param name="input">The string you want translated</param>
        /// <param name="languagePair">2 letter Language Pair, delimited by "|".
        /// e.g. "en|da" language pair means to translate from English to Danish</param>
        /// <param name="encoding">The encoding.</param>
        /// <returns>Translated to String</returns>
        public static string TranslateText(string input, string languagePair, Encoding encoding)
        {
            string url = String.Format("http://www.google.com/translate_t?hl=en&ie=UTF8&text={0}&langpair={1}&quot;, input, languagePair);

            string result = String.Empty;

            using (WebClient webClient = new WebClient())
            {
                webClient.Encoding = encoding;
                result = webClient.DownloadString(url);
            }

            string strRegex = @"this.style.backgroundColor=’#fff’..(?<Text>[ws+]+)";
            Match m = Regex.Match(result, strRegex);
                      
            return m.Groups["Text"].Value;
        }

Orginal version from dnknormark.net, but I fixed his regex.

Check out http://translate.freebiesms.mobi/ for a demo

Categories: Uncategorized

WithFollow link from wordpress

March 20, 2010 1 comment
Found how to get a With-Follow link from wordpress.org, two pages away from a PR7. Hopefully WordPress doesn’t read this post! 🙂

But, the author URL is with-follow (no rel=nofollow), so if you author a widget, and supply a url, then this will pass rank from WordPress to your site.

Another trick to this, is tag the plugin with a one of the following popular tags:
    *  widget (1410)
    * Post (1059)
    * plugin (850)
    * admin (798)
    * posts (774)
    * sidebar (718)
    * comments (609)
    * images (462)
    * google (444)
    * page (432)
    * links (431)
    * twitter (423)
    * rss (360)

This means that your plugin will get a link from the front of the plugins page, for a week ("Rss" is the best tag for this).

Categories: Uncategorized

Sending SMS from Silverlight

March 17, 2010 Leave a comment
I downloaded VS 2008 SP1, and the Silverlight SDK. Dissappointed to see that there was no obvious "design view" for silverlight, I guess Microshaft wants us all to buy Expression Blend, so I just created a canvas with a giant button in XAML

<UserControl xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input"  x:Class="HelloSilverlight.MainPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation&quot;
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml&quot;
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008&quot; xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006&quot;
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
  <Grid x:Name="LayoutRoot">
     <Button Content="Send SMS" Click="Button_Click"></Button>
  </Grid>
</UserControl>

Added a reference to http://www.freebiesms.co.uk/sendsms.asmx

Added using HelloSilverlight.FreebieSMS; to the namespace includes.

Then, this as the event handler

 private void Button_Click(object sender, RoutedEventArgs e)
        {
            // Button clicked
            sendSmsSoapClient SMS = new sendSmsSoapClient();
            SMS.SendSmsAsync("Bob", "00447866069537", "00447866069535", "Test from Silverlight", "en-GB");
        }

All downloadable from http://sites.google.com/site/freesmsuk/silverlight

Categories: Uncategorized

When not to use affiliate data feed XML

March 17, 2010 Leave a comment
Many affiliate programs give away their product databases, in the hopes that you can sell their stuff better than they can, but it certainly is not the way to create generic content.

I downloaded Beepy’s product database at
http://www.beepy.co.uk/datafeeds/mobile_datafeed_dgm_product_feed.xml.gz, Here’s an excerpt of the XML

w995-black.jpg</largeimageurl><brand>Sony Ericsson</brand><condition>New</condit
ion><location>UK</location><shortdescription>With a model number like 995, you g
et the impression Sony Ericsson want you to know this is a high-end, top quality
 product. So surely with a tag like this, the W995 makes the tea, takes out the
dustbin and prepares a lovely four course meal for you. OK, so it doesn’t do any
 of those things, but this is one phone which brings the best of both the Walkma
n and CyberShot range of phones together in one fantastic package, whilst even f
inding space to squeeze in one of the most requested Sony Ericsso</shortdescript

I picked a phrase that was relatively unique in the description, then put it into google.

http://www.google.co.uk/#hl=en&q=%22So+surely+with+a+tag+like+this,+the+W995+makes+the+tea%22&start=20&sa=N&fp=819eb60ddcc41d13

66,700 exact matches.

of which on 37 got listed, and the other 66,663 got stuffed into the supplemental index.

ergo, if you created a site with this content, you have a 99.9% chance of ending up in the supplemental index.

Categories: Uncategorized