cyprich.com

By

MSSQL: How to Get Database Out of “Restoring” State

When you backup a database and then later try to restore it, you might get a message that the database is in a restoring state. Here is how you can fix this. Read More

By

Fixing “Microsoft.Net.Compilers is only supported on MSBuild v16.3 and above” Error

Quick and easy fix for MSBuild errors. Read More

By

Installing WordPress from the Command Line

How to install WordPress from the command line in Linux.

Read More

By

Add Contact to Maximizer Address Book with PHP

The class below is an example how to post data from a web form to the address book in Maximizer. The first thing you need to do is create a Web Form in Maximizer (Administration -> Web Forms). The PHP class below uses the fields that were created for the form (your form will have different fields). The class uses the “name” from <input> in the Maximizer Web Form for the PHP SaveToAddressBook() method. You also need to pass the “action” string from the <form> to the method. When the method is called, it won’t be displayed on the web page since its hidden by CSS, and its submitted automatically by a JavaScript button press.

The Maximizer generated Web Form isn’t complicated. If you remove all of the styling and validation code, you can easily use the <input> fields in any web application. The class below only has the essential code for posting the form.

—[ code ]———————————–

<?php

class MaxLibrary
{
// This is the “action” string in the <form> declaration.
private $_action;

// These are for the <input> fields in the form.
private $_first_name;
private $_last_name;
private $_company;
private $_phone;
private $_email;

public function __construct ($action, $first_name, $last_name, $company, $phone, $email)
{
$this->_action = $action;

$this->_first_name = $first_name;
$this->_last_name = $last_name;
$this->_company = $company;
$this->_phone = $phone;
$this->_email = $email;
}

///////////////////////////////////////////////////////////////////////////////////////////////
// Load form with data and automatically press submit button to send data to Maximizer.
// The “name” in the <input> statements in this function must match the name in Maximizer
// generated form.
///////////////////////////////////////////////////////////////////////////////////////////////

public function SaveToAddressBook ()
{
?>
<div style=’display: none;’>
<form name=’form_maximizer’ method=’post’ action='<?php echo $this->_action; ?>’>
<input name=’C0IFirstName’ type=’text’ value='<?php echo $this->_first_name; ?>’><br>
<input name=’C1ILastName’ type=’text’ value='<?php echo $this->_last_name; ?>’><br>
<input name=’C2ICompanyName’ type=’text’ value='<?php echo $this->_company; ?>’><br>
<input name=’C3IPhone1′ type=’text’ value='<?php echo $this->_phone; ?>’><br>
<input name=’U4I58850′ type=’text’ value='<?php echo $this->_email; ?>’><br>
</form>
</div>

<script type=”text/javascript”>
window.onload=function ()
{
document.forms[‘form_maximizer’].submit();
}
</script>
<?php
}
}

By

How To Fix An Endless Adobe Validating Software License Screen

I really enjoy errors in software that occur randomly for no reason. 🙂 One that recently occurred was an installed Adobe application (InDesign) that suddenly failed to start. Reinstalling the software didn’t help. Starting the application would run Adobe Creative Cloud instead where it tried to endlessly validate a software license.

This was fixed by deleting 4 folders:

  • C:\ProgramData\Adobe\SLstore
  • C:\Program Files (x86)\Common Files\Adobe\Adobe PCD
  • C:\Program Files (x86)\Common Files\Adobe\caps
  • C:\Users\[User Name]\AppData\Local\Adobe\OOBE

Once deleted, InDesign was able to run again after I logged into Adobe with my credentials.