Call of Duty Black Ops 2 Review

by sunil ravulapalli /14. January 2013 05:31 /games /Comments (0)

Call of Duty Black Ops 2 is pretty epic. The ending however felt a little abrupt. Its interesting the there were so many different ending which were possible. I wonder how they will pick up the story for Black Ops 3. I still think somehow Modern warfare 2 was the best campaign in the Call of duty series, but this comes a close second for me. Anyways, on HALO 4 now.

Web.config not Transforming after TFS build

by sunil ravulapalli /8. January 2013 22:20 /tfs /Comments (0)

Web.config will not transform by the basic TFS build.
You need do a Deploy the application before the transform kicks in.

In your TFS build definition go to the process tab and in the MSBuild arguments put this:
/p:DeployOnBuild=true;DeployTarget=PipelinePreDeployCopyAllFilesToOneFolder;
_PackageTempDir="\\DRIVE\Builds\Appname";AutoParameterizationWebConfigConnectionStrings=false

Deploy a Web Application after TFS Build

by sunil ravulapalli /8. January 2013 22:01 /tfs /Comments (0)

In your TFS build definition go to the process tab and in the MSBuild arguments put this:
/p:DeployOnBuild=true;DeployTarget=PipelinePreDeployCopyAllFilesToOneFolder;
_PackageTempDir="\\DRIVE\Builds\Appname";AutoParameterizationWebConfigConnectionStrings=false

How to delete a TFS Project

by sunil ravulapalli /2. January 2013 23:43 /tfs /Comments (0)

1. Open visual studio Command Prompt
2. Run this Command:
C:\Program Files (x86)\Microsoft Visual Studio 11.0>
TFSDeleteProject /force /collection:http://servername:8080/tfs/collectioname projectname

Could not load file or assembly 'Oracle.DataAccess, Version=1.102.4.0, Culture=neutral, PublicKeyToken=89b483f429c47342'

by sunil ravulapalli /18. May 2012 21:14 /.net /Comments (0)

This happens if you developed your Application using an older oracle client(oracle 10) and deployed it to a machine using a newer oracle client (11g) Copy the new Oracle.DataAccess.dll to the bin in the new machine, and put this in your servers web.config under the configuration tag to pick up the new oracle client.

 

WinJS.UI.AppBar icons

by sunil ravulapalli /28. March 2012 04:32 /windows8 /Comments (0)
previous: \uE100
next: \uE101
play: \uE102
pause: \uE103
edit: \uE104
save: \uE105
clear: \uE106
delete: \uE107
remove: \uE108
add: \uE109
cancel: \uE10A
accept: \uE10B
more: \uE10C
redo: \uE10D
undo: \uE10E
home: \uE10F
up: \uE110
forward: \uE111
right: \uE111
back: \uE112
left: \uE112
favorite: \uE113
camera: \uE114
settings: \uE115
video: \uE116
sync: \uE117
download: \uE118
mail: \uE119
find: \uE11A
help: \uE11B
upload: \uE11C
emoji: \uE11D
twopage: \uE11E
leavechat: \uE11F
mailforward: \uE120
clock: \uE121
send: \uE122
crop: \uE123
rotatecamera: \uE124
people: \uE125
closepane: \uE126
openpane: \uE127
world: \uE128
flag: \uE129
previewlink: \uE12A
globe: \uE12B
trim: \uE12C
attachcamera: \uE12D
zoomin: \uE12E
bookmarks: \uE12F
document: \uE130
protecteddocument: \uE131
page: \uE132
bullets: \uE133
comment: \uE134
mail2: \uE135
contactinfo: \uE136
hangup: \uE137
viewall: \uE138
mappin: \uE139
phone: \uE13A
videochat: \uE13B
switch: \uE13C
contact: \uE13D
rename: \uE13E
pin: \uE141
musicinfo: \uE142
go: \uE143
keyboard: \uE144
dockleft: \uE145
dockright: \uE146
dockbottom: \uE147
remote: \uE148
refresh: \uE149
rotate: \uE14A
shuffle: \uE14B
list: \uE14C
shop: \uE14D
selectall: \uE14E
orientation: \uE14F
import: \uE150
importall: \uE151
browsephotos: \uE155
webcam: \uE156
pictures: \uE158
savelocal: \uE159
caption: \uE15A
stop: \uE15B
showresults: \uE15C
volume: \uE15D
repair: \uE15E
message: \uE15F
page2: \uE160
calendarday: \uE161
calendarweek: \uE162
calendar: \uE163
characters: \uE164
mailreplyall: \uE165
read: \uE166
link: \uE167
accounts: \uE168
showbcc: \uE169
hidebcc: \uE16A
cut: \uE16B
attach: \uE16C
paste: \uE16D
filter: \uE16E
copy: \uE16F
emoji2: \uE170
important: \uE171
mailreply: \uE172
slideshow: \uE173
sort: \uE174
contactpresence: \uE181
priority: \uE182
uploadskydrive: \uE183
gototoday: \uE184
font: \uE185
fontcolor: \uE186
contact2: \uE187
folder: \uE188
audio: \uE189
placeholder: \uE18A
view: \uE18B
setlockscreen: \uE18C
settile: \uE18D
cc: \uE190
stopslideshow: \uE191
permissions: \uE192
highlight: \uE193
disableupdates: \uE194
unfavorite: \uE195
unpin: \uE196
openlocal: \uE197
mute: \uE198
italic: \uE199
underline: \uE19A
bold: \uE19B
movetofolder: \uE19C
likedislike: \uE19D
dislike: \uE19E
like: \uE19F
alignright: \uE1A0
aligncenter: \uE1A1
alignleft: \uE1A2
zoom: \uE1A3
zoomout: \uE1A4
openfile: \uE1A5
otheruser: \uE1A6
admin: \uE1A7  

Windows 8 Grid application data.js sample to get data asynchronously from multiple sources

by sunil ravulapalli /20. March 2012 19:58 /windows8 /Comments (0)

This code was tested on Windows 8 consumer preview and may be outdated by the time future versions are released.

(function () {
    "use strict";

    var lightGray = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXY7h4+cp/AAhpA3h+ANDKAAAAAElFTkSuQmCC";
    var mediumGray = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXY5g8dcZ/AAY/AsAlWFQ+AAAAAElFTkSuQmCC";
    var darkGray = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXY3B0cPoPAANMAcOba1BlAAAAAElFTkSuQmCC";

    var groups = [
        { key: "group1", title: "Featured products", subtitle: "Featured", backgroundImage: lightGray, description: "Bedding products" },
        { key: "group2", title: "Towel", subtitle: "Featured", backgroundImage: lightGray, description: "Towel products" },
        { key: "group3", title: "Knife", subtitle: "Featured", backgroundImage: lightGray, description: "Knife products" }
    ];

    function groupKeySelector(item) {
        return item.group.key;
    }

    function groupDataSelector(item) {
        return item.group;
    }

    function getItemsFromGroup(group) {
        return list.createFiltered(function (item) { return item.group.key === group.key; });
    }

    var list = new WinJS.Binding.List();
    var groupedItems = list.createGrouped(groupKeySelector, groupDataSelector);

    function downloadError() {

    }

    function processProducts(requests) {

        for (var i = 0; i < requests.length; i++) {
            var xml = requests[i].responseXML;
            var records = xml.selectNodes("//SearchRecord");

            for (var postIndex = 0; postIndex < records.length; postIndex++) {
                var record = records[postIndex];

                var description = record.selectSingleNode("description").text;
                var priceRange = record.selectSingleNode("priceRange").text;
                var itemImage = record.selectSingleNode("itemImage").text.replace("/130/", "/230/");
                var sku = record.selectSingleNode("sku").text;
                var collection = record.selectSingleNode("collection").text;

                list.push({
                    group: groups[i],
                    title: description,
                    subtitle: priceRange,
                    description: description,
                    itemDescription: description,
                    content: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
                    backgroundImage: itemImage
                });
            }
        }
    }

    var dataPromises = [];

    var promise1 = WinJS.xhr({ url: "http://www.samplesite.com/search/searchservice.asmx/Search?searchString=bedding&from=0&blockSize=10" });
    dataPromises.push(promise1);

    var promise2 = WinJS.xhr({ url: "http://www.samplesite.com/search/searchservice.asmx/Search?searchString=towel&from=0&blockSize=6" });
    dataPromises.push(promise2);

    var promise3 = WinJS.xhr({ url: "http://www.samplesite.com/search/searchservice.asmx/Search?searchString=knife&from=0&blockSize=6" });
    dataPromises.push(promise3);

    WinJS.Promise.join(dataPromises).then(processProducts, downloadError);

    WinJS.Namespace.define("data", {
        items: groupedItems,
        groups: groupedItems.groups,
        getItemsFromGroup: getItemsFromGroup
    });
})();

Windows 8 Grid application data.js sample to get data asynchronously

by sunil ravulapalli /20. March 2012 19:54 /windows8 /Comments (0)

This code was tested on Windows 8 consumer preview and may be outdated by the time future versions are released.

(function () {
    "use strict";

    var lightGray = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXY7h4+cp/AAhpA3h+ANDKAAAAAElFTkSuQmCC";
    var mediumGray = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXY5g8dcZ/AAY/AsAlWFQ+AAAAAElFTkSuQmCC";
    var darkGray = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsQAAA7EAZUrDhsAAAANSURBVBhXY3B0cPoPAANMAcOba1BlAAAAAElFTkSuQmCC";

    var groups = [
        { key: "searchResultsGroup", title: "Search Results", subtitle: "Results", backgroundImage: lightGray, description: "Search Results" }
    ];

    function groupKeySelector(item) {
        return item.group.key;
    }

    function groupDataSelector(item) {
        return item.group;
    }

    function getItemsFromGroup(group) {
        return list.createFiltered(function (item) { return item.group.key === group.key; });
    }

    var list = new WinJS.Binding.List();
    var groupedItems = list.createGrouped(groupKeySelector, groupDataSelector);

    function downloadError() {

    }

    function processProducts(request) {
        var xml = request.responseXML;
        var records = xml.selectNodes("//SearchRecord");

        for (var postIndex = 0; postIndex < records.length; postIndex++) {
            var record = records[postIndex];

            var description = record.selectSingleNode("description").text;
            var priceRange = record.selectSingleNode("priceRange").text;
            var itemImage = record.selectSingleNode("itemImage").text.replace("/130/","/230/");
            var sku = record.selectSingleNode("sku").text;
            var collection = record.selectSingleNode("collection").text;

            list.push({
                group: groups[0],
                title: description,
                subtitle: priceRange,
                description: description,
                itemDescription: description,
                content: "Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.",
                backgroundImage: itemImage
            });
        }
    }

    WinJS.xhr({ url: "http://www.samplesite.com/search/searchservice.asmx/Search?searchString=bed&from=0&blockSize=20" }).
            then(processProducts, downloadError);

    WinJS.Namespace.define("data", {
        items: groupedItems,
        groups: groupedItems.groups,
        getItemsFromGroup: getItemsFromGroup
    });
})();

Windows 8 Consumer Preview on Samsung Series 7 Chronos laptop

by sunil ravulapalli /9. March 2012 17:58 /windows8 /Comments (2)

I have a Samsung Series 7 Chronos laptop with the Express cache feature(8GB on board SSD) for faster boot. For several days I wasn't able to load set up a dual boot on a VDH, using this technique from Scott Hanselman.

 http://www.hanselman.com/blog/GuideToInstallingAndBootingWindows8DeveloperPreviewOffAVHDVirtualHardDisk.aspx

I always got this errror

"Setup was unable to create a new system partition or locate an existing system partition. See the Setup log files for more information".

I think it has to do with the fact that this laptop is considered to have two hard disks and there is some discussion on the internet that recent versions of windows has a problem with two hard disks attached to the computer at the same time. The resolution was to just detach one of them before installing windows. However, this was not an option on the laptop.

So, I used VirtualBox and loaded Windows 8 Preview as Virtual Machine.But, it killed the joy of the new UI. It was okay to do some Window 8 Application Coding. But the UI was very jerky. I hated it.

Then one fine day, on my quest to resolve this issue, I bumped into this aticle

http://www.howtogeek.com/75286/how-to-dual-boot-windows-7-and-8-without-re-partitioning-using-vhd/

It involves some powereshell, but it is just running some commands.

Now, I am dual booting Wndows 8 Consumer Preview and it is FAST and BEAUTIFUL.

 

Error DEP1000

by sunil ravulapalli /28. February 2012 03:38 /windows8 /Comments (0)

Error DEP1000 : Cannot copy file "C:\Users\Username\Grid\Debug\resources.pri" to layout "resources.pri" for the following reason: The requested operation cannot be performed on a file with a user-mapped section open.

How to get rid of it?
Uninstall the app from the metro desktop, and rerun the app. This will get rid of this error.