Inércia Sensorial

20 de November de 2012

SWOTOR Nvidia crash

Filed under: Jogos — Tags: , — inerte @ 12:29

All of sudden, the game Star Wars: The Old Republic is crashing my Nvidia drivers. I have a GeForce GTX 460. Oddly, I played the game for months without any issues, but since the last update, it crashes multiple times.

08 de November de 2012

Javascript function to find background task by name on Windows 8

Filed under: Javascript — Tags: — inerte @ 15:59
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FindTask: function (taskName) {
    var background = Windows.ApplicationModel.Background;
    var iter = background.BackgroundTaskRegistration.allTasks.first();
    var hascur = iter.hasCurrent;
 
    while (hascur) {
        var cur = iter.current.value;
 
        if (cur.name === taskName) {
            return cur;
        }
 
        hascur = iter.moveNext();
    }
 
    return null;
}

Powered by WordPress