This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ConfigurationFileMap = new ExeConfigurationFileMap() { ExeConfigFilename = "My.config" }; | |
var config = ConfigurationManager.OpenMappedExeConfiguration(ConfigurationFileMap, ConfigurationUserLevel.None); | |
if (config != null) | |
{ | |
// do stuff | |
config.Save(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ConfigurationFileMap = new ExeConfigurationFileMap() { ExeConfigFilename = "My.config" }; | |
var config = ConfigurationManager.OpenMappedExeConfiguration(ConfigurationFileMap, ConfigurationUserLevel.None); | |
if (config != null) | |
{ | |
// do stuff | |
config.Save(); | |
// Format XML | |
XDocument configXml = XDocument.Load(configuration.FilePath); | |
configXml.Save(configuration.FilePath, SaveOptions.None); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<configuration> | |
<startup useLegacyV2RuntimeActivationPolicy="true"> | |
<supportedRuntime version="v4.0"/> | |
</startup> | |
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<meta content='4;url=http://hjerpbakk.com/' http-equiv='refresh'/> | |
<meta content='NOINDEX, NOFOLLOW' name='ROBOTS'/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (pageName == "saving-configuration-in-c.html") | |
{ | |
pageName = "saving-a-configuration-in-c.html"; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<b:widget id='Blog55' locked='true' title='Blog Posts' type='Blog'> | |
<b:includable id='main'> | |
<b:if cond='data:blog.pageType == "item"'> | |
<b:loop values='data:posts' var='post'> | |
<script type='text/javascript'> | |
var timestamp = '<data:post.timestamp/>'; | |
timestamp = timestamp.split('/'); | |
timestamp = timestamp[2]+'/'+timestamp[0].replace(/^[0]+/g,"")+'/'+timestamp[1].replace(/^[0]+/g,"")+'/'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Dim the background, aka the blog --> | |
<div style='height:100%; | |
width:100%; | |
position:fixed; | |
left:0; | |
top:0; | |
z-index:1 !important; | |
background-color:black; | |
filter: alpha(opacity=75); | |
/* internet explorer */ -khtml-opacity: 0.75; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for f in "$@" | |
do | |
if [ ${f: -4} == ".svg" -o ${f: -4} == ".SVG" ] | |
then | |
python /Applications/Utilities/scour/scour.py --enable-comment-stripping --create-groups --enable-id-stripping --shorten-ids --set-precision=5 --quiet --indent=none -i "$f" -o "$f 2" | |
mv "$f 2" "$f" | |
fi | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(doc, script) { | |
var js, | |
fjs = doc.getElementsByTagName(script)[0], | |
add = function(url, id) { | |
if (doc.getElementById(id)) {return;} | |
js = doc.createElement(script); | |
js.src = url; | |
js.async=true; | |
id && (js.id = id); | |
fjs.parentNode.insertBefore(js, fjs); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Condition Message='.NET Framework 4.0 must be installed prior to installation of [ProductName].'> | |
MsiNetAssemblySupport >= "4.0" | |
</Condition> |
OlderNewer