Tuesday, November 20, 2012

Disable OpenFeint in Android for Rooted Phones

I really despise OpenFeint integration in any of my games, I noticed on Play store there was an app called CloseFeint which would disable it but the comments aren't great for it.

I therefore looked into it, it is adding a few entries to my hosts file.

127.0.0.1 api.openfeint.com
127.0.0.1 *.openfeint.com
127.0.0.1 *.scoreloop.com

If you know anything about hosts file, you'll know wildcards aren't supported.

So my solution?

Get this amazing ad blocking hosts app.

https://play.google.com/store/apps/details?id=org.adaway

Then if you click Settings/Your Lists you can add your own, so in there add.

openfeint.com
api.openfeint.com
gree.net
api.gree.net
scoreloop.com
api.scoreloop.com

The gree.net stuff is there because gree.net have recently bought OpenFeint and scoreloop seems to be another one.

Once you have added these, you'll have to re-apply the lists, its also good for blocking ad's in games and easy to disable if there are apps that **need** access to OpenFeint in order to work.

Monday, November 12, 2012

failed to load sesison ubuntu

I just came across this issue with upgrading packages in 12.04 before I made the upgrade to 12.10 (since I've been having issues with ATi graphics drivers). On load I couldn't get into my session. What I did was CTRL+ALT+F1 to get to console, logged in and then ran sudo apt-get update && sudo apt-get upgrade This seemed to installed XWindow stuff that was missing that I think was causing my issue.

Tuesday, October 30, 2012

Thursday, September 20, 2012

hg mecurial abort: path is inside nested repo error

Just been having to use Mecurial to get the Orchard source code. I first used TortoiseHg to get the source and then used the Update command to switch to 1.x "branch" but I'd always get this error. abort: path 'src\Orchard.Web\Modules\Orchard.Alias\AdminMenu.cs' is inside nested repo 'src\\Orchard.Web\\Modules\\Orchard.Alias' So after a few attempts, all I did was delete everything apart from the .hg folder and then tried to update, this managed to work. Who knows if this is the "correct" way to fix it.

Tuesday, August 07, 2012

System WindowsFirewall: "query user incoming"

Or just Windows Media Player Network Sharing failing over mixed network on Windows 7, by default if you are on the same subnet it'll work. I had Xbox on 192.168.0.250 and sharing it on to my Wireless network of 192.168.1.x range, so I was getting the above error. I had to go to Windows Firewall in Control Panel, click Advanced Settings, Inbound Rules. "Windows Media Player Network Sharing Service (HTTP-Streaming-In)" This is running on Port 10243 and enable the one for "Public" profile. Then you should be good to go.

Monday, August 06, 2012

Instant Upload continually syncing

I was having an issue with Google+'s feature of Instant Uploading all my pictures, it would never complete so I had to disable it. To fix this, disable Instant Upload in Accounts & Sync settings, go into Programs and find Google+, clear the data of it and then re-enable it. This should fix it.

Thursday, July 26, 2012

Redgate ANTS Performance Profiler - Could not start IIS.

I have had this issue a few times and I always forget how to fix it.

Could not start IIS. RedGate.Profiler.Engine.Exceptions.CannotStartSessionException at  . .Launch() at ? . . ? () Caused by: Could not start IIS. RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException at  . . () at  . .Launch() Caused by: Could not start w3wp as the specified user. Win32 error code: 1385 RedGate.Profiler.Engine.Exceptions.CannotStartIisSessionException stack trace: at ? . ? .?? () at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at . .?? () at  . .?? ( ) at  . . () Caused by: Could not start w3wp as the specified user. Win32 error code: 1385 RedGate.Profiler.Engine.Startup.IIS.IISException stack trace: at . .StartProfilingIIS(String , String ) at RedGate.Profiler.Engine.Startup.IIS.IISStarter`1.StartProfilingIIS(String currentUserName, String subprocessVariableValue) at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Int32 methodPtr, Boolean fExecuteInContext, Object[]& outArgs) at System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg, Int32 methodPtr, Boolean fExecuteInContext) rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) at RedGate.Profiler.Engine.Startup.IIISActuator`1.StartProfilingIIS(String currentUserName, String subprocessVariableValue) at ? . ? .?? ()
So I need to run my IIS as a network user in order for it to work through SQL Auth etc, the reason it is failing, is because the user isn't an admin user on my box. So go to Administrator Tools -> Groups -> Administrators and add your network user here, check names and it should work!

Monday, July 16, 2012

Solr 3.5 spatial (geofilt) search with distance in results

Took a bit of tinkering around but here's my query.

LatLong is my field in my document with a "latitude,longitude" in it.

d=30. Distance is KMs.


http://solrserver/select?
indent=true&
fl=Name,LatLong,score&
fq={!geofilt pt=50000,-0.11111 sfield=LatLong d=30}&
sfield=LatLong&
pt= 50000,-0.11111&
sort=score asc&
q={!func}geodist()

This gets you all documents near a point (pt) and returns them with the distance stored in the score field.


Friday, July 13, 2012

Android not picking up MP3's

My Android Phone (Nexus one running MIUI) sometimes doesn't find my MP3's, especially after a ROM update.

I loaded up the MP3 using  http://www.mp3tag.de/en/  and I either update it or just save it, it then seems to fix the ID3 tags and then it is picked up on my phone.

You may also need to run an app like  https://play.google.com/store/apps/details?id=com.addz.mediascanner 

Tuesday, February 21, 2012

Monday, February 13, 2012

Wednesday, December 14, 2011

Generic USB Driver Windows 7

If you are having issues with finding a driver for a USB Drive, here's a trick.

Go to C:\Windows\System32\DriverStore\FileRepository\usbstor.inf_

and get the latest directory, copy the contents to 

C:\Windows\Inf

Reinsert your USB stick, it should detect it now and install it.


Monday, October 31, 2011

dotless Configuration Options

Unless my googling is failing me, I can't find any documentation on the dotless configuration for Web.Config, so I've gone through the code, I think I understand the different options
  • minifyCss
    • true or false
    • Minifies the CSS output
  • cache
    • true or false
    • Caches the CSS after being created
  • web
    • true or false
    • if true, this uses http specifc options,  must be set when using on the web,  Response.Cache, Request.QueryString for parameters, Server.MapPath for mapping, puts the Log Messages in the Response
    • if false, uses in memory cache, uses console logger,  uses paramaters from the console, 
  • log
    • info, debug, warn, error, default
  • optimization
      • 0-n
      • Optimizes the output...
  • source
    • How dotless reads the files of interface IFileReader, its the type usually FileReader but can be VirtualFileReader which uses HostingEnvironment.VirtualPathProvider
  • logger
    • Can be set but then gets overidden by the "web" boolean, there are AspNetTraceLogger (HttpContext.Trace.Write), aspResponseLogger (Response.Write as Css), ConsoleLogger (Console.Write), DiagnosticsLogger (Debug.WriteLine) and NullLogger (Swallows).

  <dotless minifyCss="false" cache="false" web="true" log="debug"
           optimization="10" 
           logger="dotless.Core.Loggers.AspNetTraceLogger" />


Thursday, September 29, 2011

Greasemonkey Script to Remove Facebook in Facebook plus more

Here's a simple script to remove the right hand column on Facebook, which has Facebook-in-Facebook, adverts and crap, also Greasemonkey is easy.

// ==UserScript==
// @name           Remove Facebook Right Column
// @namespace      http://sarkies.blogspot.com
// @description    Remove all the pointeless stuff in the right column, the ad's, the facebook-in-facebook, and duplicated events
// @include        http://*.facebook.com/*
// @include        https://*.facebook.com/*
// ==/UserScript==

var rightColumn = document.getElementById('rightCol');

if(rightColumn) {
 rightColumn.parentNode.removeChild(rightColumn);
}
Download

Download the script or copy and save it as rightCol.user.js and drag and drop it in to Chrome and/or Firefox (if you have Greasemonkey enabled) go to Facebook. Rejoice.

Friday, July 08, 2011

Duke Nukem Forever Stutter work-a-round

When playing the game on my PC, it was stuttering like hell, thought it was to-do with not being optimized, since I have a dual screen, I ran task manager in the other monitor. This showed Steam.exe was using 30% of my CPU regardless.

The work-a-round I propose till its fixed will mean no Achievements whilst playing, so its up to you!

Right click Duke Nukem Forever, turn off "Enable Steam Community In Game"

Run the game

Alt-Tab out of the game

Set Steam.exe affinity to one core and set its priority to low via Task Manager.

Kill GameOverLayUI.exe if its running

Play the game and if its still stuttering set DukeNukemForever.exe to the other affinity.


Tuesday, May 24, 2011

Getting Hexxeh's Chromium Builds Network working

If you're trying to get ChromiumOS working on Virtual box, you'll need these network settings.
It took me a while, since its the last in the list!!

Bridge Adapter

Adapter Type: Paravirtualized Network (virtio-net)


Should give you Ethernet in the login screen now?

Its a bit slow for me though....


Friday, January 07, 2011

Sys is undefined error

Having tried every single way of fixing this error, I came across and two part fix.


Add that to your Web.Config

and

Disable and Renable,

Use HTTP 1.1
Use HTTP 1.1 through proxy connections

In your Internet Explorer Options.




Tuesday, November 30, 2010

Western Union Scam! Another one.

Firslty, the scam.

"Don't send me money, just send it someone else, friend or family and show me proof you can afford to buy the product / rent the room etc, show me proof using a photocopy of the receipt"

How the scam works?

Western Union, don't need any proof of you or the recipient to take the money, ridiculous if you ask me!

Secondly, a list of scammers I'm picking up along the way, I'll be adding to it:

anzy84@hotmail.com / Anzia Scott

timmsproperty@gmail.com / Sherwood Tim

amoo9989@hotmail.com / Amoo Raymond

aidataube@yahoo.de / Aida Taube

Phone numbers

070 2404 4128
07045 766243
07045 734145

conta
ct you, they are scammers. The more people who can the address, the better.


If in doubt, never use Western Union and use TinEye.com for reverse picture search.


Wednesday, October 06, 2010

Can't download Chrome behind a Corporate Network?

There seems to be an issue with the Chrome installers:

ChromeSetup.exe
and
ChromeStandaloneSetup.exe

The only one I found to work was the ones from FileHippo:

There was a way to download straight from Google but it doesn't seem to work anymore, unless I'm doing it wrong.

The filename should be

chrome_installer.exe


Friday, July 30, 2010

HTC Desire SPP 2.1 Issues

If you have an HTC Desire and you are having issues with your Bluetooth code, such as:


  • Service Discovery doesn't work or flaky
  • Can't see Misc devices, i.e. those with a Bluetooth device type of Headset, Phone or Comp
  • If you have issues communicating via SPP (Serial Port Profile)
  • Just plain not working
You will need to upgrade the ROM on the phone, these may all be fixed with HTC Desire 2.2 update which out "today", but if not its the bluez bluetooth code that has been fixed.

The only ROM that fully supports all of this is the http://www.cyanogenmod.com/ ROM, I've tried all ROMS this one is the only one that works correctly, but its based on the Nexus One ROM, so you won't have Sense, but if someone updates the ROMs with the latest BlueZ stuff, it *should* work.

OpenSource ftw?

I had similar issues when developing for a J2ME app on my old K800i, but what could I do?