http://googleanalyticssdk.codeplex.com/wikipage?title=Getting%20Started&referringTitle=Documentation#manifest
Introduction
Formatting GridView control as well as any other ASP.NET data-bound controls like DetailsView, FormView,
which are quintessential in data-centric web applications, could be performed in a rather simple way by using novel CSS3 features tr:nth-child(odd)
and tr:nth-child(even) in order to apply different styles to the odd/even rows (see the following code snippet included in Listing 1):
Suggested technique utilizes exclusively CSS3 features, thus it does not require any server coding or client scripting. The solution is rather universal,
applicable to any HTML 5 Table element, either dynamically generated on the server side (such as GridView, DetailView,
FormView controls pertinent to ASP.NET) or added to the web page as a static HTML element at design time.
Further enhancements could be achieved via "good old" tr:hover CSS styling added to
table rows (tr). In addition to this, the element selectors tr:first-child and tr:last-child could could be used to apply a separate styling
to the first/last rows of the Table element.
Posted By Steve 2/28/2013 4:05:23 PM
http://json2csharp.com/
Posted By Steve 2/27/2013 5:54:32 AM
Private Function conv2Badge(img As Bitmap)
Dim destImage = New Bitmap(img.Width, img.Height, Imaging.PixelFormat.Format32bppArgb)
For x = 0 To img.Width - 1
For y = 0 To img.Height - 1
Dim srcCol = img.GetPixel(x, y)
Dim avgInt = (((CInt(srcCol.R) + CInt(srcCol.G) + CInt(srcCol.B)) / 3) * CInt(srcCol.A)) / 255
Dim destCol = Color.FromArgb(CByte(avgInt), Color.White)
destImage.SetPixel(x, y, destCol)
Next
Next
Return destImage
End Function
Posted By Steve 2/27/2013 5:19:56 AM
http://forum.xda-developers.com/showthread.php?t=2041694
Posted By Steve 2/3/2013 7:09:31 AM
Mount the drives
usb drive 1 and 2
sudo mount /dev/sda1 /mnt/myusbdrive
sudo mount /dev/sdb1 /mnt/myusbdrive2
Get drives to mount on start up Add lines using "sudo nano /etc/fstab"
/dev/sda1 /mnt/myusbdrive ext4 defaults 0 0
/dev/sdb1 /mnt/myusbdrive2 ext4 defaults 0 0
Give everyone read/write permissions
sudo chmod -R 0777 /mnt/myusbdrive
sudo chmod -R 0777 /mnt/myusbdrive2
instructions for SAMBA
http://www.ianrolfe.com/raspberry-pi/configuring-your-raspberry-pi-as-a-nas-server/
format drives http://barracudadrive.com/RaspberryPi.lsp#config
Posted By Steve 2/1/2013 4:55:38 AM
Add < System.Web.Script.Services.ScriptService () > _
to the web service class
Posted By Steve 1/28/2013 10:09:04 PM
More text here ..
more and more text here;
Posted By Steve 11/14/2012 10:13:22 PM
http://www.rhizohm.net/irhetoric/post/2010/11/09/Page-Transition-Animations-and-Windows-Phone-7.aspx
Posted By Steve 11/13/2012 3:00:00 AM
http://msdn.microsoft.com/en-us/library/windowsphone/develop/jj735581(v=vs.105).aspx
Posted By Steve 11/11/2012 10:02:37 PM
Your jQuery: Now With 67% Less Suck
Posted By Steve 11/8/2012 7:28:42 PM
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh465351.aspx
Posted By Steve 9/21/2012 8:00:02 PM
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/br229583.aspx
Posted By Steve 9/21/2012 7:56:28 PM
http://adamkinney.com/blog/2012/03/05/windows-8-appbarbuttonstyles-enumerated-and-visualized/
Posted By Steve 9/18/2012 2:45:16 PM
WinRT Transitions – Creating Fast and Fluid Metro UIs
Posted By Steve 9/17/2012 7:43:25 PM
function center(item) {
var top = ($(window).height() - $(item).outerHeight()) / 2;
var left = ($(window).width() - $(item).outerWidth()) / 2;
top = top - 50;
$(item).css({ position: 'absolute', margin: 0, top: (top > 0 ? top : 0) + 'px', left: (left > 0 ? left : 0) + 'px' });
}
Posted By Steve 9/17/2012 7:02:15 PM
HelloTiles A Simple C# Xaml Application for WinRT/Windows8 to demonstrate Metro Tile Updates
More Tiles
Transitions
Posted By Steve 9/13/2012 6:55:54 PM
http://www.carlosag.net/tools/codetranslator/
Posted By Steve 8/31/2012 6:59:29 PM
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/hh780627.aspx
When a ListView or GridView is bound to a data source that contains groups of data, you can display the grouped data in the list or grid. There are different ways that you can group data coming into your app. The data source might be a list of items where each item also contains a list of items. For example, you could display a list of projects, where each project has a property that is a list of activities. Or you might use a LINQ query that returns grouped items. Here, we see how to display these groups in a list or grid.
Posted By Steve 8/29/2012 10:07:35 PM
http://msdn.microsoft.com/en-us/library/windows/apps/xaml/jj150602.aspx
Posted By Steve 8/29/2012 10:07:15 PM
http://johndoesdesign.com/blog/2011/php/adding-a-facebook-news-status-feed-to-a-website/
Posted By Steve 8/23/2012 6:00:28 PM
http://johndoesdesign.com/blog/2011/php/adding-a-facebook-news-status-feed-to-a-website/
Posted By Steve 8/23/2012 6:00:22 PM
http://www.readwriteweb.com/enterprise/2012/05/top-10-windows-8-features-no-8-storage-spaces.php
Posted By Steve 8/23/2012 1:47:14 PM
http://www.i-programmer.info/news/177-windows-8/3225-new-hands-on-labs-for-windows-8-development.html
Posted By Steve 8/20/2012 6:42:42 PM
TAKEOWN /R /F "I:\MOVIES"
then
CACLS *.* /e /t /p steve.frouge@outlook.com:f
Posted By Steve 8/17/2012 1:19:49 AM
Figured it out. To activate #Windows8 from elevated cmd: slmgr.vbs -ipk "YOUR_PRODUCT_KEY"
Posted By Steve 8/15/2012 9:20:07 PM
http://line25.com/articles/10-css-rules-every-web-designer-should-know
Posted By Steve 8/13/2012 11:47:56 PM
Private Function hasGoodCookie() As Boolean
If Request.Browser.Cookies Then
If Request.Cookies("mylogin") IsNot Nothing Then
Dim email As String = Request.Cookies("mylogin")("email").ToString
Dim pw As String = Request.Cookies("mylogin")("pw").ToString
''check log in info here
Return True
Else
Return False
End If
Else
Return False
End If
Return False
End Function
Private Sub createCookie(email As String, pw As String)
Dim newcookie As New HttpCookie("mylogin")
newcookie.Expires = Now.AddDays(30)
newcookie.Item("email") = email
newcookie.Item("pw") = pw
Response.Cookies.Add(newcookie)
End Sub
Private Sub killCookie()
If Request.Browser.Cookies Then
If Request.Cookies("mylogin") IsNot Nothing Then
Response.Cookies("mylogin").Expires = DateTime.Now.AddDays(-30)
End If
End If
End Sub
Posted By Steve 6/13/2012 8:54:46 PM
Posted By Steve 6/13/2012 8:15:47 PM
function cleanme(c){
var escaped = encodeURIComponent(c);
escaped = removeQuotes(escaped);
return escaped;
}
function removeQuotes(v) {
return v.replace(/'/g, "%27");
}
Posted By Steve 6/12/2012 3:09:10 PM
Posted By Steve 6/12/2012 2:13:33 PM
<%@ MasterType virtualpath="~/Masters/Master1.master" %>
CompanyName.Text = Master.CompanyName
Posted By Steve 6/5/2012 3:59:35 PM
lots of html here
and here
encodeURIComponent("Bad + @ text here");
Posted By Steve 6/5/2012 1:50:19 PM
Escape the input value in javascript
escape($("#inputName").val());
Decode the value in asp .net
Dim decode As String = Web.HttpUtility.UrlDecode(s.value)
Posted By Steve 5/11/2012 4:38:53 PM
1. git commit -m "message"
2. git push "url".git
Posted By Steve 5/10/2012 10:19:36 PM
//SELECTS ALL TEXTBOXES AND CLEARS THEM
$(":text").each(function(i) {
$(this).val(null);
});
//SELECTS ALL CHECKBOEX AND CHECKS THEM
$(":checkbox").each(function(i) {
$(this).prop("checked", true);
});
//RESET DROPDOWNS TO VALUE 0 or Select One
$("select").each(function(i) {
$(this).val("0");
$(this).val("Select One");
});
Posted By Steve 5/9/2012 1:36:21 PM
Posted By Steve 4/30/2012 4:34:10 PM
$(document).ready(function() {
doValidate();
});
function doValidate() {
$(".required").each(function (i) {
var control = this;
validate(control);
$(control).blur(function () {
validate(control);
});
});
}
function validate(cnt) {
var value = $(cnt).val();
if (!value) {
$(cnt).css("background-color", "#F2DEDE");
} else {
$(cnt).css("background-color", "");
}
}
Posted By Steve 4/30/2012 2:14:36 PM
Posted By Steve 4/25/2012 4:00:39 PM
Link
Posted By Steve 3/17/2012 6:46:24 PM
http://stephenwalther.com/blog/archive/2012/03/05/introduction-to-the-asp-net-web-api.aspx
Posted By Steve 3/16/2012 10:39:39 PM
http://box-shadow.info/
Posted By Steve 3/6/2012 1:16:56 PM
http://twitter.github.com/bootstrap/index.html
http://addyosmani.github.com/jquery-ui-bootstrap/#
http://needim.github.com/noty/
Posted By Steve 2/10/2012 9:16:01 PM
NuGet is a Visual Studio extension that makes it easy to install and update open source libraries and tools in Visual Studio.
So install NuGet and get a jump on your next project!
Install NuGet
Posted By Steve 2/3/2012 2:41:36 PM
Best HTML5 Starter page
Posted By Steve 2/2/2012 10:46:30 AM

If you are anything like me (and I fear that you are) then this is your experience with JSON so far:
- Two months ago you'd never heard of JSON
- One month ago you'd heard the term but paid no attention
- One week ago you'd heard it mentioned a few times and started to think, right... some more crap to learn
- Today you woke up with an alarm bell ringing in the back of your mind that said WHAT THE BLOODY HELL IS THIS JSON THING AND WHY IS IT EVERYWHERE ALL OF A BLOODY SUDDEN!
Well I had a slow bus ride home tonight (friday is always slow) and i took a pile of "JSON" tutorials with me. So now I can gently lead you through some BabySteps in JSON.
here we go...
Posted By Steve 2/2/2012 10:37:09 AM
To allow the startup account to automatically modify SPNs as non domain admin you need to give ReadServicePrincipalName and WriteServicePrincipalName the correct permissions.
Ask your domain admin or if you are one, follow the steps below.
1. The ADSIEdit tool is included in the Windows Support Tools
2. Click Start, click Run, type Adsiedit.msc, and then click OK. (must be a domain admin)
3. In the ADSI Edit snap-in, expand Domain [DomainName], expand DC= RootDomainName, expand CN=Users, right-click CN= AccountName , and then click Properties.
4. In the CN= AccountName Properties dialog box, click the Security tab.
5. On the Security tab, click Advanced.
6. In the Advanced Security Settings dialog box, make sure that SELF is listed under Permission entries. If SELF is not listed, click Add, and then add SELF.
7. Under Permission entries, click SELF, and then click Edit.
8. In the Permission Entry dialog box, click the Properties tab.
9. On the Properties tab, click This object only in the Apply onto list, and then click to select the check boxes for the following permissions under Permissions:
Read servicePrincipalName
Write servicePrincipalName
10. Click OK two times.
-- Read more: http://www.sqldbadiaries.com/2011/09/05/how-the-cannot-generate-sspi-context-error-was-fixed/#ixzz1jBEXqqRk
Posted By Steve 1/11/2012 2:37:29 PM
http://gorgando.com/blog/technology/asp-net/not-in-subquery-with-asp-net-linq-in-vb
Posted By Steve 12/8/2011 3:45:45 PM
http://css-tricks.com/9130-custom-scrollbars-in-webkit/
Posted By Steve 8/9/2011 6:08:12 PM
Setting up WordPress on Windows and SQL Azure: A Walkthrough
Posted By Steve 6/16/2011 1:14:03 PM
.popup_block{
/*display: none;*/
background: #fff;
padding: 20px;
border: 1px solid #ddd;
float: left;
font-size: 1.2em;
position: fixed;
top: 25%; left: 25%;
z-index: 99999;
-webkit-box-shadow: 0px 0px 20px #000;
-moz-box-shadow: 0px 0px 20px #000;
box-shadow: 0px 0px 20px #000;
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
* for IE */
filter:alpha(opacity=85);
/* CSS3 standard */
opacity:0.85;
}
Posted By Steve 5/6/2011 3:10:25 PM
This is what the final Table looks like. Click the post to see the code
 | Header Text Here |
|  |
Content Goes Here
More Content
|
Posted By Steve 4/29/2011 1:34:57 PM
AddHandler imgButton.Click, AddressOf doPasswordShow
Posted By Steve 12/21/2010 3:04:27 PM
I use this class to encrypt and decrypt user passwords for database storage. The database password column is a data type of varbinary(100). Click on the post to see the code
Posted By Steve 11/5/2010 3:10:54 PM
This is a simple trick to get that body table 100% of the Browser height and centered for a nice looking Blog like page.
| CSS CODE: | HTML CODE: |
html, body, #wrapper { height:100%; margin: 0; padding: 0; border: none; text-align: center; } #wrapper { margin: 0 auto; text-align: left; vertical-align: middle; width: 400px; } | |
<body> <table id="wrapper"> <tr> <td>This is centered</td> </tr> </table> </body>
| |
Posted By Steve 11/5/2010 12:36:21 PM
I have found that IE will throw an error when you try to hide the iPhone Safari toolbar. So we simply check if the browser is IE.
<script type="text/javascript"> var v = getInternetExplorerVersion();
if (v == -1){
window.addEventListener('load', function () { setTimeout(scrollTo, 0, 0, 1); }, false); }
function getInternetExplorerVersion() // Returns the version of Internet Explorer or a -1 // (indicating the use of another browser). { var rv = -1; // Return value assumes failure. if (navigator.appName == 'Microsoft Internet Explorer') { var ua = navigator.userAgent; var re = new RegExp("MSIE ([0-9]{1,}[\.0-9]{0,})"); if (re.exec(ua) != null) rv = parseFloat(RegExp.$1); } return rv; } </script>
|
Posted By Steve 11/5/2010 12:29:20 PM
Public isIphone As Boolean = False
If Request.UserAgent.IndexOf("iPhone") Then
isIphone = True
End If
Posted By Steve 11/4/2010 12:58:58 PM
Pre-tag is used to display preformatted text on web pages. This makes indenting visible, but has the annoying side-effect of disabling wrapping. When wrapping is disabled, long lines go out of the right side of window, which is never useful. This how to explains how you can make preformatted text wrap on all browsers when making websites. We also learn how to make pre on any website wrap while browsing the web with Mozilla.
CSS
pre {
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
Posted By Steve 10/14/2010 12:55:20 PM