Installing Drupal 7 on Windows Azure with the Windows Azure App Companion Tool
http://channel9.msdn.com/Blogs/Interoperability/Installing-Drupal-7-on-Windows-Azure-with-the-Windows-Azure-App-Companion-Tool
CSJ101
Friday, July 1, 2011
Tuesday, June 14, 2011
Wednesday, March 30, 2011
Windows Azure Blob Storage vs. Amazon S3
Windows Azure Blob Storage vs. Amazon S3
— Gladinet Cloud Desktop reached version 1.4.2 (build 232). Windows Azure Blob Storage has been officially added to the list of supported Cloud Storage Providers (S3, AT&T, Google …). This means you can map a network drive to the Windows. As always, every time we add a new storage provider integration, we would compare it to the existing ones, such as Amazon S3. Since Gladinet Cloud Desktop can map both as virtual folders in a network drive, a quick drag-and-drop upload/download experiment should be easy.
Cloud computing refers to the provision of computational resources on demand via a computer network.
Cloud computing can be compared to the supply of electricity and gas, or the provision of telephone, television and postal services. All of these services are presented to the users in a simple way that is easy to understand without the users needing to know how the services are provided. This simplified view is called an abstraction. Similarly, cloud computing offers computer application developers and users an abstract view of services that simplifies and ignores much of the details and inner workings. A provider's offering of abstracted Internet services is often called "The Cloud".
Wednesday, January 26, 2011
Mouse Over Rollover Image with JavaScript Code
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<a href="http://www.WEBSITE.com" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('IMGTITLE','','../MYSECONDIMAGE.png',1)">
<img src="/MYORIGINALIMAGE.png" name="IMGTITLE"
width="79" height="76" border="0" id="omc history" /></a>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<script type="text/javascript">
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
</script>
</head>
<a href="http://www.WEBSITE.com" onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('IMGTITLE','','../MYSECONDIMAGE.png',1)">
<img src="/MYORIGINALIMAGE.png" name="IMGTITLE"
width="79" height="76" border="0" id="omc history" /></a>
Thursday, December 2, 2010
XML Driven Photo Gallery in Flash CS5
Here is the ActionScript.
import flash.net.URLRequest;
import flash.net.URLLoader;
import flash.events.Event;
import fl.controls.Button;
import flash.display.Shape;
import flash.events.MouseEvent;
import flash.display.MovieClip;
import flash.display.Loader;
import flash.text.TextField;
import fl.transitions.*;
import fl.transitions.easing.*;
import flash.display.Shader;
var hasloaded:Boolean = false;
var firstLoaded:Boolean = false;
var barWidth:int;
var barHeight:int;
var images;
var imageCount:int;
var thumbnailArray:Array = new Array();
var bigImageArray:Array = new Array();
var descriptionArray:Array = new Array();
var xmlLoader:URLLoader = new URLLoader();
var imageXML:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("slideshow.xml"));
function LoadXML(e:Event):void {
imageXML = new XML(e.target.data);
ParseImages(imageXML);
}
/*******************************************
Populates the arrays with the image values
and the text for each picture.
*******************************************/
function ParseImages(imageInput:XML):void {
var iconList:XMLList = imageInput.image.icon;
var mainImageList:XMLList = imageInput.image.mainimage;
var descriptionList:XMLList = imageInput.image.description;
for (var i:int = 0; i < iconList.length(); i++) {
var imageElement:XML = iconList[i];
//trace(imageElement);
thumbnailArray[i] = imageElement;
}
for (var j:int = 0; j < mainImageList.length(); j++) {
var mainimageElement:XML = mainImageList[j];
//trace(mainimageElement);
bigImageArray[j] = mainimageElement;
}
for (var l:int = 0; l < descriptionList.length(); l++) {
var descriptionElement:XML = descriptionList[l];
//trace(descriptionElement);
descriptionArray[l] = descriptionElement;
}
loadImages();
}
function loadImages():void{
trace("inside of loadimages function.");
trace(thumbnailArray.length);
for(var i:int=0; i < thumbnailArray.length; i++){
trace(thumbnailArray[i]);
populateContainers(thumbnailArray[i], i);
//populateContainers2();
trace("Loaded " + thumbnailArray[i]);
}
}
var loader:Loader;
var xStart = -210;
var ypos = -34;
var currentPos = xStart;
var incrementValue = 66;
/*************************************************
This takes in the name of the image file and
displays it within the newly created movie clip
*************************************************/
function populateContainers(file:String, pos:int):void{
//create a movie clip to hold the image
var mc:MovieClip = new MovieClip();
mc.graphics.beginFill(0xFFFFFF);
mc.graphics.drawRect(0, 0, 50, 51);
mc.graphics.endFill();
mc.buttonMode = true;
mc.x = currentPos;
mc.y = ypos;
mc.name = "thumb_" + pos;
mc.addEventListener(MouseEvent.CLICK, clickHandler);
loader = new Loader();
//loader.mask = imagemask;
var url:URLRequest = new URLRequest(file);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadInitialImage);
loader.load(url);
//add the image to the movie clip
mc.addChild(loader);
this.imageBar.addChild(mc);
//increment the currentPos
currentPos += incrementValue;
}
function clickHandler(e:MouseEvent):void{
var str:String = e.currentTarget.name;
var index:int = int(str.substr(6,1));
if(hasloaded) {
this.mainWindow.removeChild(loader);
}
loader = new Loader();
loader.load(new URLRequest(bigImageArray[index]));
this.mainWindow.addChild(loader);
TransitionManager.start(this.mainWindow,{type:Fade, direction:Transition.IN, duration:2, easing:Regular.easeOut});
//setChildIndex(loader, 0);
hasloaded = true;
loadText(index);
}
function loadText(index:int):void {
Object(this).imageBar.txtdescription.text = descriptionArray[index];
}
function loadInitialImage(event:Event):void {
if(!firstLoaded) {
loader = new Loader();
loader.load(new URLRequest(bigImageArray[0]));
this.mainWindow.addChild(loader);
TransitionManager.start(this.mainWindow,{type:Fade, direction:Transition.IN, duration:2, easing:Regular.easeIn});
//setChildIndex(loader, 0);
hasloaded = true;
loadText(0);
}
firstLoaded = true;
}
/* This section defines the buttons that control the image bar */
Object(this).imageBar.btnBarOpen.addEventListener(MouseEvent.MOUSE_UP, openImageBar);
function openImageBar(event:MouseEvent):void {
this.gotoAndPlay(1);
}
Thursday, November 18, 2010
MAC Failed?
Got this error message during DNN Log in. hmm..
An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: ::1 Port: 57412 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ViewState: /wEPDwULLTE2NDIyOTEzMjkPZBYGZg8WAh4EVGV4dAV5PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFsLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25hbC5kdGQiPmQCAQ9kFg4CBA8WAh4HVmlzaWJsZWhkAgUPFgIeB2NvbnRlbnQFAQpkAgYPFgIfAgUXUW5leGlzLCAsRG90TmV0TnVrZSxETk5kAgcPFgIfAgUYQ29weXJpZ2h0IDIwMTAgYnkgUW5leGlzZAIIDxYCHwIFC0RvdE5ldE51a2UgZAIJDxYCHwIFE1FuZXhpczogRE5OIFdlYnNpdGVkAgwPFgIfAgUNSU5ERVgsIEZPTExPV2QCAg9kFgICAQ9kFgQCBA9kFgJmD2QWFmYPZBYCZg9kFgJmDxYCHwFoFgQCAQ9kFggCAw8QZGQWAGQCBw8WAh8BaGQCCQ8WAh8BaGQCCw9kFgJmDw8WBh4ISW1hZ2VVcmwFHy9kb3RuZXRudWtlL2ltYWdlcy9jb2xsYXBzZS5naWYeDUFsdGVybmF0ZVRleHQFCE1pbmltaXplHgdUb29sVGlwBQhNaW5pbWl6ZRYKHgd1c2VyY3RyBQlVc2FiaWxpdHkeB3VzZXJrZXkFFENvbnRyb2xQYW5lbFZpc2libGUxHgdvbmNsaWNrBVBpZiAoX19kbm5fU2VjdGlvbk1heE1pbih0aGlzLCAgJ2Rubl9SaWJib25CYXIuYXNjeF9SQl9SaWJib25CYXInKSkgcmV0dXJuIGZhbHNlOx4... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter
An error has occurred.
DotNetNuke.Services.Exceptions.PageLoadException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.HttpException: Validation of viewstate MAC failed. If this application is hosted by a Web Farm or cluster, ensure that configuration specifies the same validationKey and validation algorithm. AutoGenerate cannot be used in a cluster. ---> System.Web.UI.ViewStateException: Invalid viewstate. Client IP: ::1 Port: 57412 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12 ViewState: /wEPDwULLTE2NDIyOTEzMjkPZBYGZg8WAh4EVGV4dAV5PCFET0NUWVBFIGh0bWwgUFVCTElDICItLy9XM0MvL0RURCBYSFRNTCAxLjAgVHJhbnNpdGlvbmFsLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL1RSL3hodG1sMS9EVEQveGh0bWwxLXRyYW5zaXRpb25hbC5kdGQiPmQCAQ9kFg4CBA8WAh4HVmlzaWJsZWhkAgUPFgIeB2NvbnRlbnQFAQpkAgYPFgIfAgUXUW5leGlzLCAsRG90TmV0TnVrZSxETk5kAgcPFgIfAgUYQ29weXJpZ2h0IDIwMTAgYnkgUW5leGlzZAIIDxYCHwIFC0RvdE5ldE51a2UgZAIJDxYCHwIFE1FuZXhpczogRE5OIFdlYnNpdGVkAgwPFgIfAgUNSU5ERVgsIEZPTExPV2QCAg9kFgICAQ9kFgQCBA9kFgJmD2QWFmYPZBYCZg9kFgJmDxYCHwFoFgQCAQ9kFggCAw8QZGQWAGQCBw8WAh8BaGQCCQ8WAh8BaGQCCw9kFgJmDw8WBh4ISW1hZ2VVcmwFHy9kb3RuZXRudWtlL2ltYWdlcy9jb2xsYXBzZS5naWYeDUFsdGVybmF0ZVRleHQFCE1pbmltaXplHgdUb29sVGlwBQhNaW5pbWl6ZRYKHgd1c2VyY3RyBQlVc2FiaWxpdHkeB3VzZXJrZXkFFENvbnRyb2xQYW5lbFZpc2libGUxHgdvbmNsaWNrBVBpZiAoX19kbm5fU2VjdGlvbk1heE1pbih0aGlzLCAgJ2Rubl9SaWJib25CYXIuYXNjeF9SQl9SaWJib25CYXInKSkgcmV0dXJuIGZhbHNlOx4... --- End of inner exception stack trace --- at System.Web.UI.ViewStateException.ThrowError(Exception inner, String persistedState, String errorPageMessage, Boolean macValidationError) at System.Web.UI.ObjectStateFormatter.Deserialize(String inputString) at System.Web.UI.Util.DeserializeWithAssert(IStateFormatter
Subscribe to:
Posts (Atom)