Asus P8Z68-Z Pro, no sound in flash/no system sounds

http://www.mydigitallife.info/adobe-flash-no-sound-wavemapper-trick/#comments

Check if the file msacm32.drv is present in your Windows system32 folder. If not, copy it from another PC (that has the same version of Windows) and place the file in the system32 folder. This applies to Vista and 7 64Bit but in the SysWOW64 directory which is the folder for the 32 bit programs running on the 32bit virtual machine.

A very common sound problem is an incorrect or missing registry key for msacm32.drv discussed in the preceding.

1.Launch Registry Editor by typing regedit at Run command.

2. Navigate to the following registry key:

For XP and Vista 32Bit:

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionDrivers32

3. On the right pane, and check for existence of “wavemapper” registry subkey, the mail culprit

causing Flash no sound. If not found, create a new String value named “wavemapper”, and give the

entry value “msacm32.drv”. If wavemapper entry is already existed, ensure that its value data

is“msacm32.drv”.

For XP and Vista and 7 64bit:

HKEY_LOCAL_MACHINESOFTWAREWow6432NodeMicrosoftWindows NTCurrentVersionDrivers32

4. On the right pane, and check for existence of “wavemapper” registry subkey, the mail culprit

causing Flash no sound. If not found, create a new String

value named “wavemapper”, and give the entry value “msacm32.drv”.

If wavemapper entry is already existed, ensure that its value data is “msacm32.drv”.

5. In addition the permissions/security on these keys can prevent your browser flash plugin from

accessing them and preventing sound. Also if you receive errors editing or the key is blank you

need to check the permissions by right clicking on the key and choosing permissions. Choose

Advanced and make sure that the Administrators, System, Users Groups have “Full Control” under

permissions if not select them and click Edit and tick “Full Control” under the “Allow” column.

Installing Windows 7 from USB

All you have to do is use diskpart to make the drive active.

Here.

diskpart
list disk
select disk 1 (1 being your USB device)
clean
create partition primary
active
format fs=fat32 quick
assign

then just copy the ISO contents or disk contents to the flash drive. NOT THE ISO. Just the contents.

Done. Takes like 5 minutes.

Interactive scene and EPiServer Composer, with wmode=”opaque”

You cannot load interactive scene using , because PropertyInteractiveScenePlaylistControl will try to convert it to an EPiServer property and fail.

I solved this by going through all properties in this.contentFunctions in the Extensions usercontrol, and adding them to a new pagedatacollection which i then showed in a repeater.

Edit field toolbar button for Lotus Notes


choices := @DocFields;
fullChoices := @Transform(choices; "x"; x + " = " + @Implode(@Text(@GetField(x)); ";"));
fieldName := @Prompt([OkCancelEditCombo]; "Field Name"; "Select a field name from the combobox list."; ""; FullChoices);
fieldName := @Left(fieldName; " = ");
oldValue := @GetField(fieldname);
newValue := @Explode(@Prompt([OkCancelEdit]; "New Field Value"; "Please enter the new field value." + @Char(13) + "For multivalues -- don't put space after ;"; @Implode(@Text(oldvalue); ";")); ";");
adjValue :=
@If(@IsNumber(oldValue); @TextToNumber(newValue);
@IsTime(oldValue); @TextToTime(newValue); newValue);
@If([email protected](adjValue);
@Do(@SetField(fieldName; adjValue); @Prompt([Ok]; "Field change completed"; "Old field value: " + @Text(oldValue) + @Char(13) + @Char(13) + "has been changed to" + @Char(13) + @Char(13) + "new field value: " + @Text(newValue)));
@Prompt([YesNo]; "Change field value"; "New value not of same type as old value. Set field to text?");
@SetField(fieldName; newValue); "")

Change password of aspnet user

Declare @UserName NVarChar(30)
Declare @Password NVarChar(30)
Declare @Application NVarChar(255)
Declare @PasswordSalt NVarChar(128)

set @UserName = 'anders.friberg';
set @Password = 'password123';
set @Application = 'EPiServerSample';
Set @PasswordSalt = (SELECT 1 PasswordSalt FROM aspnet_Membership WHERE UserID IN (SELECT UserID FROM aspnet_Users u, aspnet_Applications a WHERE [email protected] and a.ApplicationName = @Application AND u.ApplicationId = a.ApplicationId))

Exec dbo.aspnet_Membership_ResetPassword @Application, @UserName, @Password, 10, 10, @PasswordSalt, -5

Custom EPiServer DropDownList property based on PropertyNumber

using System;
using System.Diagnostics;
using System.Web.UI;
using System.Web.UI.WebControls;
using Brynas;
using EPiServer.Core;
using EPiServer.PlugIn;
using EPiServer.Web.PropertyControls;

namespace Brynas.SpecializedProperties
{
/* public class Log
{
public static void writeToEventLog(string message)
{
EventLog myLog = new EventLog();
if (!EventLog.SourceExists("Web")) EventLog.CreateEventSource("Log", "Application");

myLog.Source = "Web";
myLog.WriteEntry(message, EventLogEntryType.Information);
myLog.Close();
}
}*/

public class GripStyle {
int _index = -1;
string _name = null;

public GripStyle(int index, string name) {
this._index = index;
this._name = name;
}

public int Index {
get {
return this._index;
}
set {
this._index = value;
}
}

public string Name {
get {
return this._name;
}
set
{
this._name = value;
}
}
}

///

/// Summary description for
///

[Serializable]
[PageDefinitionTypePlugIn(DisplayName="BIF_PlayerGripStyle")]
public class BIF_PlayerGrip : PropertyNumber
{
int _value;

protected override void SetDefaultValue()
{
ThrowIfReadOnly();
_value = -1;
}

public override PropertyData ParseToObject(string value)
{

BIF_PlayerGrip grip = new BIF_PlayerGrip();

int newVal;
if (int.TryParse(value, out newVal))
grip.Value = newVal;

return grip;
}

public override void ParseToSelf(string value)
{
int retVal;

if (int.TryParse(value, out retVal))
this.Value = retVal;
else
this.Value = 0;
}

public override Type PropertyValueType
{
get
{
return typeof(int);
}
}

public override PropertyDataType Type
{
get
{
return PropertyDataType.Number;
}
}

public override IPropertyControl CreatePropertyControl()
{
return new BIF_PlayerGripType();
}

public override object Value
{
get
{
return _value;
}
set
{
int newValue = (int)value;
SetPropertyValue(value, delegate() { intValue = newValue; });
}
}

public int intValue
{
get
{
return _value;
}
set
{
ThrowIfReadOnly();
if (value != _value || IsNull)
{
_value = value;
Modified();
}
}
}
}

public class BIF_PlayerGripType : PropertyDataControl
{
DropDownList dd;
public static GripStyle[] GripStyles = new GripStyle[] {
new GripStyle(0, ""),
new GripStyle(1, "Vänster"),
new GripStyle(2, "Höger")
};

public BIF_PlayerGripType()
{
this.dd = new DropDownList();

foreach (GripStyle grip in GripStyles)
{
ListItem li = new ListItem(grip.Name, grip.Index.ToString());
this.dd.Items.Add(li);
}
}

public BIF_PlayerGrip BIF_PlayerGrip
{
get
{
return this.PropertyData as BIF_PlayerGrip;
}
}

public override void CreateDefaultControls()
{
if (BIF_PlayerGrip != null && BIF_PlayerGrip.Value != null)
{
Literal l = new Literal();
l.Text = GripStyles[(int)BIF_PlayerGrip.Value].Name;
this.Controls.Add(l);
}
}
public override void CreateEditControls()
{
this.dd = new DropDownList();
this.ApplyControlAttributes(this.dd);
Controls.Add(this.dd);
this.SetupEditControls();
}
public override void CreateOnPageEditControls()
{
this.dd = new DropDownList();
this.ApplyControlAttributes(this.dd);
Controls.Add(this.dd);
this.SetupEditControls();
}
protected override void SetupEditControls()
{
foreach (GripStyle grip in GripStyles)
{
this.dd.Items.Add( new ListItem(grip.Name, grip.Index.ToString()) );
}
if (BIF_PlayerGrip != null && BIF_PlayerGrip.Value != null && BIF_PlayerGrip.Value.ToString() != null)
{
this.dd.SelectedValue = BIF_PlayerGrip.Value.ToString();
}
}

public static string GetGrip(string s)
{
foreach(GripStyle grip in GripStyles) {
if (grip.Index.ToString() == s)
return grip.Name;
}
return "";
}

public override void ApplyEditChanges()
{
base.SetValue(int.Parse(this.dd.SelectedValue));
}
public override void ApplyOnPageEditChanges()
{
base.SetValue(int.Parse(this.dd.SelectedValue));
}
}
}

Fixes for EPiServer Composer client script issues in Internet Explorer and Firefox

From dropIT blog http://labs.dropit.se/blogs/post/2009/10/23/Fixes-for-EPiServer-Composer-client-script-issues-in-Internet-Explorer-and-Firefox.aspx

In my current EPiServer project (using EPiServer CMS R2 SP2 and EPiServer Composer) I discovered a bunch of client script issues which basically made it impossible to use Composer in any web browser. This post describes these issues, how to fix them and make it possible to use Composer in the latest versions of Internet Explorer and Firefox.

Problems in Internet Explorer

  • Script error “Extension.Client not found” when saving content function data in Internet Explorer 7 and 8.
  • Not possible to create functions in Internet Explorer 8 standard mode. Error message when dragging functions to page.

Both of these problems are related to how the setAttribute method of the DOMElement is handled in Internet Explorer. The solution is to pass an empty string as value instead of null.

Fixes:

Add the following code to Dropit\Plugin\Extension\UI\Js\Utils.js

[code lang=”javascript”]
Util.HandleNulls = function(val) {
    return (val == null || val == “null”) ? “” : val;
}[/code]
Locate the function Extension.ContentFunction.prototype.ToXml in Dropit\Plugin\Extension\UI\Js\Extension.ContentFunction.js

Replace line 444:

[code lang=”javascript”]
contentFunctionNode.setAttribute(“remotesite”, this.RemoteSite);
[/code]
with this code:
[code lang=”javascript”]
contentFunctionNode.setAttribute(“remotesite”, Util.HandleNulls(this.RemoteSite));
[/code]
Locate the function Extension.ContentArea.prototype.HandleCategoryItem in Dropit\Plugin\Extension\UI\Js\Extension.ContentArea.js

Replace lines 354 and 355:

[code lang=”javascript”]
div.setAttribute(“pid”, pid);
div.setAttribute(“wid”, wid);
[/code]
With this code:

[code lang=”javascript”]
div.setAttribute(“pid”, Util.HandleNulls(pid));
div.setAttribute(“wid”, Util.HandleNulls(wid));
[/code]

Problem in Firefox 3.5

Drag and drop doesn’t work. Nothing happens when you drag a function from the toolbox.

Fix:

This turned out to be solved. You can read more about it in this thread on EPiServer World. Simply replace your Rico.js file with this one: http://www.m2b.se/ext/composer/rico.js.