Monday, July 20, 2009

Not Digging Telerik

[Update] Someone from Telerik contacted me willing to help us out with our issue. That says a lot for Telerik and restores a good chunk of my faith in their controls and their support.

I like Telerik. They have produced some very cool controls to use with ASP.Net. Unfortunately the 2009 Q1 release broke all our controls at work. We normally inherit off of the Telerik controls and add some additional functionality. Whatever changes happened under the hood makes the Q1 + releases useless to us.

My job is to figure out a solution. So far no luck. Telerik says they don't support inheritance issues. Wish we would have known that earlier, or at least known to expect that existing working code will not be guaranteed to work in the future as is.

Sucks. Use this as a warning against becoming too dependant on 3rd party controls, as you can and will get burned.

Monday, July 13, 2009

70-536 Exam Prep

Ok, I hate getting certs. Did I say I hate it? Oh well, for those of you on the MCTS track for web development tacking the 70-536 exam, the following web page will be extrememly helpful.

http://en.csharp-online.net/MSDN_Reference_Guide_for_Exam_70-536

Also, the Microsoft training books for the exam, though useful, are riddle with errors. Just an FYI.

Saturday, July 11, 2009

SQL Server Express And Abyss Web Server

Ok, I have an ancient (PIII 850 mhz machine with 1 gig of ram) that I'm using as a test server. I've got Windows XP Pro installed and I'm using the Abyss X1 Webserver instead of the throttled IIS 5 that comes with XP. I ran into one snag though, I couldn't get my ASP.Net app to talk to a SQL Server Express database when I pushed my ASP.Net project from my dev box to the test server. So I fooled around and got it working, probably in a very insecure way, but it will work fine for now. Here is what I did incase this will help anyone.

First, I moved the database from the app_data folder in the web project to somewhere else, probably not necessary but I thought it might help. I also attached to the database using sql server express studio and created a new login name that was different then the one I used on my dev box (did this both for global security users and then added the new user to the instance of the db...again may not be necessary).

From there I himmed and hawed until I came up with a connection string that works. Here it is roughly. Sql server express was installed in a named instance like this-

devbox\sqldev

So my connection string ended in my web.config file for my asp.net project ended up like this.

<add name="somename" connectionString="Data Source=.\sqldev;AttachDbFilename=D:\data\test.mdf;Initial Catalog=reports;User Id=someid;Password=somepassword;user instance=true;Integrated Security=SSPI" />

Hope that helps someone else at least get going.

Wednesday, July 08, 2009

Infocyde!!!

I love RSS (ATOM) feeds. I subscribe to numerous ones. I spend way to much time looking briefly through my feeds using Google Reader, staring feeds that I'd like to read later.

Well, I decided that all these stared links were pilling up, so I went about trying to unstar them, parsing the info and putting it into some useful state either in my brain or an Evernote notebook.

Well, it took pretty much a good chunk of the day, just to get through LAST MONTH's stared items. There is just no way I can process all the data, and as we have learned throughout history (using intelligence and wars as an example) data not processed is absolutely useless, and the time spent gathering it data that wasn't processed is essentially another definition of absolute waste.

So, I'm pondering going to a once a week RSS feed check, and really being selective about what gets stared, and hopefully processing data right then into info. I don't know if I can do this or not because I'm so addicted to real time info, but I really should, for a lot of reasons.

And I bet I'm not the only one out there who has a problem with this. So here are my rules.

1) Can I find this data relatively easily in the future? Yes->Ignore the data.
2) Am I at work? Yes->Star the data for later.
No->Process it (save/copy/bookmark) now.

That should cut down on the info glut. I'm trying to turn myself into a search engine, and that probably isn't helpful productivity wise.

Monday, July 06, 2009

We Lost An Interesting Person This Last Week

Amid all the celebrities dying the media over looked the death of a lesser known but important figure who died recently. On July 3rd, John A. Keel died. He wrote the Mothman Prophecies and many other books relating to the Fortean, my favorite being Operation Trojan Horse.

I was very much on the same page (or like to think so) with Keel's views about UFO's, Ghost, Faeries, etc... all really being the same phenomena, and that phenomena isn't extraterrestrial, but ultraterrestrial. Keel, though not a Christian, declared on several occasions that he wasn't really a "UFO-ologist", but a "demonologist" because he recognized the phenomena for what it really is. He, independent of a religion paradigm, came to the same conclusions I have and many others have about UFO's being something other and more complex then little green men from space or hicks out in the back woods who drank too much.

I admired Keel, as I admire anyone, who looks around the world and realizes (or really admits to themselves) that there is more then meets the eye as to what is going on in this fascinating realm we call existence. I admire his courage and the intellectual honesty to peer at the things that "don't make sense" if the world is exclusively a by product of random mutation.

Here is a pretty good article on Keel and his impact on the Fortean community.

http://www.cryptomundo.com/cryptozoo-news/keel-obit/

I hope that Keel's journey lead him ultimately to Jesus, and that now John A. Keel is in peace.

Thursday, July 02, 2009

VS 2008 and PHP

Want a free version of Visual Studio 2008 that not only runs PHP, but also allows you to build win form applications using PHP?

Well then check the following link out-

http://www.php-compiler.net/doku.php?id=core%3aphp-in-vs2008

Have fun!

Wednesday, June 24, 2009

Microsoft BizSpark

I officially started a small start up company today. Microsoft has a great program called BizSpark. I don't want to give to much away, as it is a wide open program right now. But if you are a start up, or want to be, you should check it out.

Special thanks to AZ Groups and Scott Cate for helping me get started. Scott Cate rocks. And thanks to Microsoft for their willingness to help incubate start ups.

www.mykb.com

www.azgroups.com

www.microsoft.com/bizspark/

I still have and love my day job, so I will proudly serve my employer as long as my job holds out. So I'll only be a part timer at the new gig, but with two or three other developers also working part time, I think we will roll something out quickly. If anyone has some spare computers laying around, I'd love to take 'em off your hands.

And I've been praying about some direction, this opportunity just fell in my lap, so be sure that God answers prayers in Jesus's name. (I know, that makes me strange I guess, but it is true).

Monday, June 15, 2009

My HelloWorld LINQ Example

I know it is sad, but up until today I hadn't ever written a single LINQ query. So, for future prosterity, here is my hello world example.

 string[] s = { "test", "hello world", "mamma", "zack", "aaa","xxx" };
// LINQ
var subset = from z in s where z != "hello world"
orderby z descending select z;
int i = 0;
foreach (var l in subset)
{
Response.Write(
"Item " + i.ToString() + " = " + l + "<br />");
i++;
}

Sunday, June 14, 2009

What is Hot Right Now In The Job Market

I went to http://www.dice.com/ today out of curiosity ran some keywords through nationwide to get a rough indicator of what technologies are really in demand right now. Here are some interesting results (last 30 days).

Java: 8052 jobs
.Net: 4927 jobs
PHP: 1454 jobs
ASP.Net: 2324 jobs
Flex: 796 jobs
Flash 1081 jobs
test driven development: 2295 jobs
MVC: 520 jobs
Silverlight: 262 jobs
Design Patterns: 1368 jobs
Agile: 2221 jobs
SQL Server: 7285 jobs
MySQL: 1479 jobs
c#: 4014 jobs
Visual Basic: 895 jobs
VB: 1964 jobs
Javascript: 3589 jobs
jQuery: 314 jobs
AJAX: 2011 jobs
Photoshop: 646 jobs
Ruby on Rails: 257 jobs
Python: 1023 jobs
Maya: 19 jobs
3D Max: 13 jobs
Unity 3D: 1 job



A few surprises, I expected to see a lot more Flex and Silverlight jobs. Apparently Java is far from dead, despite what many bloggers have espoused. SQL Server DBA's are in high demand as well. Python also looks pretty strong where Ruby on Rails still looks over hyped in the blogosphere compared to demand.

Wednesday, June 10, 2009

Great AJAX jQuery ASP.Net Article

Here is a link to a great article explaining various methods for getting data from the client to the server and back using AJAX, jQuery, and ASP.Net.

http://www.mikesdotnetting.com/Article.aspx?ArticleID=104

Enabling GZip on IIS7

Here is an link to a blog post about how to get gunzip working on IIS7

http://cfsilence.com/blog/client/index.cfm/2009/6/10/Enabling-GZip-Encoding-On-IIS7

Saturday, June 06, 2009

Cool Javascript Visualization Library

This is a pretty neat JavaScript visualization library.

http://thejit.org/demos/




Source: Web Resources Depot

Thursday, June 04, 2009

Another jQuery UI Plugin Set

Check this new jQuery UI plugin set out!

http://flowplayer.org/tools/demos/index.html

Source: http://www.danvega.org/blog/

Adding CSS Links On The Fly In C#

Here is an example of adding a link to a CSS dynamically on an ASP.Net page. I stole this from somewhere, but forgot where, so please forgive the lack of attribution.


  void AddSmallGridCSS ()
{
HtmlLink link = new HtmlLink ();
link.Href =
"~/App_Themes/" + Page.Theme + "/mystylesheet.css";
link.Attributes.Add (
"type", "text/css" );
link.Attributes.Add (
"rel", "stylesheet" );
Page.Header.Controls.Add ( link );

}


You don't have to use app themes, the file can be in any directory.


Tuesday, June 02, 2009

Monday, June 01, 2009

Coffee Plantation in downtown Tempe to close Saturday

Last Saturday, my favorite coffee shop in Arizona closed. It is an end of an era. I spent a lot of time at the Coffee Plantion on Mill working remotely, hanging out with friends, and occassionally checking out all the beautiful woman that walked by. There were lots of cool characters that were regulars there, me being one of them. I really enjoyed hanging out there, the 'Plantation was a big part of my life for about three years between 2004-2007. A corner stone of the old dynamic of Mill Ave is lost. Even though I moved far from Arizona, Coffee Plantion you will still be missed.

Coffee Plantation in downtown Tempe to close Saturday

Shared via AddThis

Friday, May 29, 2009

Monday, May 25, 2009

Friday, May 15, 2009

Sad Loss, 60 Year Old Major Killed In Iraq

A Veit Nam viet reinlisted in the Army after his wife died, and then was killed recently. He is the oldest soldier to be killed in the theater to date.

http://www.chron.com/disp/story.mpl/ap/top/national/6424905.html

Thursday, May 14, 2009

The Magic Footer

I've done this before, but like usual if I only do it once in a while I forget how. The task at hand? Have a footer on a web page that stays at the bottom of the page. I did a quick search, and here are two ways (though there are others) of doing this.

1) Frack older browsers, and do it the easy way,

2) Or two, do a minimal CSS hack so you can support IE6 and older versions of Safari.

So here is some reinvent the wheel code. For number one, you just need a bit of CSS.

.footer{ width:100%; height:50px; position:fixed; bottom:0px; z-index:1000;}

then on your page, <div id="footer" >

done.

For step two, try this approach.

CSS bottom footer by MJT, or google fixed footer.

Proud Ship Leaves the Fleet

The Kittyhawk, the last US conventionally powered carrier, after 42+ years of service, now is entering moth balls.

http://nosint.blogspot.com/2009/05/carrier-kitty-hawk-leaves-active-fleet.html

Tuesday, May 12, 2009

Vista Built-In Unzip Sucks

There, I said it. The built in Unzip capabilities of Vista suck.

Sad End of An Era

Reign Radio, one of the best online Christian radio stations, died some time in April, and sad to say even though RR was one of my favorite audio sources on the internet, I missed its passing by a few weeks. Even the forums were locked down so I couldn't express my thanks for so many months of great music.

I guess the site creator, Shane, had been struggling to keep the site going for a long time. I think it was causing him to go broke and he wasn't getting enough donations to keep the station going. RR's passing is a true loss, but on to bigger and better things to the site's creator Shane.

www.reignradio.com.

Sunday, May 10, 2009

Star Trek, Generation ?

I saw the new Star Trek movie this weekend. I thought it was a pretty good flick, glad I saw it. I'd say the story was trekkie enough so that only the absolute purist star trek fans will not like it, the rest will enjoy it. I consider myself a trekkie light, and I thought they did a great job with the movie. The guy who played the new spock did an outstanding job, the character who played Kirk did well also, and all the rest put in good performances.

8.7/out of 9 Stars. Go see it.

Friday, May 08, 2009

Getting the Public Key Token of An Assembly

This is a useful tip. If you stumbled here, you know why you need it.

Link

Monday, May 04, 2009

One Note: I Get It Now

Ok, a very talented developer where I work at is all about One Note (part of MS Office 2003+?). At first I didn't get One Note, now I do. One Note allows you to-
  • Copy paste from web sites code examples
  • Makes all your content searchable
  • Has an interface to automatically post things to external blogs
  • Is easily Organizable.

I'm occassionally hunting through favorites/bookmarks wondering where that could I saw was at, while my developer co-worker just types in a few keywords in One Note and all the info is at his finger tips. Plus he puts all the locations of servers, company procedures, personal info, etc... all in One Note, so he really does have one spot to look for things.

I haven't fully explored One Note, but so far I like it. And if Office 2007 is a little to big a purchase for your wallet, try Ever Note. I haven't used it, but I hear it is almost as good, and it is free or low cost.


Evernote.com


Executing a Console App from ASP.Net

Well, I was fooling around with a .Net API that does google tanslations. I thought it might be a good idea to not call the translating API for bulk translations directly from the website, so I created a little console app so I can do that and do a thread.Sleep pause and control the SQL Connection opening and closing a little more robustly. Anyway, here is some sample code on how to open a console from ASP.Net in C#

 // path to the console app
string sPath = Server.MapPath("~/apps/GoogleTranslationConsole.exe");
// pass your path, and your arguments array into a ProcessStartInfo
ProcessStartInfo proc = new ProcessStartInfo(sPath,Request.Form["lagr"]);
// Incase you want to read messages back from the code
proc.RedirectStandardOutput = true;
// hide any command windows from showing up
proc.UseShellExecute = false;
proc.CreateNoWindow =
true;
// create the process that will control the console app
Process p = new Process();
p.StartInfo = proc;
p.Start();

// use console.writeline for data to return back.
// Also, be sure to either p.Dispose() of your process here or do
// do a System.Environment.Exit in your console app when work is done
//p.StandardOutput.ReadToEnd() for results.


Here is the original link that I got this info from, which is in VB.Net.

Opening a Console App in VB.Net

Note: I haven't deployed this code to production yet, I've only got it working on my local box. In a production environment you probably want to make sure that your console apps aren't accessible by the web, that your console app is secure enough so that it only does what is should do when it should do it, and that only the right people can execute it (thought for my purposes probably the IIS account will probably have permission to execute). Just something to watch for once you are to that point.

Tuesday, April 28, 2009

Ajax jQuery Chat Demo

** Update **

Here is a simpler version with source code designed for Webmatrix/Razor/MVC3
[HERE]


I wanted to do a quick demo for a chat client similar to the one I see on gTalk and Facebook. Note in this demo I am polling, I use javascript to poll a server page for any new chat comments. This technique will work ok for small to mid sized trafficed web sites. For heavy trafficed sites, you probably need to do some sort of subscript/event model, maybe using a comet server (google). That technique is beyond me at this point, but here is a demo of the more basic polling technique that you can expand on.

The concept is pretty simple. You need three things.

1) The chat page (HTML and jQuery...or in my case an aspx and jQuery page).
2) A push page with which will accept your chat form post and save them to a database (for this example I'm using SQL Server 2008.
3) a pull page that will send new chat messages to the chat pages as they become available (actually not really sending, the chat script will continuously poll the page about every 2 seconds looking for new data to read).

Ok, our chat page will look like this- (remember to include a reference to your jQuery script somewhere, not shown).

<form id="form1" runat="server">
  <div>
    <div style="width: 200px; height: 400px; border: solid 1px blue; overflow: auto"
      id="Chat_window">
    </div>
    <br />
    ID:
<input type="text" style="width: 80px" id="ChatID" maxlength="10" /><br />
    <input type="text" id="ChatMsg" style="width: 200px" maxlength="200" />
    <a href="javascript:postit()">Post</a>
    <script type="text/javascript">
      function postit() {
clearInterval(ptime);
var zpost = { "ChatID": $("#ChatID").val(), "ChatMsg": $("#ChatMsg").val() };
$("#Chat_window").prepend("<span>" + zpost.ChatID + ": " + zpost.ChatMsg + "<br /></span>");
$.post("push.aspx"
       , zpost
, function(data) {
pullit();
ptime = setInterval(pullit, 1500);
});
}
function pullit() {
var url = "pull.aspx?t=" + eval(Math.floor(Math.random() * 90000));
$.post(url, function(data) {
if (data == "") return;
$("#Chat_window").prepend(data);
while ($("#Chat_window").children().size() > 29) {
$("#Chat_window").find("span:last-child").remove();
}
});
}
var ptime = setInterval(pullit, 1500);
</script>
  </div>
  </form>



Ok, I know setting the ptime inline is bad form, but heh, it is just a demo. Some highlights. You have a postit and pullit method. The postit sends the ChatID and ChatMsg to the server as a form request. I'm adding some random query string var to the end of the pull.aspx page call to help prevent caching, this worked for me but you might have to tweak things a little bit more in your environment. The pullit method polls the the pull page about every 1.5 seconds for changes.

Now for the push it page. I'm using Asp.net, but you can accomplish the same thing in PHP or whatever.

 public partial class push : System.Web.UI.Page
  {
protected void Page_Load(object sender, EventArgs e)
{
SaveChatPost();
}
void SaveChatPost()
{
using (SqlConnection oConn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["myconnectionstringname"].ToString()))
{
using (SqlCommand oCmd = new SqlCommand())
{
oCmd.CommandType = CommandType.Text;
oCmd.CommandText = "declare @ts as datetime;set @ts = current_timestamp;Insert into HonoviMarketing.dbo.tChat (ChatTime, ChatId, ChatMsg) values (@ts,@p_ChatID, @p_ChatMsg);Select @ts as CurrentChatTime";
oCmd.Parameters.Add(new SqlParameter("@p_ChatID", Server.UrlDecode(Request.Form["ChatID"])));
oCmd.Parameters.Add(new SqlParameter("@p_ChatMsg", Server.UrlDecode(Request.Form["ChatMsg"])));
oConn.Open();
oCmd.Connection = oConn;
using (SqlDataReader dr = oCmd.ExecuteReader())
{
if (dr != null && dr.HasRows)
{
dr.Read();
Session["CurrentChatTime"] = dr["CurrentChatTime"].ToString();
Session["ChatID"] = Request.Form["ChatID"];
}
}
oConn.Close();
}
}
}
}


No biggie here (and if the code runs off the page, just highlight and copy it, you'll get it all, stupid blogger :)). I save the post to the database, get a current_timestamp, and set that as well as the chosen ChatID into session variables that help with pulling the right data on the pull.aspx page, which is next. Note on both pages I put this logic in the code behind of the aspx page, and removed all the HTML from the front page except for the top asp.net directives line. And again, I'm just doing a simple example here, not worried to much about query security and the like, so don't get anal.

 public partial class server : System.Web.UI.Page
  {
protected void Page_Load(object sender, EventArgs e)
{
PullData();
}
string XMLSafe(string s)
{
return s.Replace("&", "&amp;").Replace("<", "&lt;").Replace(">", "&gt;");
}
void PullData()
{
using (SqlConnection oConn = new SqlConnection(System.Configuration.ConfigurationManager.ConnectionStrings["myconnectionstringname"].ToString()))
{
using (SqlCommand oCmd = new SqlCommand())
{
oCmd.CommandType = CommandType.Text;
oCmd.Connection = oConn;
oConn.Open();
if (Session["CurrentChatTime"] == null)
{
oCmd.CommandText = "Select Current_Timestamp as CurrentChatTime";
using (SqlDataReader dr = oCmd.ExecuteReader())
{
if (dr != null && dr.HasRows)
{
dr.Read();
Session["CurrentChatTime"] = dr["CurrentChatTime"].ToString();
}
}
}
else
          {
string sDate = Session["CurrentChatTime"].ToString();
SqlParameter p = new SqlParameter();
p.Direction = ParameterDirection.Input;
p.Value = sDate;
p.SqlDbType = SqlDbType.DateTime;
p.ParameterName = "@p_CurrentTime";
oCmd.Parameters.Add(p);
oCmd.CommandText = "select chatTime, ChatID, ChatMsg from HonoviMarketing.dbo.tChat where ChatTime > @p_CurrentTime and ChatID <> '" + Session["ChatID"] + "' order by ChatTime; SELECT CONVERT(varchar, current_timestamp, 21) as CurrentChatTime";
using (SqlDataReader dr = oCmd.ExecuteReader())
{
if (dr.HasRows)
{
System.Text.StringBuilder sb = new System.Text.StringBuilder();
while (dr.Read())
{
sb.Append("<span>" + XMLSafe(dr["ChatID"].ToString()) + ": " + XMLSafe(dr["ChatMsg"].ToString()) + "<br /></span>");
}
Response.Write(sb.ToString());
dr.NextResult();
if (dr.HasRows)
{
dr.Read();
Session["CurrentChatTime"] = dr["CurrentChatTime"].ToString();
}
}
}
}
oConn.Close();
}
}
}
}



Again of note is that I'm using session vars to help pull just the latest message that is needed. One gotcha that I encountered with SQL server to be aware of is that you need to format the current_timestamp else you loose the milliseconds, which was causing the chat page to sometime receive double messages. You need to format in your query like so - SELECT CONVERT(varchar, current_timestamp, 21) as CurrentChatTime for setting an accurate time for a session var.

Also remember to put a reference on both pages to the System.Data.SqlClient if you are copying my code. Here is a pic of the table layout I used.




Happy coding!

[Update]

I noticed I didn't do the SELECT CONVERT(varchar, current_timestamp, 21) as CurrentChatTime formating on the if session["CurrentTimeChat"] == null clause for the first time the pull page is hit, you can add that if you want, though things seem to work without it. Also the XMLSafe method isn't really necessary nor fully implimented, so you can ditch that method if you want or fully build it out if you are concerned about illegal HTML and XML chars. I'd fix this all in code but reposting in blogger is a pain when dealing with code, so I'll leave it as is, which works fine.

Tuesday, April 21, 2009

Google Makes Another Raid into Web 3.0

Ok, I track what is going on in the web world, though I need to spend much less time tracking and more time doing, I did find something very interesting.

We have a battle for next generation web apps that currently is between Silverlight and Flex/Flash, with Unity 3D and some other plugins on the fringes.

But now Google enters the fray…

Google's new Open GL Web API

Source: Ajaxian.com

Tuesday, April 14, 2009

Javascript Gotcha: substr <> substring

I love Javascript, but I don't client side code as much as I used too, so coming from recent use in C#, I tried to do a substring on a string and pulled my hair out for about 15 minutes wondering why the results I was getting back wasn't at all as expected. Well, then I remembered substr, which operates in javascript like c#'s substring. Grrrr...

For more-

substr vs substring

Sunday, April 12, 2009

Free C# E-Book

Download your free C# 2008 Illustrated e-book from A-Press!

Free E-Book

Source: DotNetShoutOut.com

Friday, April 03, 2009

Sunday, March 29, 2009

Pushbutton Flash Game Maker

This looks promising, a Flash game engine that supports isometric views, tile maps, and more.

Check it out here-

http://pushbuttonengine.com/

Update: Looks like IE doesn't like blogger, as the past in link doesn't work anymore. Oh well. Also, the pushbuttonengine is by the same guys who made torque.

Thursday, March 26, 2009

Distributed Open Source SVN: Git

Web Designer Depot has a nice into to a version control system called GIT that looks like it might be worth checking out.


http://www.webdesignerdepot.com/2009/03/intro-to-git-for-web-designers/

Wednesday, March 25, 2009

Unity 3D AI Package

Check out this Unity 3D AI Pack

http://drawlogic.com/2009/03/24/unity3d-path-and-behave-projects-from-angryant-waypoints-ai-paths-library-behavioral-trees-and-more/

Torque to Offer Unity3D Alternative

Torque looks to offer a web plugin with similar capacities as Unity 3D. The browser wars are heating up. Web 3.0, the game web, or the 3D web, is on the Horizon.


http://drawlogic.com/2009/03/24/torque3d-to-offer-web-based-export-similar-to-unity3d-improved-pipeline/

Future: Javascript 3D Capabilities On the Horizon

Looks like the Mozilla foundation is looking to bring Open GL capabilities to Javascript.

http://dusanwriter.com/index.php/2009/03/25/3d-in-a-browser-mozilla-and-open-gl-to-build-plug-in-free-virtual-world-access/

About time! Why mess with all these 3rd party plugins (Flash/Unity/Silverlight) when we can do things directly from the web browser? Especially when 3D will become more and more common.

VRML is dead...but its successor could finally be on the horizon.

Monday, March 23, 2009

Disappointment with Silverlight 3 Beta's 3D

OK, it is just a Beta, but I was hoping for a full on programmable 3D engine in Silverlight 3. I might have been naive, but I had high hopes. We do now have Unity 3D, but for business aps Unity 3D lacks many features, as it is targeted solely for Game Development. I was hoping I could have one app to do it all. There are some nice 3D features in Silverlight, don't get me wrong, but nothing that can't be duplicated with Flash/Flex/Papervision etc...

I guess I will have to wait...but beggers can't be choosers.

Friday, March 20, 2009

IE 8, Didn't Break As Many Things As I Worried About

Yes, IE8 is out. I've downloaded it at home and at work (at home it took two tries). So far I've only noticed some minor text overlay issues (a line being a few pixels up or down). Other than that most of the sites (including our work site...I was worried about that) appear to operate normally.

www.microsoft.com/ie

Thursday, March 19, 2009

Great SQL Server Maintenance Article

I know a lot of people are using SQL Server 2005/2008 Express for production (though they shouldn't). I also know folks are using the cheaper SQL Server 2008 Web version for web databases. Both of these databases lack some maintenance and backup features that their more expensive cousins have. If you find yourself needing those features but unable to afford them, this article might help.

http://code.msdn.microsoft.com/SQLExamples/Wiki/View.aspx?title=ExpressMaintenance&referringTitle=Home

Wednesday, March 18, 2009

Kick @ss, Unity 3D for Windows Released!

Finally, the true progeny of Director, Unity 3D, is available for Windows! I can't wait to get my hands on a copy. Download the 30 day trial here-

http://unity3d.com/unity/download

Thanks Developmag.com for breaking the story-

http://www.developmag.com/news/31482/Unity-now-avaiable-for-Windows

Also announced today is the release of Silverlight 3 Beta...yawn.

Wednesday, February 18, 2009

Like to Chat? Check out Meebo

I stumbled across www.meebo.com today, and I like it. Web based "omni" chat client, to use my own words. Use MSN, Yahoo, Facebook, and more. Pretty cool.

Tuesday, February 17, 2009

Ahhh Vanity

Basically, as a writer and a blogger, I suck pretty hard. Broken English, misspelled words, incomplete sentences and thoughts, yadda yadda. This occures partially because I really do suck at times, but more often then not it is laziness on my part to not cross every t or dot every i.

But blogging is fun, and feeds a little personal vanity I suppose. I don't bring much to the table, but every once in a while someone will thank me for posting some code or quote a comment I left on a blog.

Here is one case...

http://dusanwriter.com/index.php/2009/02/17/identities-constructed-virtual-worlds-and-anonymity/

This post is about virtual identities, something I'm very interested in. And the author, Dusan, talked briefly about a comment I made about Oscar Wilde, though I can't seem to find the original comment on the other blog post. So, in a small way, I added to the discussion of things, and got people to think a little bit about a point I made, which is cool.

Does my heat good and feeds the vanity flame a little more.

Thursday, February 12, 2009

Think Science Isn't Cool? In the USSR It Is

Just so you believe me, say you were a nuclear engineer in Russia. Here are some of your comrads.

http://miss2009.nuclear.ru/participants.html

I doubt most engineering or scientific firms in the US could mount any sort of challenge to the miss atom contest in the CIS.

What does this tell us, besides the fact that I was checking out some Russian scientific hotties? That there is a big cultural difference between Russia and the US. In Russia, science is cool enough to attract some babe talent. In America, not so much (though there are exceptions to every rule...if you are female, in science, and reading this, you are the exception...of course:). This is a problem.

Source: Wired Defense Blog

Monday, February 09, 2009

Three PHP Frameworks Worth Checking Out

I think php is kind of in a crisis right now (and I'm sort of talking through my rear, as I'm working on my first PHP project now). It seems like PHP is really simple. But a lot of folks talked down to PHP because it wasn't "object oriented" enough. So now PHP is trying to become what maybe it shouldn't be, a first class object oriented language. Or let me put it this way, hopefully it won't become a first class object oriented language at the expense of loosing its easy to use/easy to understand roots.

Anyway, I digress...

For those of you who just can't stand the fact that you don't have all the OOP and other "modern" features of other languages in PHP, check out the following PHP frameworks that extend PHP to support things like MVC, better OOP, and Active Record, to name a few. Here they are.

CakePHP http://cakephp.org/
The Zend Framework http://framework.zend.com/
Code Igniter http://codeigniter.com/

If you have any opinions on which is better, I'd be interested. I will take one out for a spin on my second or third project.

Sunday, February 08, 2009

Abyss and Sql Server 2008




You might be wondering how hard it is to get php and SQL Server 2008 talking to each other on an abyss web server. Turns out it is pretty easy. Here are the basics (which is pretty much exactly how you think you would do it). Below assumes you already have Abyss, php, and sql server up and running.

1. Download and "install" (unpack into a folder) the latest php/SQL Server driver (it says 2005, works wth 2008, but you have to get funky if you want to use some of the new 2008 data types...update in the works).

http://www.microsoft.com/DOWNLOADS/details.aspx?FamilyID=61bf87e0-d031-466b-b09a-6597c21a2e2a&displaylang=en

2) Copy the php_sqlsrv_ts.dll from your driver's install folder into your php folder.

3) (Optional: Back up your php.ini file in your php folder, then...) Add the following line into the extensions section of your php.ini file-

extension=php_sqlsrv_ts.dll

4) Restart Abyss, and you should be done. You can check for a sqlsvr section in php_info.

I haven't done to much testing with this, but it says it has installed, so for now I will assume good. Also if you have sql server running on a different box, you may have to tweak your php interpreter settings in abyss from named pipes local to named pipes tcp/ip. Not sure as I'm just using a local version of sql express.





Wednesday, February 04, 2009

XMLDataSource Remembered

I always forget this. Sometimes I don't have the db setup but I need to model some web pages based on data. The XMLDataSource comes in really handy for that (in ASP.Net that is). Here is a link to a quick reminder of how to use the XMLDataSource with a little xpath.

http://www.codeproject.com/KB/webforms/XMLDataSource.aspx

Thanks Keyvan Nayyeri

Update: Or you can use XML directly in the XMLDataSource control

https://stackoverflow.com/questions/322190/asp-net-3-5-bind-to-xml-string


Tuesday, February 03, 2009

Great Example of a Serious Game

This is an awesome example of how games can be used in training.

Monday, February 02, 2009

Problem for Microsoft

Do a little web searching for top Web 2.0 sites for 2008. You might have to adjust your search params to include social media or what not, but go ahead and search.

Once you have a few list up, go through them, and see hot many of them are using ASP.Net.

1? Maybe 2?

Not good. ASP.Net is awesome for creating internal enterprise-based web applications. It isn't getting that much steam, it would appear, with the innovative crowd that is bringing new web apps to the masses. This in turn means that up and coming developers, who may not exist in the enterprise sphere (yet), see only sites using PHP, or Ruby, or something else. A rational choice for this next wave of developers will be to go with what the big boys (at least of what they can see of the big boys from their vantage point) are using, and it isn't ASP.Net.

I'm in a similar position right now. I do all ASP.Net/C# dev at work, but for an upcoming personal project I'm thinking of ditching ASP.Net for at least the web component of the project. Why? It is just to much. The last web site that I built where I was exclusively focusing on solving client problems, while not having to learn how to implement technical solutions on the fly, was written with simple classic ASP. With ASP.Net it seems like you really need to be at a guru level before you can quit worrying about the how-to's and focus elusively and the why's and what is best questions. Even though I use ASP.Net all the time at work, I don't feel like I'm at the guru point yet. Classic ASP was simple, but it did what I needed without me having to think to much about it. I miss that.

Now I'm looking at PHP for the web component (I will probably stick with MS SQL Server for the db). I'd have to learn it, but it looks like the basics of PHP are really, really simple, something I can probably sit down and master the basics of (data in, data out, data on the page) in a few days. That sounds really appealing to me right now. My project isn't about learning how to do something, it is about providing something. I want to get into the providing a solution rather then learning how to provide a solution as quickly as possible with the minimal about of head aches. Plus I want to right code and have once it works to be able to sit for the next 10 years without worrying about it. PHP is going on version 6 right now, but from what I understand version 1 code will still run under PHP 6 (though this might not be 100% the case, I imagine minimal tweaking would be needed). Classic ASP is pretty stable, but who knows how long that will be around. With .Net, Migrating say from version 1.1 to version 4.0 (when it comes out) would be nightmare, and would require investments into MS server tech and developer software.

So, is ASP.Net a fit for public web applications? The big boys don't seem to think so, probably for some of the reasons I alluded to above, and for Microsoft, that is a problem.

Wednesday, January 21, 2009

Add a Little Flair to your Web Site

I remember about five years ago there were all sorts of neat programs out there that would generate cool text effects for you in Flash SWF format. Some have gone by the way side, but here are a few that are still kicking that might be of interest.

http://www.wildform.com/
http://www.swishzone.com
http://www.xara.com/us/

If you know of any others, let me know and I'll post 'em.

Flex - Silverlight - Laszlo- Javascript - Widget IDE: Spket

This IDE looks promising. It supports JavaScript, XUL/XBL, Laszlo, Flex, SVG, Silverlight, and Yahoo Widget intellisense. Take a gander here-

http://www.spket.com/

Free for personal use, under 30 for professional. If you have used it please leave a comment and let me know what you think.

Wednesday, January 14, 2009

Wednesday, January 07, 2009

Javascript Page Flip

The guys over at Sitepoint came up with an interesting page flipping script using jQuery and CSS Sprites.

Check it out here...
http://www.sitepoint.com/examples/jquery/animate4.php

The full article here...
http://www.sitepoint.com/blogs/2007/07/20/javascript-sprite-animation-using-jquery/#comment-858604

Pretty cool, I'm sure this technique has been done elsewhere, and can be utilized in other technologies like Flash and Silverlight if you wanted to go that route.

Friday, January 02, 2009

Caching and DataSets

I ran into some issues with Caching on page DataSet elements in ASP.Net. The following link provides a solution.

http://weblogs.asp.net/despos/archive/2005/08/08/421868.aspx

Tuesday, December 30, 2008

Aptana for PHP and the Aptana Cloud

I just downloaded the Aptana IDE and then sebsequently installed the php plugin.

www.aptana.com

One thing I noticed is that for under 30 bucks, you can deploy a php/mysql app to the Aptana cloud! There is a free one month trial, I will check it out.

The cloud supports SVN, state and production servers out of the box, if it works that is a pretty nice turn key solution to for getting apps out there.

I think I get cloud computing now...

Monday, December 29, 2008

List of Countries, US States, Canadian and Mexican Provinces

Here is a zipped Excel file with data for a list of all Countries and their 3 letter codes (per the UN), All US State/Armed Forces and Canadian Provinces, and also a list of Mexican Postal provinces.

Zip File

Sunday, December 28, 2008

Mod_Rewrite

Here is a quick and dirty guide to using apache's mod_rewrite module

http://www.workingwith.me.uk/articles/scripting/mod_rewrite

The Benefit of Having Many Choices

Well, once again I'm faced with a new year where I try to get myself motivated to build some web applications. I've been farting around with some tech decisions, and I've come up with the following for one of my projects.

I'm going to use the Abyss web server, PHP, and SQL Express 2008. It is cool to be able to not have to stick with one platform. I like Abyss because I can run it on any platform, and it is easy to use. I like PHP because so many people have done so many great things with it, and you can use PHP both in OOP mode or more like spaghetti classic ASP, which I actually was a master at. I think I'll stick with MS SQL Server for now. MySQL has come a long way, but it isn't quiet comparable to SQL Server yet IMHO. And lastly, on the client side, I'll make heavy use of jQuery. I might also use phalanger to boost the speed of my php if it will work with Abyss.

Pretty cool.

php.net?

php.net? Well, kind of-

http://www.codeplex.com/Phalanger

For more info to get what Phalanger can do in perspective, try here-

http://petesbloggerama.blogspot.com/2006/12/aspnet-20-vs-php-etc.html

Tuesday, December 23, 2008

Unicode Character Reference

Unicode Value Name Symbol

\u0009 Tab
\u000B Vertical Tab
\u000C Form Feed
\u0020 Space
\u000A Line Feed
\u000D Carriage Return
\u0022 Double Quote
\u0027 Single Quote <'>
\u005C Backslash <\>

http://www.webreference.com/js/tips/000126.html

Tuesday, December 16, 2008

IE vs Firefox Font Rendering...What Gives?

I looked at an application today in both IE and Firefox. Well the fonts look like crap in Firefox, and seem to always look like crud in Firefox. So I finally googled why...turns out the problem is with Windows XP and not Firefox.

Here is the 5 second fix if you can wade through the ads-

http://liveslick.com/2007/09/22/why-is-internet-explorers-font-rendering-so-much-better-than-firefox-and-opera/

Wish I would have googled this a long long time ago...

[Update]
Note if you change the settings, the setting change is global and will affect more then just Firefox. You might possibly be able to download the power toy here-

http://www.microsoft.com/typography/cleartypepowertoy.mspx

Which might give you some additional options, but I haven't played with it.

Friday, December 12, 2008

XAMPP for Windows

Well, I decided to start playing with php and mySQL. I did a little bit of research, and it looks like if I want to stick with the windows side, the easiest way to go about things is to download and install XAMPP, which is a package provided by "Friends of Apache". XAMPP is an almost idiot proof installer that contains php 5.x, mySQL 5.x, openSSL, apache, and a few other items. XAMPP is available for winblows, macs, and linux. You can get yourself a copy to play with here.

http://www.apachefriends.org/en/xampp.html

So far things worked pretty much as advertised, except that I had to change the apache default port from 80 to something else because I'm running IIS (you can do that in the ini file, google it). I noticed that even though Apache is running on port 85 when it loads in the control panel it still says it is running on port 80 even though it isn't, minor glitch.

The second issue I had is with the winMySqlAdmin control I kept getting an access violation that would pop up every 15 seconds or so. The quick fix is here, though I'm sure there is another way you can setup mySQL so you don't have to run it as root.

http://phpbugs.wordpress.com/2008/01/24/access-violation-address-10002593/

So far XAMPP is great, and at least initially it looks pretty easy to install and configure.

An alternative to XAMPP would be to get the Abyss web server up and running, which supports pHp and even classic ASP with a shareware add in. I like Abyss because it is one of the few non-IIS windows web servers that supports ASP.Net. Flavors of Abyss come for Windows, Macs, and Linux.You can check Abyss out here-

http://www.aprelium.com/

And then there is always the option to take the non-mac/windows approach and go with Linux, which php and mySQL were really built for. So far I'm favoring the following two distros, but I don't have a data free box yet to install them on.

http://www.ubuntu.com/
http://www.pclinuxos.com/

Next up, actually doing some php development. I need a good IDE, I hear eclipse has a php plugin that gives you intellisense.

[End of Tech Part of Post]

Who knows? Maybe I'll even play with the open source Flex SDK, JavaFX, and the .Net ports of Linux. I feel like I'm kind of stagnating, and I all of sudden I feel the need to explore what else is out there besides M$ products. Don't get me wrong, I don't see C#, ASP.Net, VS Studio, and Sql Server becoming anything but my primary development tool set anytime soon, but sometimes its good to cross pollinate. New ideas and new ways of doing things start to flow that way.

The only show stopper is that I think it is about time to start playing with MS Silverlight. I really want to wait till version 3 comes out, but I'm not sure I'll have time as we might start using v2 3rd party products here in the next few months at work. So all the above might get shoved aside for a bit while I come up to speed with Silverlight.

Anyway, I greatly admire what the open source community has done with php. I'm not so sure about mySQL, but it is free and large scale apps use it, so we shall see. The sweet spot for me on some personal projects that I want to develop might be using abyss to run php and MS SQL Express on an old XP Pro box. The advantage of having a lot of technologies to choose from.

Thursday, December 11, 2008

Tired of All Those Hidden Processes and Sypware?

http://4sysops.com/ blog alerted me to some new software called Process Lasso which can be downloaded here-

http://www.bitsum.com/prolasso.php

Process Lasso is awesome, it is a system tray program with a gui that allows you to set process cpu priorities, cpu affinitities, you can auto terminate processes, and has a host of a bunch of other features.

The program is free for academic and home use. Five out of five stars.

Monday, December 08, 2008

Basic ASP.Net: Viewstate Variable Pattern

Here is a simple example of how to store a variable in view state for easy access. The example is using a string but any object/type can be used.

private string GTR
{
get
{
object o = ViewState[ "GTR" ];
return ( o != null ? o.ToString() : "" );
}
set
{
ViewState[
"GTR" ] = value;
}
}

Sunday, December 07, 2008

Friday, December 05, 2008

Fallen Sword: A Quick Review

So to continue on with my latest trip, browser based MMO’s, I’m doing a quick review of the Browser based MMO Fallen Sword. I’ve played only for a little over a week, but the game is highly addictive. I’m only level 17 so there is still a lot of game I would like to see.


For a casual RPG game, I would rate this game 5 out of 5 stars.
Here is a very quick recap of what I liked about the game.


What I like


  • The Game is easy, there is a somewhat clear path of quest to gain items
  • It is easy to level up
  • PvP is kept at +- 5 levels
  • The graphic artistry is very good
  • Like the items and the powers they provide
  • Guild system is awesome


What Could Be Improved


  • The map is kind of small, could be ajaxed
  • Don’t like the Guild Text alerts.
  • Group combat could be improved, obvious add in
  • If you belong to powerful guild and are a low level character, things are too easy in combat
  • Combat grind can be tedious
  • Skill/Spell tree could be expanded
  • Broken items are kind of a nag
  • Could offer a live chat for guild
  • There was kind of a gap where you had to grind through slowly at around level 8 and level 14 which might cause some players to drop (actually this gap is experienced a few latter on too, where you are to powerful for the monsters of your level but your are too low a level to do the next batch of quest).

What is Unique/Interesting


  • No classes
  • Can cast “skills” on other characters



For more info, go to fallensword.com

Wednesday, December 03, 2008

Another Virtual Hook Up Story: A Trend That Will Get Bigger

Some chick in England hooks up with some dude in Second Life, meet him in RL, then dumps 'em. Then she gets mad two weeks later when she checks his avatar out and he is already hitting on someone else. She then deletes the software.

http://www.dailymail.co.uk/femail/article-1091450/How-I-romance-man-I-met-bizarre-internet-fantasy-world-Second-Life.html

Ahh the tangled webs we humans weave! As virtual spaces like Second Life and its follow ons continue to evolve, I expect to see all sorts of things come out of them.

The good-
  • People finding each other virtually and then successfully starting long term/marriage relationships in real life (like me).
  • People making money selling virtual goods.
  • Numerous multinational friendships being made.
  • Companies using virtual spaces to help further globalize the work force.
  • Virtual outreaches to people who need help (including Christian outreaches, counceling, entertainment for isolated people).

The ugly

  • People abusing each other in real life after meeting virtual (including broken hearts, rape, murder, kidnapping, etc...)
  • Virtual prostitution with a blur between virtual and real.
  • Addiction...people have no sense. If they like something, they will give all they have to it. Their time, their jobs, their families, their savings.
  • Organized crime using virtual spaces for meeting, planing.
  • Blackmail
  • All sorts of gender bending weirdity, "furry sex", more creepy stuff that will inevitably spill over into real life.
  • The list goes on.

Welcome to the 21st Century people!

Monday, November 24, 2008

My New Kick, Browser Based Games

I found an excellent browser based MMO called Fallen Sword-



I didn't think just HTML and PHP could pull off a game that is very fun but they have done it. Best of all it is expansive, offers many features, and is free. Plus it is easy to jump in and jump out of the game, making it a great game for more casual players like myself.

Check out http://www.huntedcow.com/ , they make quiet a few BB games, all of them look pretty good.

AQ Thanks Iran for Its Support

I know many in the left don't want to link Iran and Al Qaeda, but AQ doesn't seem to have such a problem.

http://www.telegraph.co.uk/news/worldnews/middleeast/iran/3506544/Iran-receives-al-Qaeda-praise-for-role-in-terrorist-attacks.html

Saturday, November 22, 2008

DARPA to Develop SKYNET

Remember the movie the Terminator? SKYNET was the AI in charge of Norad that decided that ALL humans were a threat, not just America's enemies, and thus started a nuclear war to try to rid the world of humans.

Well it looks like DARPA is trying to build SKYNET. Heck, you could even have this Slashdotted article as a movie prolog leading up to the early days before SKYNET.


Read onward here-



And for some fun reading to prep you for the release of Terminator 4: Salvation, click on the image above to take you to a site that has some great writing based on the original Terminator Movie.

Thursday, November 20, 2008

Basic: Adding JavaScript Confirmations to an ASP.Net Button

Adding Javascript generated confirmations to your ASP.Net buttons is easy, but I always seem to forget how to do and my first and second guesses are usually wrong. So instead of using google to find the answer next time, I will use google in a new way (my blog) to store the answer. Ok here goes.

  btnCancel.Attributes.Add ( "onclick",
"javascript:if(confirm('" + CancelMessage + "')){do stuff;return true;}else{return false;}" );

Not All Mysteries Have Been Solved

Scientist find a new species of dolphin in Australia

http://www.cryptomundo.com/cryptozoo-news/new-dolphin-oz/

Also, check out cryptomundo.com, it is a great site, and they post new species discoveries, weird sightings of creatures, and other oddities that bring a little mystery back into our digital age.

Wednesday, November 19, 2008

The ACLU Lost One, Let's Hope The Trend Continues

The ACLU in my book is pretty much an enemy of the state, which is a shame, because they should be providing a needed service to protect people's rights rather then be involved in societal transformation.

Anyway, they lost a court battle. Excellent.

http://www.theindychannel.com/news/17999573/detail.html

Tuesday, November 18, 2008

Campaign Coverage Leans Left: Suprise!!!

One major newspaper admits it, but without appology.

http://www.washingtonpost.com/wp-dyn/content/article/2008/11/07/AR2008110702895.html

After all, when you are on the side of righteousness, who dares question you? [sarcasm]

File This Under...We Will Think About It Later

This is one example of many of the types of things that pop up on the radar from time to time that just doesn't fit into a secular humanist's world view. So how do our secular humanist scholarly scientist types deal with this stuff? Dismiss, deny, forget.

Prayer Helps with Fertility-

http://www.obgyn.net/newsrx/womens_health-Fertility-20011018-16.asp

Breakthrough: Organs Grown to Order

Look like they can grow replacement organs in a lab now. Drudgereport.com posted three links. Check 'em out.

http://www.telegraph.co.uk/health/healthnews/3479613/British-doctors-help-perform-worlds-first-transplant-of-a-whole-organ-grown-in-lab.html

http://www.independent.co.uk/life-style/health-and-wellbeing/health-news/the-medical-miracle-1024576.html

http://www.timesonline.co.uk/tol/life_and_style/health/article5183686.ece

Monday, November 17, 2008

Silverlight vs. Flash...Silverlight 3 May End The Battle

I like Flash, though I've only used it to do progressive video streaming and a few other minor text spins on a page. I don't like Flash's IDE. Flex's eclipse might be better, but I did one check of it and it didn't offer full intellisense (even though it is advertised as such), so at the time I decided to back burner learning Flex.

Well, I'm glad I did. Flash 10 supports quasi 3D, but it looks like Silverlight will support full 3D. Read towards the end of Scott Guthrie's Blog here-

http://weblogs.asp.net/scottgu/archive/2008/11/16/update-on-silverlight-2-and-a-glimpse-of-silverlight-3.aspx

Very signifigant. I've been looking for the holy grail platform to do browser based game development for a long time. Flash works, but you have to hack at it. And you don't get true 3D. MAYBE, just MAYBE, Silverlight 3 will be the killer web game app, as well as business RIA creator, that I've been waiting for.

After Christmas it is time to start diving in to Silverlight.

Saturday, November 08, 2008

Some JavaScript Plugins/Code Worth Checking Out

I can't vouch for these, but over the course of the last few months the following links have shown up on my RSS radar, and they look promising. Take a look for yourself.

Spin JS, which turns textboxes into clickable number up and number down boxes-
http://acidmartin.wemakesites.net/?pageId=SpinBoxJs

A Javascript Graph Plotting Tool-
http://www.jslab.dk/plottool.htm

A jQuery based Color Picker-
http://acko.net/dev/farbtastic

Easy Google Map Marker Creation-
http://ajaxian.com/archives/google-maps-utilities-for-creating-markers-and-loading-kml

Javascript/PayPal supported Simple Shopping Cart
http://www.thewojogroup.com/2008/10/simplecartjs-paypal-e-commerce-in-minutes/

Another Javascript Table Sorter
http://www.leigeber.com/2008/11/javascript-table-sorter/

CSS Menus
http://lwis.net/free-css-drop-down-menu/

Thanks to Ajaxian and Web Resources Depot (see sidebar under useful links) for making me aware of these resources.

Auto Ajaxify A Static Web Page

Ajaxifying a web page by just dropping a javascript class onto the page? Sound to good to be true? It probably is, but the author seems to have allowed for exceptions by including the ability to create rules for the javascript class.

Looks worth checking out-

http://www.bydust.com/examples/com.bydust.ajax/

Source: http://www.webresourcesdepot.com/

Thursday, November 06, 2008

So I won't forget this the double split

coming back and editing this later. nothing that anyone couldn't figure out on their own, just something I bump into, here for ref

declare @p_value_rows as varchar(300)
set @p_value_rows = '234f~asd4adsfa~0dfsg'


SELECT
SUBSTRING(value_desc,0,CHARINDEX('~',value_desc))
, SUBSTRING(value_desc,CHARINDEX('~',value_desc)+1,LEN(value_desc) - CHARINDEX(value_desc,'~'))
FROM [db splitter function here](@p_value_rows, '')

Wednesday, November 05, 2008

Obama Wins

Sighs...

Well, the dems have the white house. I will try to be positive. Some good things I saw.

1) High voter turn out. A good sign, I hope the trend continues.
2) All in all things were civil.
3) A Minority is elected President. That is a good sign that America, for the most part, is moving beyond skin color and ethnicity in judging and individual.

Enjoy your victory democrats, both in the presidency and in various other offices. I and many others will be watching.

Monday, November 03, 2008

Work Begins On A River UUV

Check out ARES blog for info about a new river patrol unmanned underwater vehicle (UUV).

http://www.aviationweek.com/aw/blogs/defense/index.jsp?plckController=Blog&plckScript=blogScript&plckElementId=blogDest&plckBlogPage=BlogViewPost&plckPostId=Blog%3a27ec4a53-dcc8-42d0-bd3a-01329aef79a7Post%3aab9fb812-1470-4983-ae14-687b08d9ebd0

Next Administration Needs to Spend A Lot On Defense

Great article on the future defense spending. Think the dems, if elected, can rise to the challenge?

Restocking_For_Another_Decade_Of_War_Part_One

Georgia Leaves the CIS

Georgia decided it hasn't had enough @ss whipping by the Russians, and has decided to leave the Commonwealth of Independant States.

http://www.spacewar.com/reports/Analysis_Georgia_leaves_the_CIS_999.html

Metal Returns to Iraq

Yes, Heavy Metal is back in Iraq. A good sign for any nation.

http://www.usatoday.com/life/music/2008-10-29-iraq-heavy-metal_N.htm

Libya Offers Russia A New Base

Sensing U.S. Weakness, Libya decides it can now cozzy up to Russia.

http://www.spacewar.com/reports/
Libya_offers_to_host_Russian_military_base_report_999.html

Sunday, November 02, 2008

Saving XML to SQL and the Dreaded Parse Error

I recently at work tried to save an XML string to SQL Server 2005 and I kept getting the following error...

XML parsing: line 1, character 38, unable to switch the encoding

Turns out the solution was to just change the paramter datatype that I'm passing to the stored proc to a varchar (even though the stored proc expects XML) and the problem goes away and data is saved fine. Example of the parameter I passed to the stored proc-


SqlParameter p_xml = new SqlParameter ();
p_xml.ParameterName = "@p_xml";
p_xml.SqlDbType = SqlDbType.VarChar;
p_xml.Value = "your xml string";


The issue has to do with my string XML being UTF-8 based, and SQL 2005 wanting UTF-16. The above hack fixes the issue, and you can still pass UTF-16 based XML and the varchar handles that as well.

Credit for the fix goes to Bob Beauchemin at this link-

http://bytes.com/forum/thread498342.html

Starting A Busines in Michigan

Saving this link for reference.

http://ref.michigan.org/medc/services/startups/?m=12;7