Wherever there is fear, there is a profit to be made
- Fear Sells.
Heard this on NPR and I’m a firm believer, “Wherever there is fear, there is a profit to be made”
Good JQuery Helper Functions
Good Jquery helpers functions.
I use this method from encosia to clean up the d returned by
micrsoft when making json calls:
function filterJSON(data) {
var msg;
if (typeof (JSON) !== 'undefined' &&
typeof (JSON.parse) === 'function')
msg = JSON.parse(data);
else
msg = eval('(' + data + ')');
if (msg.hasOwnProperty('d'))
return msg.d;
else
return msg;
}
Taken from Dave here: http://encosia.com/2009/07/21/simplify-calling-asp-net-ajax-services-from-jquery/
This ones for dumbing a json object that get’s returned as a data object
using this person’s helper method:
http://schotime.net/blog/index.php/2008/07/27/dataset-datatable-to-json/comment-page-1/#comment-223
function outputDT(dataTable) {
var headers = [];
var rows = [];
headers.push("<tr>");
for (var name in dataTable[0])
headers.push("<td><b>" + name + "</b></td>");
headers.push("</tr>");
for (var row in dataTable) {
rows.push("<tr>");
for (var name in dataTable[row]) {
rows.push("<td>");
rows.push(dataTable[row][name]);
rows.push("</td>");
}
rows.push("</tr>");
}
var top = "<table border='1'>";
var bottom = "</table>";
return top + headers.join("") + rows.join("") + bottom;
}
Search for SQL in your databases with Red Gate SQL Search
I’ve been using Red-Gates sql prompt for about 3 years now. Their new SQL Search tool is unbelievable. It just saved me from recreating a stored procedure that I had created twice before!
Why use Red Gate’s SQL Search?
Impact Analysis
You want to rename one of your table columns but arent sure what stored procedures reference it. Using SQL Search, you can search for the column name and find all the stored procedures where it is used.
Work faster
Finding anything in the SSMS object tree requires a lot of clicking. Using SQL Search, you can press the shortcut combo, start typing the name, and jump right there.
Make your life easier
You need to find stored procedures you’ve not yet finished writing. Using SQL Search, you can search for stored procedures containing the text TODO.
Increase efficiency, reduce errors
You are a DBA, and developers keep using ‘SELECT *’ in their views and stored procedures. You want to find all these and replace them with a correct list of columns to improve performance and prevent future bugs. Using SQL Search, you can look for ’SELECT *’ in the text of stored procedures and views.
via Search for SQL in your databases with Red Gate SQL Search.
ExpressionEngine – Publish Your Universe!
I’ve recently started learning ExpressionEngine and so far I’ve been presently surprised. I’m supporting our company’s web site: www.ksba.org that uses it for it’s backend, and copying it down to my local machine was a bear.
I used XAMPP, Latest version which caused some problems because xampp’s version of php was newer than the servers. There’s millions of setting that have to be changed luckily our previous webmaster Deron Sizemore was very helpful through this process.
List of things to remember:
- .htaccess is a hidden file and would not show up in FileZilla so I set the Server >> Force Show of Hidden files option to see what it was setup as on the live server.
- I used Deploy_Helper module to see what the settings were on the live box.
- The local folder paths are funny: /xampp/htdocs/system
- Change the cookie path in the admin from .ksba.org to .localhost just remove the www
- Possibly add this to the config.php, It allowed me to login initially to get into the control panel: $conf['admin_session_type'] = “s”;
- disable extensions at the beginning: $conf['allow_extensions'] = “y”;
- bump up debug mode to be more verbose: $conf['debug'] = “1″;
- change the system/config.php file to point to the appropriate local database.
That’s all I can think of now…
ExpressionEngine is a flexible, feature-rich content management system that empowers thousands of individuals, organizations, and companies around the world to easily manage their website. If youre tired of the limitations of your current CMS then take ExpressionEngine for a spin…
Amazon Kindle
I’m probably going to purchase the Amazon Kindle in the next few days.
It’s been on my wish list for a while plus the OMSE class I registered for today has all three of
it’s textbooks available on the Kindle. The new text to speech feature will allow me to listen
to the books on the way to and from work. I spend about 2 hours commuting to and from work each day.
The main reason I’m writing about this is because I will receive a 10% discount by purchasing it
from this link:
http://www.amazon.com/gp/product/B00154JDAI?tag=lookbeforey00-20
I’d like to buy the DX model with larger viewing area but I can’t stomach the $490 price.
Happy Twenty Ten!
Quote Details: Franklin D. Roosevelt: It is common sense… – The Quotations Page
I read this today in The Mythical Man-Month. A book I’m reading for a course at OMSE:
It is common sense to take a method and try it. If it fails, admit it frankly and try another. But above all, try something.
Franklin D. Roosevelt
via Quote Details: Franklin D. Roosevelt: It is common sense… – The Quotations Page.
Portland State Oregon Master of Software Engineering | Home
I’m taking my second course this semester at OMSE and it has been another great learning experience.
Classes are cheap, only about $1,500 and after you complete 5 classes you get a certificate on the way to your Masters. Best of all the entire program can be completed online!
Check it out!
Oregon Master of Software Engineering at Portland State University
via Portland State Oregon Master of Software Engineering | Home.
Run IE6, IE7, and IE8 on the Same Machine Using Windows 7 XP
Just read about this on Sitepoint!
Sweet! I can’t wait to upgrade to Windows 7 and Visual Studio 2010!
Happy Progamming!
Nathan
Run IE6, IE7, and IE8 on the Same Machine Using Windows 7 XP Mode
via Run IE6, IE7, and IE8 on the Same Machine Using Windows 7 XP Mode [HTML & XHTML Tutorials].
How To Generate a Fully Qualified URL in ASP.NET from Scott Mitchell
Used this today, I was using an app config var in web.config to hold the fully qualified base URL for the application, but this blog by Scott Mitchell is a much cleaner and easier to maintain solution!
TIP: How To Generate a Fully Qualified URL in ASP.NET (E.g., http://www.yourserver.com/folder/file.aspx)
Imagine that you’ve got an ASP.NET page that is generating an email message that needs to include links back to the website. Perhaps you’re writing the next greatest online message board application and when someone replies to a thread you want to send out emails to the other thread participants indicating that a new message has been posted along with a link to view the just-posted message. You know that the URL to view a particular thread is, say, ~/Threads/View.aspx?ThreadId=threadId. But how do you turn that relative URL into an absolute URL like http://www.yourserver.com/Threads/View.aspx?ThreadId=threadId?
via Scott on Writing.
