Thursday, December 13, 2012

could not load microsoft windows media player firefox plugin in Chrome


I was having this issue.


  1. Check Windows Media Player is installed on your box. Control Panel - Windows Features - Media Features - Windows Media Player.
  2. Install the Firefox Plugin from here http://www.interoperabilitybridges.com/windows-media-player-firefox-plugin-download
  3. Install the Windows Media Player HTML5 Extension for Chrome from here http://www.interoperabilitybridges.com/wmp-extension-for-chrome


Try now

Wednesday, December 12, 2012

Google Play services won't update and can't remote install

I have been having issues for a few months with Google Play and my Nexus One running MIUI. Whenever I went to Google Play Store I'd get the following error.
 But checking the phone showed that I have the latest version, (I even got the apk and installed manually), also I can't remote install any app that I used to. I wiped Google Play, uninstalled updates, also wiped Google Play Services data, still nothing. I had given it up as because I was on a custom rom, but I noticed the other day that my Google Talk app wasn't working, no matter what I did it wouldn't work.

So decided to reinstall the gapps from. Goo.im Downloads This fixed my Google Talk issues and it fixed my Google Play issues, I assume Google sends down messages using Google Talk, which then uses IPC to call Google Play to start off the downloads, or not. Hope this helps someone else.

Monday, December 10, 2012

Least amount of permissions for creating scheduled tasks in Windows 7

I am currently looking at creating Scheduled tasks and I needed to find the permissions needed for creating Schedudled Tasks, usually I would use ProcMon and look for ACCESS_DENIED but it wasn't helping me. Firstly I created a user with zero permissions and ran my tool that would create a Task, it threw an error saying it can't.
runas /user:NoPerms TaskScheduler.exe
I then gave permissions to "%SystemRoot%\Tasks" and it still wouldn't work, after some searching I figured out there is another Tasks folder in "%SystemRoot%\System32\Tasks" That is all that is needed.

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.