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?

Finding Bluetooth Service Address on Windows

If you have connected to a device, but want to write code to discover it, you need to know the service address/guid of the bluetooth device, in order to talk to it.

On Windows if you navigate to

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\BTHENUM\

You will see the devices connected and then in HardwareID you will see the value at the end for SPP it is usually.


BTHENUM\{00001101-0000-1000-8000-00805f9b34fb}

Wednesday, July 14, 2010

Could not create the driver from NHibernate.Driver.SqlServerCeDriver

Using Fluent NHibernate and MsSqlCeConfiguration, I wanted to use an SQL Compact DB for my Database by changing the FluentConfiguration but I started getting the errors from the InnerException.

"Could not create the driver from NHibernate.Driver.SqlServerCeDriver"

The fix is simples,

You need to add a reference to

"System.Data.SqlServerCe"

Located in

"C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Desktop\System.Data.SqlServerCe.dll"

If you don't have it, you'll need to install it from.

http://www.microsoft.com/sqlserver/2005/en/us/compact-downloads.aspx

Once you've added it you need to set the

"Copy Local" to true.

Then you should be good to go.

Wednesday, July 07, 2010

Failed object initialization (ISupportInitialize.EndInit). Error on Windows XP


Failed object initialization (ISupportInitialize.EndInit). Method not found: 'System.Windows.Threading.DispatcherOperation System.Windows.Threading.Dispatcher.BeginInvoke(System.Delegate, System.Object[])'


If you get this error, looking at the MSDN page for the method call

http://msdn.microsoft.com/en-us/library/cc190824(VS.90).aspx

It says at the bottom:

Version Information
.NET Framework
Supported in: 3.5 SP1, 3.0 SP2


The computer was running 3.5 vanilla, install the update and you'll be good to go.

Sunday, June 20, 2010

Bit of Hex Education

So I've started my Virtua Tennis Savegame editor, so in order to follow, I need to teach you about hex. So firstly, the easy stuff.

If you want to get properly confused, go to the Wiki Page but here's a nicer one:

http://www.itnewb.com/v/Introduction-to-Hexadecimal-or-Base-16-Number-System

Hex is base 16, i.e. numbers go from 1-16, we usually deal with base 10, (since that's the number of fingers we have), but hex is from 0 to 15, inclusive, so we get our 16.

Also instead of having 10 to 15, we have A-F, (aside, why A-F, why not A-Z and we get even more numbers?).

So therefore, lets take 29 in denary

Binary = 11101

Hex = 1D

So easier to store and easier to read, if that was just denary, the most we could store is 100 values from 00-99, in hex, we can store 00-FF which is 256 values.


Next thing to know is Endianness, so Big endian and Little Endian and Most Significant and Least Significant bit.

In a big endian systems, the most significant bit is the furthest to the right, go back to our 29 in binary.

16 8 4 2 1
1 1 1 0 1

So in this instance, the most significant bit is the bit in the 16's column and least significant bit is the 1's column. This is how everyone learns binary.

The Virtua Tennis Savegame is stored in LSB, so therefore in this case it'd be.

1 2 4 8 16
1 0 1 1 1

So once we figure out the values, you'll need to swap the values backwards in order to make the change, but since we are doing it in hex it'll be like this.

Hex = 0A 01

Big Endian = 0A 01 = 2561
Little Endian = 01 0A = 266

The reason I think it's stored in Little Endian is because the PC Port, was just emulated, from the Dreamcast version which runs in Little Endian.

http://www.netbsd.org/ports/dreamcast/faq.html#endian

So there's my Hex Education, I'm sure I'm missing stuff. This is just a tasty for when we start hacking the file.