[ Log On ]

List

Create New

Author Title Comments

Author:

Random

Title:

Random

Comment:

Cid!

Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Grass Car

Comment:

This is about the new grass car.

Reply

Replies...

Id Comments Name

Author:

nick kinney

Title:

Chevy Volt

Comment:

Chevy Volt is very nice looking. I like how it can get 40 miles without using any electricity!

Enjoying this vehical does come with a cost. About 32-40k. The only question I have, is where are the government incentives? Why are they not more clearly labeled on the website?

Chevy Volt

By: Nicholas Kinney
Reply

Replies...

Id Comments Name

Author:

nick kinney

Title:

95/90 mpg

Comment:

Not only would I buy this, but I would have to figure out how to charge it in Wisconsin!

http://autos.msn.com/research/compare/default.aspx?mode=compete&modelid=14133

Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

credit card

Comment:

free credit cards.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Zoe Saldana

Comment:

For the first time in eleven years, the “Avatar” stunner is single after splitting from entrepreneur Keith Britton. A rep for Saldana told Access Hollywood that the split was amicable and that the pair will remain “committed business partners.” They co-founded fashion site MyFDB.com.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

movember

Comment:

growing mustaches. keep it growing!
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

2008 audi s6

Comment:

This engine is the bomb. More information to come on the V10 machine.
Reply

Replies...

Id Comments Name

Author:

nkinney

Title:

dynamically served page

Comment:

This sounds like a route to take. Enable web-page to allow dynamic content. An example would be how sharepoint uses webparts in order to distinguish which control the site is capable of creating and consuming.
Reply

Replies...

Id Comments Name
56 Blog reply should be able to allow an image file as well. A choice of the files the user has uploaded but not anyone elses.

Author:

nkinney

Title:

plank

Comment:

I guess planking is the internet trend now!
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

trans am

Comment:

my trans am
Reply

Replies...

Id Comments Name
52 sweet car 1985 was a good year.

Author:

nick.kinney

Title:

cheesesteak

Comment:

Looks so good.
Reply

Replies...

Id Comments Name
47 I need to fix the picture quality.

Author:

nick.kinney

Title:

exception-handling

Comment:

if (e.Exception != null) { // Display a user-friendly message ExceptionDetails.Visible = true; ExceptionDetails.Text = "There was a problem updating the product. "; if (e.Exception.InnerException != null) { Exception inner = e.Exception.InnerException; if (inner is System.Data.Common.DbException) ExceptionDetails.Text += "Our database is currently experiencing problems." + "Please try again later."; else if (inner is NoNullAllowedException) ExceptionDetails.Text += "There are one or more required fields that are missing."; else if (inner is ArgumentException) { string paramName = ((ArgumentException)inner).ParamName; ExceptionDetails.Text += string.Concat("The ", paramName, " value is illegal."); } else if (inner is ApplicationException) ExceptionDetails.Text += inner.Message; } // Indicate that the exception has been handled e.ExceptionHandled = true; // Keep the row in edit mode e.KeepInEditMode = true; }
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Dynamic LINQ

Comment:

I am attempting to write dynamic linq with sql. My approach is to have each possible sql "where" clause allow user's to dynamically generate sql statements. The benefit, as far as I can see, is how you can generate a where clause dynamically. An example I can think of is I want to generate a query, that queries a result set from a data warehouse. Save this query to a database, and in turn use an SSIS package to execute this query.
Reply

Replies...

Id Comments Name
42 Oh yeah, don't forget that you can execute email generated queries based on the results of your SSIS package. Good thing this works because when I streamline the process, I will need to be able to execute the SSIS package on the fly.
44 public override void DynamicWhereClause(int[] parameters, string[] columns) { CSCode.DataContext.NSMRClassesDataContext db = new CSCode.DataContext.NSMRClassesDataContext(); string condition = ""; for (int i = 0; i < columns.Length ; i++) { // operand invalid for string == int32.. sigh condition += columns[i] + "=" + parameters[i]; if (i == columns.Length - 1) { break; } condition += " AND "; } var ok = db.NSMR_Data_Marts .Where(condition); // i want my generated sql to be able to be run from SSIS to perform threshold test // against the datamart string generatedSQL = db.GetCommand(ok).CommandText; }
45 My dynamically generated query is built correctlym, but is there a way for me to read this linq statement from a sql database and transform it into a successfully runable query?
46 public override void DynamicWhereClause(int[] _parameters, string[] _columns, Rule _rule) { CSCode.DataContext.NSMRClassesDataContext db = new CSCode.DataContext.NSMRClassesDataContext(); string condition = ""; for (int i = 0; i < _columns.Length; i++) { // operand invalid for string == int32.. sigh condition += _columns[i] + "=" + _parameters[i]; if (i == _columns.Length - 1) { break; } condition += " AND "; } var ok = db.NSMR_Data_Marts .Where(condition); // push out to console System.IO.TextWriter writer = db.Log; // i want my generated sql to be able to be run from SSIS to perform threshold test // against the datamart string generatedSQL = db.GetCommand(ok).CommandText; _rule.generated_sql = generatedSQL; // lets save this to database try { //Rules_DataSetTableAdapters.NSMR_Parts_To_RulesTableAdapter adapter = new Rules_DataSetTableAdapters.NSMR_Parts_To_RulesTableAdapter(); //adapter.sp_Insert_Rule_Part(DateTime.Now, HttpContext.Current.User.Identity.Name, // generatedSQL); using (SqlConnection con = new SqlConnection(GlobalFunctions.GetConnectionString())) { con.Open(); SqlCommand myCmd = new SqlCommand("sp_Insert_Rule_Part", con); myCmd.Parameters.AddWithValue("@Date_Created", _rule.date_created); myCmd.Parameters.AddWithValue("@Created_By", _rule.created_by); myCmd.Parameters.AddWithValue("@Query_Syntax", _rule.generated_sql); myCmd.Parameters.AddWithValue("@FUID", _rule.pk_rule_id); myCmd.CommandType = CommandType.StoredProcedure; myCmd.Connection = con; int retVal = (Int32)myCmd.ExecuteScalar(); //_rule.pk_rule_id = retVal; // return retVal; } } catch (Exception ex) { } }

Author:

nick.kinney

Title:

nuclear-levels

Comment:

I think that letting everyone know the truth is the best policy. The only problem with this is that it will cause issues with order and everyone would go crazy to flee. What do you think?
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

workflow foundation

Comment:

I am trying to understand this example. My issue, is can I save a .xoml/.xaml definition to the database the same way you save an xml file? Or do I have to convert this file to something else?
Reply

Replies...

Id Comments Name
36 good post http://keithelder.net/2007/05/28/part-2-leveraging-workflow-foundation-invest-in-your-workflow/
37 word is you can save your xoml and xaml to a database and retreive the values for your business rules.

Author:

nick.kinney

Title:

Rift

Comment:

Screenshot of RIFT. Decent elevation.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

ajax-accordion

Comment:

Binding ajax accordion inside listview template.
Reply

Replies...

Id Comments Name
31 /* ACCODION */ .accordion_header { border: solid 2px white; padding: 2px 4px; background: black; color: White; font-family: Consolas; } .accordion_header:hover { border: solid 2px white; padding: 2px 4px; background: orange; color: White; font-family: Consolas; cursor:pointer; } .accordion_content { padding: 2px 4px; font-family: Consolas; border:solid 3px orange; }
32 The benefit, is that you bind the accordion data in the listview itemdatabound event. protected void lvBlogMaster_ItemDataBound(object sender, ListViewItemEventArgs e) { // enhance by removing the object if no replies exist // b is global blog variable AjaxControlToolkit.Accordion reply_accordion = (AjaxControlToolkit.Accordion)e.Item.FindControl("accordion_replies"); ListViewDataItem dataItem = (ListViewDataItem)e.Item; string pk = lvBlogMaster.DataKeys[dataItem.DisplayIndex].Value.ToString(); reply_accordion.DataSource = b.Blog_Tag_Cloud_DataSet(pk).Tables[0].DefaultView; reply_accordion.DataBind(); }
35 If anyone viewing this is wondering what the code looks like, please click on the image associated with the blog.

Author:

nick.kinney

Title:

e-cigarette

Comment:

This little cigarette had me interested for quite some time. But as usual, days go on and the trips to the gas station to buy a pack as well as whatever else I "thought" I needed continued. Then I got laid off. Shoot, now I can't even afford my cigarette habit. Let alone myself, but my wife also smokes. We needed to do something. So we bought the e-cigarette. To keep a long story short, it has been 7 days and no cravings have derailed us yet. Despite family that smoke, offering us cigarettes, we have been 100%. I hope this helps any who read it!
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

siblings

Comment:

this is great
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

namespace-javascript

Comment:

function pageLoad() { var Managers = {}; Managers.CssManager = {}; Managers.CssManager = { addStyleSheet: function(id, url) { var newStyleSheet = document.createElement("link"); newStyleSheet.setAttribute("rel", "stylesheet"); newStyleSheet.setAttribute("type", "text/css"); newStyleSheet.setAttribute("id", id); newStyleSheet.setAttribute("href", url); document.getElementsByTagName("head")[0].appendChild(newStyleSheet); }, removeStyleSheet: function(id) { var currentStyleSheet = document.getElementById(id); if (currentStyleSheet) { currentStyleSheet.parentNode.removeChild(currentStyleSheet); } }, swapStyleSheet: function(id, url) { this.removeStyleSheet(id); this.addStyleSheet(id, url); } } Managers.CssManager.addStyleSheet("test", "App_Themes/Styles/StyleSheet.css"); }
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

ldap-authentication

Comment:

more testing blog with jquery reload issue
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

char_reverse

Comment:

This code will allow the user to reverse a char[] array by calling this method. public char[] char_reverse(string value) { int outerIndex; char[] mystring = new char[value.Length]; char[] newarray = new char[mystring.Length]; for (int i = 0; i < value.Length; i++) { mystring[i] = value[i]; } int math = mystring.Length / 2; for (int j = 1; j < mystring.Length; j++) { outerIndex = mystring.Length - j; // we have hit the 'middle', exit loop // otherwise overriting will occur if (outerIndex == mystring.Length / 2) break; mystring[j - 1] = value[outerIndex]; mystring[outerIndex] = value[j - 1]; } return mystring; }
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

Venus

Comment:

Is a planet.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Trees

Comment:

I need to create functionality to validate blogs using a web service and parse the string of illegal chars.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Trees

Comment:

trees are actually line segments
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

awesome-coding-skills

Comment:

more coding comments about no bot and image streams
Reply

Replies...

Id Comments Name
53 gegege
54 tete

Author:

nick.kinney

Title:

more stuff

Comment:

compose in chrome has issue with the image button not having an image
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Name That Blog

Comment:

Blogging is just the beginning.
Reply

Replies...

Id Comments Name

Author:

Kinney

Title:

javascript

Comment:

will be appreciated
Reply

Replies...

Id Comments Name

Author:

Kinney

Title:

javascript

Comment:

will be appreciated
Reply

Replies...

Id Comments Name
29 javascript reply
38 Javascript will help using json objects while requesting data asynchronously. Atleast I hope so!
39 I got the javascript to work correctly without popping up a window.status error by simply applying a try{}catch(e){} to my masterpage markup.
43 ima test comment

Author:

ldap-authentication

Title:

ldap-authentication

Comment:

ldap-authentication
Reply

Replies...

Id Comments Name

Author:

Author

Title:

New BLog

Comment:

Capability to submit blog with picture while being bot protected.
Reply

Replies...

Id Comments Name

Author:

Author

Title:

New BLog

Comment:

Capability to submit blog with picture while being bot protected.
Reply

Replies...

Id Comments Name

Author:

nick

Title:

Blogging 101

Comment:

this is a comment for blogpost on bloglist
Reply

Replies...

Id Comments Name

Author:

nick

Title:

BLogzor

Comment:

More comments with PICTURE QUALITY BLOG
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

served-pages

Comment:

Testing bot protection.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

testing

Comment:

this is a funny, test.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Fan-Club

Comment:

I am a fan with bot protection.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

leaves

Comment:

I wish people would vote on the control so I can get an understanding if it is good or not!!! But, no one uses it, so...
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

effort

Comment:

Coding effort.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

ldap-authentication

Comment:

My goal is to use ldap authentication for good.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Archdiocese-of-Milwaukee-files-for-bankruptcy-protection

Comment:

Archdiocese-of-Milwaukee-files-for-bankruptcy-protection
Another problem for the church has come to be. But I am sure this too, will pass. But is that what we should do? Turn the other cheek and turn a blind eye?
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

Tree

Comment:

package { import flash.display.Sprite; public class Tree extends Sprite { public var xpos:Number = 0; public var ypos:Number = 0; public var zpos:Number = 0; public function Tree() { init(); } public function init():void { graphics.lineStyle(0, 0xffffff); graphics.lineTo(0, -140 - Math.random() * 20); graphics.moveTo(0, -30 - Math.random() * 30); graphics.lineTo(Math.random() * 80 - 40, -100 - Math.random() * 40); graphics.moveTo(Math.random() * 60 - 30, -110 - Math.random() * 20); graphics.lineTo(Math.random() * 60 - 30, -110 - Math.random() * 20); } } }
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

Trees

Comment:

package { import flash.display.Sprite; import flash.events.Event; import flash.events.KeyboardEvent; import flash.ui.Keyboard; [SWF(backgroundColor=0x000000)] public class Trees extends Sprite { private var trees:Array; private var numTrees:uint = 1000; private var fl:Number = 250; private var vpX:Number = stage.stageWidth / 2; private var vpY:Number = stage.stageHeight / 2; private var floor:Number = 50; private var ax:Number = 0; private var ay:Number = 0; private var az:Number = 0; private var vx:Number = 0; private var vy:Number = 0; private var vz:Number = 0; private var gravity:Number = 0.3; private var friction:Number = 0.98; public function Trees() { init(); } private function init():void { trees = new Array(); for(var i:uint; i < numTrees; i++) { var tree:Tree = new Tree(); trees.push(tree); tree.xpos = Math.random() * 2000 - 1000; tree.ypos = floor; tree.zpos = Math.random() * 10000; addChild(tree); } addEventListener(Event.ENTER_FRAME, onEnterFrame); stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown); stage.addEventListener(KeyboardEvent.KEY_UP, onKeyUp); } private function onEnterFrame(event:Event):void { vx += ax; vy += ay; vz += az; vy -= gravity; for(var i:uint = 0; i < numTrees; i++) { var tree:Tree = trees[i]; move(tree); } vx *= friction; vy *= friction; vz *= friction; sortZ(); } private function onKeyDown(event:KeyboardEvent):void { switch(event.keyCode) { case Keyboard.UP: az = -1; break; case Keyboard.DOWN : az =1; break; case Keyboard.LEFT : ax = 1; break; case Keyboard.RIGHT : ax = -1; break; case Keyboard.SPACE: ay = 1; break; default: break; } } private function onKeyUp(event:KeyboardEvent):void { switch(event.keyCode) { case Keyboard.UP: case Keyboard.DOWN: az = 0; break; case Keyboard.LEFT: case Keyboard.RIGHT: ax = 0; break; case Keyboard.SPACE: ay = 0; break; default: break; } } private function move(tree:Tree):void { tree.xpos += vx; tree.ypos += vy; tree.zpos += vz; if(tree.ypos < floor) { tree.ypos = floor; } if(tree.zpos < -fl) { tree.zpos += 100000; } if(tree.zpos > 10000 - fl) { tree.zpos -= 100000; } var scale:Number = fl / (fl + tree.zpos); tree.scaleX = tree.scaleY = scale; tree.x = vpX + tree.xpos * scale; tree.y = vpY + tree.ypos * scale; tree.alpha = scale; } private function sortZ():void { trees.sortOn("zpos", Array.DESCENDING | Array.NUMERIC); for(var i:uint = 0; i < numTrees; i++) { var tree:Tree = trees[i]; setChildIndex(tree, i); } } } }
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

zombify-my-ride

Comment:

Zombify your vehicle to be the best at navigating a zombie apocolypse. Destroy zombies and survive with zombify your ride!
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

wiki-leaks

Comment:

Perhaps the best website created. I hope this will continue and perhaps expand to a television station that will enlighten all of the WORLD. Not just America with the information, but every country that thinks their government is doing the citizens a favor. Everyone is sick and tired of being pushed around by money hungry losers. In the scheme of this debate, we are losing all self worth.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

bing-sucks

Comment:

I believe bing is junk because it is useless. It is supposed to be a different flavor, but it is not. It tries to mimic the same concepts as google, which will get you no where fast. If you want to get ahead of google, think where the market is going. People are not going to physically search for things, because the system will understand what you mean. When I say potato, a surplus of meals with how to cook with potatos should appear. Not the history of the potato and its chemical qualities.
Reply

Replies...

Id Comments Name

Author:

john.latherow

Title:

Comment:

WOW!
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

adam-lambert

Comment:

That is the only song that has value.
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

adam-lambert

Comment:

What do you want from me.
Reply

Replies...

Id Comments Name
55 I would like to put some more jquery into the blog.

Author:

anonymous user...

Title:

745

Comment:

Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

downgrade-visual-studio-2010-to-visual-studio-2008

Comment:

Downgrade
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Fan-Club

Comment:

Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Fan-Club

Comment:

Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

foo

Comment:

Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

asp.net-website-administration-tool

Comment:

I like games
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

business-to-business-blog

Comment:

This will help increase your traffic to your site as well as revenue. This will be a new type of way to work between companies.
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

mysql-server-instance-configuration-wizard-not-responding-windows-7

Comment:

I would have to say that this is being a huge pain! I am trying to install on a 64 bit windows 7 machine with no luck!
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

mysql-server-instance-configuration-wizard-not-responding-windows-7

Comment:

Does anyone know how to fix this?
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

s

Comment:

s
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

automotive

Comment:

This is where the automotive blog is.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

asp.net-logout-not-working

Comment:

Logout Code
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

green-bay-packers

Comment:

So far, the Green Bay packers have done a great job on Defense with multiple interceptions. Their offense has scored but are unable to hook up short plays due to the Detroit Lions defense.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

seadragon

Comment:

must learn how to code this out for wide shots
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

new-blog-system

Comment:

Enhancing the system based on google brain. Reference
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

seo

Comment:

AdWords AdSense Analytics Apps xequence@gmail.com My Account Help Sign out We weren't able to verify your site: http://www.servedpages.com/ « Go back Verify ownership Help with: Understanding verification Verifying with meta tag Verifying with HTML Verifying with DNS Verifying with Google Analytics Verification errors Verify ownership Verification status Not Verified - Last attempt Less than a minute ago - Hide history Attempted Method Outcome Less than a minute ago 10/2/10 3:29:45 AM UTC Meta tag Verification failed. The connection to your server timed out. There are several ways to prove to Google that you own http://www.servedpages.com/. Select the option that is easiest for you. Add a DNS record to your domain's configuration You can use this option if you can sign in to your domain registrar or hosting provider and add a new DNS record. Add a meta tag to your site's home page You can choose this option if you can edit your site's HTML. Upload an HTML file to your server You can choose this option if you can upload new files to your site. Link to your Google Analytics account You can use this option if your site already has a Google Analytics tracking code that uses the asynchronous snippet. You must be an administrator on the Analytics account. Instructions: 1. Copy the meta tag below, and paste it into your site's home page. It should go in the section, before the first section. Show me an example My title page contents 2. Click verify below. Leave the meta tag in place even after verification succeeds. © 2010 Google Inc. - Webmaster Central - Terms of Service - Privacy Policy - Webmaster Tools Help
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

seo

Comment:

Search Engine Optimization helps site's be found on common search engines. Every one says this is better than that but the true way to figure this out is to learn how the search engine performs.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

the-recession-is-over

Comment:

Do you believe this? I do but at the same time I do not. The recession is over if you have a technical background and years of experience. If you do not have either, the recession is still in full swing. The main problem, I think, is the media outlook on current events. Media does not sell good news, obviously. What it does for us is remind us the worst case scenario. This scenario that the media has painted for us is years and years of mistakes and waste. Now, true American values have shifted in the direction of, "I do not have faith in this system, I will now control". This mentality will keep cash in hand and destroy big investment companies that provide the "yes sir we can do that" approach.
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

jammin

Comment:

I like jammin with Toe Jam n' Earl!
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

jammin

Comment:

Bob Marley
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

abc

Comment:

Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

browser-detection

Comment:

how do i format my blog text?
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

ldap-authentication

Comment:

using System; using System.Text; using System.Collections; using System.DirectoryServices; /// /// Summary description for LdapAuthentication /// /// namespace FormsAuth { public class LdapAuthentication { private string _path; private string _filterAttribute; public LdapAuthentication(string path) { _path = path; } public bool IsAuthenticated(string domain, string username, string pwd) { string domanAndUsername = domain + @"\" + username; DirectoryEntry entry = new DirectoryEntry(_path, domanAndUsername, pwd); string defaultNamingContext = entry.Properties["defaultNamingContext"].Value.ToString(); DirectoryEntry default1 = new DirectoryEntry("LDAP://" + defaultNamingContext); try { // bind to the native adsobject to force authentication object obj = entry.NativeObject; //DirectorySearcher search = new DirectorySearcher(entry); DirectorySearcher search = new DirectorySearcher(default1, "(objectClass=orginizationalUnit)", null, SearchScope.Subtree); search.Filter = "(SAMAccountName=" + username + ")"; search.PropertiesToLoad.Add("cn"); //search.PropertiesToLoad.Add("memberOf"); SearchResult result = search.FindOne(); if (null == result) { return false; } // update the new path to the user in the directory. _path = result.Path; _filterAttribute = (string)result.Properties["cn"][0]; //_filterAttribute = entryTest.Properties["memberOf"][0].ToString(); GetGroups(); } catch (Exception ex) { throw new Exception("Error authenticating user. " + ex.Message); } return true; } public string GetGroups() { DirectorySearcher search = new DirectorySearcher(_path); search.Filter = "(cn=" + _filterAttribute + ")"; search.PropertiesToLoad.Add("memberOf"); StringBuilder groupNames = new StringBuilder(); try { SearchResult result = search.FindOne(); int propertyCount = result.Properties["memberOf"].Count; string dn; int equalsIndex, commaIndex; for (int propertyCounter = 0; propertyCounter < propertyCount; propertyCounter++) { dn = (string)result.Properties["memberOf"][propertyCounter]; equalsIndex = dn.IndexOf("=", 1); commaIndex = dn.IndexOf(",", 1); if (-1 == equalsIndex) { return null; } groupNames.Append(dn.Substring((equalsIndex + 1), (commaIndex - equalsIndex) - 1)); groupNames.Append("|"); // check if groups exists ArrayList arr = new ArrayList(); arr.Add(dn.Substring((equalsIndex + 1), (commaIndex - equalsIndex) - 1)); if (arr.Contains("mygroup")) { } } } catch (Exception ex) { throw new Exception("Error obtaining group names. " + ex.Message); } return groupNames.ToString(); } } }
Reply

Replies...

Id Comments Name
30 ldap authentication does a world of good for authenticating against the domain controller

Author:

anonymous user...

Title:

what

Comment:

what is funny?
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

who

Comment:

Get to the choppa!
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

asp.net-website-administration-tool

Comment:

I must implement control of this remotely through the internal content of the site. Perhaps allow users to create their own role security for the site as to add a more robust environment that is ultimately in the user's control. This way if family members want to access part of the same group of roles, it is allowed. Same concept as facebook, instead of allowing you to see other profiles, it allows you to perform more functions and add/remove webparts to display/update data.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

autocomplete-extender

Comment:

I will need timed queries that execute and recategorize my data using indexes. This should speed up the autocomplete-extender processes.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

served-pages

Comment:

Speed is my primary concern and wasting memory without caching images and database hits will be in vain if not implemented correctly.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

served-pages

Comment:

I have to allow XMLHTTPRequest for my gridview once typing in autocomplete extender to dynamically populate my gridview based on criteria. I have it set up now to rebind my gridview textchanged and onblur() but I do not think that is enough speed.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

google-chrome

Comment:

I have to write cross browser compatability on my set_height() javascript function. Chrome, Safari, Netscape, IE9, Ie8 and subsequent versions of IE. Perhaps enhance my commenting capabilities by adding spell checker and hyperlinks Google Chrome
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

sitemap-path

Comment:

I must remember to choose a blog type otherwise all is in vain!
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

sitemap-path

Comment:

This will help spiders crawl my site and find related content.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

adam-lambert

Comment:

He has some cool songs, and by songs I mean one.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

javascript-create-file-upload

Comment:

i am finding lots of duplicate information
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

javascript-create-file-upload

Comment:

How to format a blog?
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

javascript-create-file-upload

Comment:

function addFileUploadBox() { var newUploadBox; if (!document.getElementById || !document.createElement) { return false; } var uploadArea = document.getElementById("upload-area"); if (!uploadArea) return; // find the initial file upload control var initialUploadControl = uploadArea.getElementsByTagName('input') for (var i = 0; i < initialUploadControl.length; i++) { selectElement = initialUploadControl[i]; // this only works for subsequent upload control // once i am past the first array value, this code does not work for (var j = i; j < initialUploadControl.length; j++) { if (initialUploadControl[j].value == '') { alert('Please choose a file before adding another.'); return false; } } } createFileUploadBox(uploadArea); } function createFileUploadBox(uploadArea) { try { // var newLine = document.createElement("br"); // uploadArea.appendChild(newLine); if (!addFileUploadBox.lastAssignedId) addFileUploadBox.lastAssignedId = 100; var divSupport = document.createElement("div"); //divSupport.style.padding = "2px 4px"; divSupport.setAttribute("id", "DivField_" + addFileUploadBox.lastAssignedId); uploadArea.appendChild(divSupport); var newUploadLabel = document.createElement("label"); newUploadLabel.style.width = "90px"; newUploadLabel.htmlFor = "htmlFor"; var text = document.createTextNode("File Name: "); newUploadLabel.appendChild(text); divSupport.appendChild(newUploadLabel); newUploadBox = document.createElement("input"); // set attributes newUploadBox.type = "file"; newUploadBox.size = "60"; newUploadBox.style.width = "200px"; newUploadBox.setAttribute("id", "FileField_" + addFileUploadBox.lastAssignedId); newUploadBox.setAttribute("name", "FileField_" + addFileUploadBox.lastAssignedId); divSupport.appendChild(newUploadBox); // delete functionality var deleteButton = document.createElement("img"); //deleteButton.type = "button"; deleteButton.setAttribute("id", "DeleteButton_" + addFileUploadBox.lastAssignedId); deleteButton.setAttribute("name", "DeleteButton_" + addFileUploadBox.lastAssignedId); //deleteButton.value = "Delete"; deleteButton.src = "Images/delete.gif"; deleteButton.style.height = "20px"; deleteButton.style.width = "20px"; deleteButton.align = "top"; deleteButton.style.padding = "2px"; deleteButton.style.cursor = "hand"; deleteButton.title = "Delete Upload"; // mouse over image deleteButton.onmouseover = function() { mouseOver(this); } // mouse out image deleteButton.onmouseout = function() { mouseOut(this); } // remove all fields if delete button clicked deleteButton.onclick = function() { removeField(this); } divSupport.appendChild(deleteButton); // increment addFileUploadBox.lastAssignedId++; } catch (e) { alert(e); } } function removeField(field) { var myDivFieldIHope = field.parentNode; for (var i = 0; i < myDivFieldIHope.childNodes.length; i++) { myDivFieldIHope.removeChild(myDivFieldIHope.firstChild); } myDivFieldIHope.parentNode.removeChild(myDivFieldIHope); } function mouseOver(field) { field.src = "Images/deleteMouseOver.gif"; } function mouseOut(field) { field.src = "Images/delete.gif"; } function ValidateFileNames() { var uploadArea = docum
Reply

Replies...

Id Comments Name
28 This is alot of great code that will help me in the future. The blogging concept is one that can be applied to any other object and will enhance the user experience as well as enforce a positive relationship.

Author:

nick.kinney

Title:

browser-detection

Comment:

uniqueInteger.counter = 0; function uniqueInteger() { // increment and return our "static" variable return uniqueInteger.counter++; } function Rectangle(w, h) { this.width = w; this.height = h; } Rectangle.prototype.area = function() { return this.width * this.height; } /* inner width */ try { var x, y; if (self.innerHeight) // all except Explorer { x = self.innerWidth; y = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) // Explorer 6 Strict Mode { x = document.documentElement.clientWidth; y = document.documentElement.clientHeight; } else if (document.body) // other Explorers { x = document.body.clientWidth; y = document.body.clientHeight; } } catch (e) { //alert(e); } } var r = new Rectangle(x, y); var a = r.area(); //alert('inner width ' + x + ' inner height ' + y + ' area: ' + a); r.hasOwnProperty("width"); // true: width is a direct property of r r.hasOwnProperty("area"); // false: area is an inherited property of r "area" in r; // true: "area" is a property of r /* PAGE HEIGHT */ try { var x, y; var test1 = document.body.scrollHeight; var test2 = document.body.offsetHeight if (test1 > test2) // all but Explorer Mac { x = document.body.scrollWidth; y = document.body.scrollHeight; } else // Explorer Mac; //would also work in Explorer 6 Strict, Mozilla and Safari { x = document.body.offsetWidth; y = document.body.offsetHeight; } } catch (e) { //alert(e); } //alert('page width ' + x + ' page height ' + y); } try { /* scrolling offset */ var x, y; if (self.pageYOffset) // all except Explorer { x = self.pageXOffset; y = self.pageYOffset; } else if (document.documentElement && document.documentElement.scrollTop) // Explorer 6 Strict { x = document.documentElement.scrollLeft; y = document.documentElement.scrollTop; } else if (document.body) // all other Explorers { x = document.body.scrollLeft; y = document.body.scrollTop; } } catch (e) { //alert(e); } } //alert('scroll detection ' + x + ' x direction ' + y + 'y direction');
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

imageloop.js

Comment:

/** * ImageLoop.js: An ImageLoop class for performing image animations * * Constructor Arguments: * imageId: the id of the tag that will be animated * fps: the number of frames to display per second * frameURLs: an array of URLs, one for each frame of the animation * * Public methods: * start(): start the animation(but wait for all the frames to load first) * stop(): stop the animation * * Public Properties: * loaded: true if all frames of the animation have loaded, * false otherwise * */ function ImageLoop(imageId, fps, frameURLs) { // remember the image id, dont look it up yet since this constructor // may be called before the document is loaded. this.imageId = imageId; // computer the time to wait between frames of the animation this.frameInterval = 1000 / fps; // an array for holding image objects for each frame this.frames = new Array(frameURLs.length); this.image = null; this.loaded = false; this.loadedFrames = 0; this.startOnLoad = false; this.frameNumber = -1; this.timer = null; // initialize the frames[] array and preload the images for (var i = 0; i < frameURLs.length; i++) { this.frames[i] = new Image(); // create image object this.frames[i].onload = countLoadedFrames; this.frames[i].src = frameURLs[i]; } // this nested function is an event handler that counts how many // frames have finished loading. when all are loaded, it sets a flag, // and starts the animation if it has been requested to do so. var loop = this; function countLoadedFrames() { loop.loadedFrames++; if (loop.loadedFrames == loop.frames.length) { loop.loaded = true; if (loop.startOnLoad) loop.start(); } } // here we define a function that displays the next frame of the // animation. this function can't be an ordinarty instance method because // setInterval() can only invoke functions, not methods. so we make // it a clouse that includes a reference to the image object this._displayNextFrame = function() { // first, increment the frame number. The modulo operator (%) means // that we loop from the last to the first frame loop.frameNumber = (loop.frameNumber+1)%loop.frames.length; // update the src property of the image to the URL of the new frame loop.image.src = loop.frames[loop.frameNumber].src; }; } /** * this method starts an ImageLoop animation. if the frame images have not * finished loading, it instead sets a flag so that the animation will * automatically be started when loading completes */ ImageLoop.prototype.start = function() { if (this.timer != null) return; // already started // if loading is not complete, set a flag to start when it is if (!this.loaded) this.startOnLoad = true; else { // if we haven't looked up the image by id yet, do so now if (!this.image) this.image = document.getElementById(this.imageId); // display the first frame immediately this._displayNextFrame(); // and set a timer to display subsequent frames this.timer = setInterval(this._displayNextFrame, this.frameInterval); //alert(this.timer); } }; /** Stop an ImageLoop animation */ ImageLoop.prototype.stop = function() { if (this.timer) clearInterval(this.timer); alert('stop prototype function hit'); this.timer = null; };
Reply

Replies...

Id Comments Name
40 This is some good code, but I cannot read it very well. Even though I am a web developer, it is difficult to read.
41 I am thinking that I need to implement a process for monitoring new comments and replies. This way I can avoid foul language as well as links to inappropriate sites.

Author:

nick.kinney

Title:

sinus

Comment:

Not doing very well!
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

games

Comment:

Blog on any topic of games!
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

droid

Comment:

Message from the droid.
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

super-validate

Comment:

Test
Reply

Replies...

Id Comments Name
5 this is a reply to this id
7 this is a reply to this id

Author:

anonymous user...

Title:

super-validate

Comment:

served pages
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

super-validate

Comment:

http://www.servedpages.com
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

super-validate

Comment:

www.servedpages.com
Reply

Replies...

Id Comments Name
3 awesome i think i got the id
49 i am a test

Author:

anonymous user...

Title:

super-validate

Comment:

Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

test-url

Comment:

served
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

greatness

Comment:

if(you>me) return;
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

greatness

Comment:

Final Fantasy XIV
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

greatness

Comment:

Beowulf
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

greatness

Comment:

Knowledge is power and so is greatness.
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

iran-nukes

Comment:

The less nukes the better. Isn't there a better word for nuculear engineer other than the word nuke?
Reply

Replies...

Id Comments Name

Author:

anonymous user...

Title:

iran-nukes

Comment:

I would have to say that a civilian does not know enough about this issue.
Reply

Replies...

Id Comments Name
33 I am thinking that I should make my blog reply be able to be dragged so the user can see what they are replying too. Maybe highlight the record being replied too.
34 It would also benefit me if I added the logic to the reply that allows a user to create an account if it does not exist, otherwise auto populate author. Maybe give the ability to include a picture to add to the reply but that is a ways off.

Author:

nick.kinney

Title:

awesome-coding-skills

Comment:

I am the author because I am still typing it in.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

awesome-coding-skills

Comment:

title should be non editable field for sorting and grouping logic
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

awesome-coding-skills

Comment:

more blogging skills
Reply

Replies...

Id Comments Name

Author:

rock

Title:

awesome-coding-skills

Comment:

testing again
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

awesome-coding-skills

Comment:

This is where these will go to good use.
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

served

Comment:

This is a served blog with a querystring blog category.
Reply

Replies...

Id Comments Name

Author:

Served Pages Blogmaster

Title:

AjaxControlToolkit

Comment:

ajax
Reply

Replies...

Id Comments Name

Author:

nick.kinney

Title:

Primerica-Scams

Comment:

Primerica is not a real company. They claim to have stocks and a website, but this is all a false impression of a real company. They interview you, tell you how great you are and fill your head with everything that is good. They then ask you 'what would you do with 112 million dollars', which is a typical scheme to load the subconcious with hope. Overloaded hope is the easiest way to get someone to say yes to a 99$ background check, which is how the scheme works. Word to the wise, validating websites is not the best choice to prove that a company is real. If the stock for the company has been around for 3 months, and the company(Primerica) says they have been around for 22 years, call fowl.
Reply

Replies...

Id Comments Name

Author:

served.pagesblogmaster

Title:

Fan-Club

Comment:

He is the coolest person in the world!
Reply

Replies...

Id Comments Name