On the circular path from RAII to crazy-town back to RAII: Thoughts on emulating C#’s using in C++


SQL Query!


-- SUM Packages with count of updates in each package
SELECT PC.PkgId, P.Name, COUNT(distinct SU.CI_ID) AS NumberOfUpdates FROM fn_ListUpdateCIs(1033) SU
INNER JOIN vSMS_CIToContent CC ON CC.CI_ID = SU.CI_ID
INNER JOIN vCI_ContentPackages PC ON PC.Content_ID = CC.ContentID
JOIN SMSPackages P ON PC.PkgID = P.PkgID AND P.PackageType = 5
WHERE SU.IsContentProvisioned = 1
GROUP BY PC.PkgID, P.Name
ORDER BY COUNT(distinct SU.CI_ID) DESC

 

PS script!

$Computer = "."
$Class = "SMS_Client"
$Method = "TriggerSchedule"
$Sched = "{00000000-0000-0000-0000-000000000021}"
$MC = [WmiClass]"\\$Computer\ROOT\ccm:$Class"</pre>
$InParams = $mc.psbase.GetMethodParameters($Method)

$InParams.sScheduleID = $Sched

"Calling SMS_Client. : TriggerSchedule with Parameters :"
$inparams.PSBase.properties | select name,Value | format-Table

$R = $mc.PSBase.InvokeMethod($Method, $inParams, $Null)
"Result :"
$R | Format-list

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>WordPress.com Code Example</title>
</head>
<body>
    <h1>WordPress.com Code Example</h1>
 
    <p><?php echo 'Hello World!'; ?></p>
 
    <p>This line is highlighted.</p>
 
    <p>This line is very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very very long.</p>
 
    <div class="foobar">
        This    is  an
        example of  smart
        tabs.
    </div>
 
    <p><a href="http://wordpress.com/">WordPress.com</a></p>
</body>
</html>
function wds_cloud_platform_blog_level_logo() {

	$site_logo = wds_cloud_platform_get_option( 'header_image' );

  if ( is_ssl() ) {
		$site_logo = str_replace( 'http://', 'https://', $site_logo );
	}

	if ( ! empty( $site_logo ) ) {

		$output  = '<a href=' . esc_url( home_url( '/' ) ) . ' title="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" rel="home">';
		$output .= '<img src="';
		$output .= $site_logo ? $site_logo : '';
		$output .= '" alt="' . esc_attr( get_bloginfo( 'name', 'display' ) ) . '" />';
		$output .= '</a>';

		return $output;
	}
}
#button {
    font-weight: bold;
    border: 2px solid #fff;
}
consoloe.log("hello");
Comments (7)

  1. blogsuser says:

    comment by subscriber

  2. blogsuser says:

    comment by blogsuser

  3. BlogsAuthor says:

    comment by blogsauthor

  4. blogswikiadm says:

    long description This sample demonstrates data analysis tasks executed using toolbar buttons and menus in Microsoft Office Excel 2007. The data is stored in XML files. In addition, the sample is completely localizable; it demonstrates how to take advantage of System.Resources..::.ResourceManager and managed resource (RESX) files. The code was written to be globalized using culture-switching techniques that were necessary in earlier versions of Visual Studio Tools for Office. Those techniques are no longer necessary because of a change in how Visual Studio Tools for Office works with Excel. For more information, see Globalization and Localization of Office Solutions, Formatting Data in Excel with Various Regional Settings, and How to: Make String Literals Region-safe in Excel Using Reflection. Note: This sample does not run if you have an English language version of Office running on Windows with regional settings other than English (United States). The sample is a simple inventory management tool for a fictitious ice cream store. The workbook has systems for tracking sales, inventory in storage, and the products sold. Each of these systems stores data in XML files. The store has the following constraints on inventory: Storage capacity is limited to 300 units of ice cream. Ice cream orders are delivered once per week, in the morning. Orders must be placed a minimum of two days before scheduled delivery date. The schedule is to place the order on Tuesday, and receive delivery on Thursday. If additional stock is needed outside of the normal delivery schedule, there is an additional charge of 25 to have the order delivered. Security Note: This sample code is intended to illustrate a concept, and it shows only the code that is relevant to that concept. It may not meet the security requirements for a specific environment, and it should not be used exactly as shown.

Skip to main content