Mobile Development

facebook the first five

when I was writing my code for my facebook windows phone app, I noticed you can refer to people with a number and that Mark Zuckerberg was number 4… here’s the others:

4. Mark Zuckerberg, 4 Feb 2004, although timeline says 11 Feb 2004. Launched the wall on 5 Sept 2004
5. Chris Hughes, 17 Jan 2004
6. Dustin Moskovitz, 15 Jan 2004
7. Arie Hasit, 2004- (Arie signed up for facebook 3 weeks before the site started, according to his comment on 18 Jan 2004)
10.Marcel Laverdet, 2006-2011

Be the first to comment - What do you think?
Posted by admin - January 4, 2013 at 11:23

Categories: Facebook, General Blog, Tech   Tags:

visual studio source control with team foundation server (tfs)

microsoft are currently providing free use of team foundation server for teams of 5 or less. there are some warnings that indicate they might make this a chargeable service later, but for now take advantage 🙂

btw, if you are wondering why you should use source control, then go off and do your homework. source control is vital. period. if you are wondering why you should use tfs, my thinking is it is an MS tool so will work well with visual studio and for now it is free. when it changes from being free, I will look into github.

this is the way I use it:
open internet explorer (chrome does not always seem to work)
https://tfs.visualstudio.com/
sign in, preferably with your live id (whichever you use on the store)
if you cannot remember your repository, go to account and it is listed there, eg: https://mobileliving.visualstudio.com/
create “New Team Project” – I usually give same name as my project
open visual studio
in solution explorer
click on solution, right click add to source control and select your project
click on solution, check in and provide a label

As you edit files, it does an automatic check out. When you close file/solution/application, it will check in the files.

I have not yet worked out:
LABELS. how to label the code so that I could get version 1.0.0.1 or version 1.0.0.2 of the files I submitted to microsoft marketplace, but will figure that out when needed.
BUILD. you can launch builds on the tfs server, but they never seem to work for me. as I am only 1 developer right now, I am not too worried about this.

Be the first to comment - What do you think?
Posted by admin - January 4, 2013 at 11:02

Categories: Win8, Windows Phone   Tags:

rename project in visual studio

Here is the sequence I used to copy a project in visual studio which was previously under source control.

windows explorer
manually rename top 2 folders
runup visual studio – it will say it cannot find the source control. this is ok.
in vss solution explorer
highlight solution and rename
highlight C# project and rename
in text editor
ctrl-h (search and replace) across entire solution
project/properties
check everything is ok here… especially startup object and xap file name (for some reason this was unchanged for me)
manually check/edit (this seemed to be skipped on the ctrl-h)
repositories.config
AppManifest.xaml
exit visual studio
in explorer
delete bin, obj
delete any .vss files referring to your previous source control
run visual studio
build and deploy
add back to source control (see my other post)

for good measure I also uninstalled and reinstalled all the packages via nuget

Be the first to comment - What do you think?
Posted by admin - January 4, 2013 at 10:54

Categories: Win8, Windows Phone   Tags:

windows phone toolkit

To get latest version of windows phone toolkit via nuget, which includes the funky Michael Knight progress bar.

Remember to install this to all your projects when you need it, ie: install is project specific and does not apply to the whole of visual studio projects.

Be the first to comment - What do you think?
Posted by admin - January 4, 2013 at 10:46

Categories: Windows Phone   Tags:

UFOinNewYork – whats next?

This is what I am planning to do. I’ve got a few things on the go, so cannot promise to do this anytime soon…

 

TODO

  • add sounds – these were in the original version, but had to be removed after it failed certification (for not offering a possibility to activate/deactivate sounds).
  • add more difficulty – there are options in the code which have not yet been exposed to the user interface (speed, blocks destroyed per bomb). **Hopefully this fixes the comment from Benutzer on 11/12/2012.
  • add medals – why would you spend all your time on this game (apart from the fun): to be better than your friends!
  • remove first 2-3 columns of blocks. **Hopefully this fixes the comment from Peter on 30/11/2012.
  • high score table

Be the first to comment - What do you think?
Posted by admin - January 3, 2013 at 15:48

Categories: UFOinNewYork   Tags:

UFOinNewYork reviews

Comments so far:
************************
Benutzer. 12/11/2012. RM-825_eu_euro2_238
Steigerung fehlt
Increase is missing

************************
User. 12/1/2012. RM-825_eu_euro1_217.
Wow. This brings back some memories. Would be great if you could add sound!

************************
Peter. 11/30/2012.
I Ich spiele dieses Spiel schon seit 30 Minuten und schaffe es noch immer nicht. Die hochhäuser sollten nicht sofort von Links an beginnen 🙁
I’ve been playing this game for over 30 minutes and still did not manage it. The high-rise buildings should not immediately start of links to: (

Be the first to comment - What do you think?
Posted by admin - January 3, 2013 at 15:35

Categories: UFOinNewYork   Tags:

Blitz revisited – behind the scenes

My first game on Windows Phone. In its first month it has got over 2500 downloads!!
http://www.windowsphone.com/en-us/store/app/ufoinnewyork/edd035f3-9fc3-456f-94a2-e8501f2cff7d

This is based on an addictive game my sister and I enjoyed playing when we were young.

I cannot believe how fast phones are now. This game redraws the whole screen from blank to skyscrapers in less than a blink of an eye! In the old days, you would draw the screen once, and only make deltas to the screen (ie: draw the skyscrapers one time, and remove blocks each time there was a bomb). When C64 and BBC came along, you could draw a screen in the background and then redirect the video buffer to read that instead. How times change!

Be the first to comment - What do you think?
Posted by admin - January 3, 2013 at 15:34

Categories: UFOinNewYork   Tags:

Facebook development for Windows Phone 8

Some examples below. Note, you need to get your own access tokens… to get this, go to sample queries and copy/paste the access token.

examples
https://developers.facebook.com/docs/reference/api/search/

All about me (matches query in fb sample)
https://graph.facebook.com/me?access_token=XX

Profile = wall
https://graph.facebook.com/me/feed?access_token=XX

profile of friend
https://graph.facebook.com/4/feed?access_token=XX

get my friends
https://graph.facebook.com/me/friends?access_token=XX
each friend has an id, eg: 4 is mark zuckerberg

friends page for more information
https://www.facebook.com/4

picture
https://graph.facebook.com/{0}/picture?type={1}&access_token={2}”, id, “square”, _accessToken

of course, how you parse these things is a non trivial mess of IDictionary, JsonArray and JsonObject. However it does have a weird logic behind it, which makes it quite expandable. I’ll write a post on that later.

Be the first to comment - What do you think?
Posted by admin - January 3, 2013 at 15:31

Categories: Facebook, Win8, Windows Phone   Tags:

NFC Charging plate for Nokia Lumia 820

Got my NFC charging plate today for my Nokia Lumia 820. Overall I think this is good – but it’s not a travel accessory, better for your home base.

CONS
UK plug is huge – much bigger than the sleek charging plug provided in the Lumia pack.
Power plugs are not USB, so need yet a different set of cables. Although supplied with the pack, you can guarantee those will get lost… why did they not use USB?

PROS
No more putting USB connector into the phone (it’s led to some damage on other makes & models).
Really quite easy to charge (as long as the NFC plate is pointing the right way)

Be the first to comment - What do you think?
Posted by admin - December 30, 2012 at 19:33

Categories: Mobile Living, Tech, Windows Phone   Tags:

My new HP Envy dv6 7200 EO and windows 8…

Copy of my post… will update later…

When I upgraded my hp envy dv6-7200EO from Win8 to Win8 Pro, there were 4 things that did not work:
1. cd/dvd drive – fixed by plugging in a cd drive onto the usb and then a rescan of hardware
2. PCI card reader – “Realtek PCIE Card Reader”, shown by PCI\VEN_10EC&DEV_5229&SUBSYS_1818103C&REV_01
3. fingerprint reader – USB\VID_138A&PID_0018&REV_0078
4. acpi – “HP Wireless Button Driver”

The ids come from devicemgr/properties/detail/hardwareid.

TOPTIP: before doing anything with your hard drive, copy the c:\swsetup folder. This contains a copy of all the drivers 🙂 The HP product page does *not* have all the drivers: http://h10025.www1.hp.com/ewfrf/wc/softwareCategory?os=4132&lc=en&cc=us&dlc=en&sw_lang=&product=5317076 (plus you get into a whole load of problems around installing .net framework, only for the “let hp recommend” assistant to not work).

For the items above, here are the paths in swsetup. In almost all cases, just launch setup.exe:
2. C:\SWSetup\Drivers\Misc
3. C:\SWSetup\Drivers\Fingerprint
4. C:\SWSetup\Drivers\HPWBD

PS: I will try to post my experiences to my blog: http://www.mobileliving.info/blog shortly… it’s been a very dark few days… some things I have done:
1. updated to windows pro (for bitlocker) – although HP does not seem to have TPM, seems to work ok. used usb boot.
2. updated to samsung 840 pro ssd (for fast encryption) – gave up on their migration software (now written by clonix) and reinstalled win8 from scratch
3. swapped cd drive to original seagate hard drive which came with hp
4. was going to swap out memory, but Amazon sent me wrong memory 🙁
5. updated bios to F13 from F12 (takes a very long time – ie: 3 minutes of black screen with an SSD drive at first start up and then when it had flashed everything)

For those techies out there, the HP support assistant provides some very good tech info (including speed of RAM). Also for MSDN suscribers, download Win8 retail for the Pro version (otherwise looks as though the only Pro version available is VL, which is not the case).

Be the first to comment - What do you think?
Posted by admin - December 11, 2012 at 17:19

Categories: Tech, Win8   Tags:

« Previous PageNext Page »