Pages

Tuesday, December 1, 2015

Wednesday, August 27, 2014

Database diagram - Attempted to read or write protected memory

A possible cause is having VS 2012 installed, installing VS 2013 and later uninstalling VS 2013. It leaves the VS 2012 installation corrupted.

Delete: C:\Program Files (x86)\Common Files\microsoft shared\Visual Database Tools\dsref80.dll
and everything in C:\Program Files (x86)\Common Files\microsoft shared\MSDesigners8\, then run a repair for VS 2012
Thanks to stackoverflow 

Saturday, March 15, 2014

Rom Directory

This application is designed to make it as easy as possible to find and download all the different roms out there.
All the files are downloaded directly from the developers host of choice.

Go to Rom Directory on Play Store

Thursday, October 10, 2013

Control file download using a HttpHandler - without exposing the files location

This will show you how to make a HttpHandler which can retrieve files without exposing the files location.
You can add additional logic such as download count or access restriction.

First things first, you'll need to setup your HttpHandler, I've called mine GetFile.cs:
namespace Sample.HttpHandlers
{
    public class GetFile : IHttpHandler
    {
        public bool IsReusable
        {
            get { return false; }
        }

        public void ProcessRequest(HttpContext context)
        {
            // The logic goes here
        }
    }
}
Remember to add the handler in your web.config, additional information can be found at microsoft support.
<add name="GetFile" verb="*" path="GetFile.axd" type="Sample.HttpHandlers.GetFile"/>

Friday, March 8, 2013

Override class library web service reference in web.config

The import thing is to remember to add the configSection to your web.config.

I might write it up later but for now here is a link, thanks to James McCormack for the solution:
http://zootfroot.blogspot.dk/2011/06/settingssettings-vs-webconfig-file-with.html

Tuesday, February 12, 2013

Visual Studio Check-in Option Changed to “Check In Now”

This really helped me, and I still don't know why it chose to check that option all of a sudden.
"Tools -> Options -> Source Control -> Environent -> Uncheck "Don't show check in dialog box when checking items in"
source: Stackoverflow: Visual Studio Check-in Option Changed to “Check In Now”

Saturday, January 26, 2013

Now the proud owner of a Synology DiskStation DS212j

I just bought my first NAS and I must say it have impressed me, even if it's a budget version it does a very good job at everything I've thrown at it so far.

Google Drive is my primary backup place, but I needed another location for the "less important files", I used to use my HTPC but I got tired of it because it had to be turned on all the time, and it wasn't the optimal solution.

So what am I using this DS212j for?

  • Store files on my WD Red 2TB (obviously)
  • Making the files accessible from LAN using samba share and sftp to access the files from WAN
  • Storing my XBMC library across my network using the built in MySQL database
  • Surveillance station is linked to my IP Cam
  • Planning to look at how the backup software works

Thursday, January 17, 2013

jQuery maintain position on postback / refresh

My friend asked me for a solution where he would be able to maintain scroll position on postback/refresh without altering the URL itself. So I desited to make my first jQuery Plugin, it's very simple but it works: maintainPosition

Tuesday, December 18, 2012

Android mk808 wifi fix - solutions

I've had a lot of problems with WiFi drops on my mk808 and it had been bugging me a lot, I have tried "all" the solutions I could find, and my mk808 is finally running like a dream with stable WiFi.

This is the fixes I've tried, ordered by the easiest to do:

Monday, October 1, 2012

Thursday, August 18, 2011

Center a new popup window even on dualscreen with javascript

function PopupCenter(url, title, w, h) {
    // Fixes dual-screen position                         Most browsers      Firefox
    var dualScreenLeft = window.screenLeft != undefined ? window.screenLeft : screen.left;
    var dualScreenTop = window.screenTop != undefined ? window.screenTop : screen.top;
            
    width = window.innerWidth ? window.innerWidth : document.documentElement.clientWidth ? document.documentElement.clientWidth : screen.width;
    height = window.innerHeight ? window.innerHeight : document.documentElement.clientHeight ? document.documentElement.clientHeight : screen.height;
            
    var left = ((width / 2) - (w / 2)) + dualScreenLeft;
    var top = ((height / 2) - (h / 2)) + dualScreenTop;
    var newWindow = window.open(url, title, 'scrollbars=yes, width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);

    // Puts focus on the newWindow
    if (window.focus) {
        newWindow.focus();
    }
}

Wednesday, January 19, 2011

Viber app - Free calls/sms on your mobile phone

This app allows you to call "free" to any other viber users - you need a data package, but who haven't got one ;)

The app will come for Android soon, and another great upcoming feature is the free sms app, you can see much more on: http://www.viber.com/

I can't wait to get it on my Android phone, if you have tried the product, pleas leave a comment, pros/cons?

Update: It is finally here, I have just testet texting and calling, this could get big!

Thursday, January 13, 2011

Welcome to my new blog!

I've decided to convert my dotnetblogengine to a blogspot blog, and I have bought a new name for the blog, in the same process.

The reason I bought a new domain name, is because i wanted something shorter, and i was able to make it quite short and with my initials in it TF, the x represents the unknown parameter.

Why i choose blogspot is because nearly all my other products is google, and they work very well together, so it was a natural choice, another selling point was that I don't have to "mange" my own application anymore.

The blog is far from done yet! ..I will give it a new design soon, and much more to come. I will also start blogging a bit more again, the reason why i haven't blogged this much recently, is because I was very tired of the "trouble" I had to go to, just to write a blog.

All posts older than this, is directly imported from my old blog frostyzone.net.