AppHarbor & Github

AppHarbor and Github, from 0 to deploy..


Posted by: Rick Sammons
Posted on: 1/25/2012 at 2:00 AM
Categories: AppHarbor | Github
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

solrnet Lucene, adding documents from .net

Ok, as easy as this is, it had me stumped a minute, which is about how long I have been mesing with solr and solrnet.

Easily set up a test index and services to pull data from it following this blog http://beckelman.net/post/2011/02/22/Setup-Apache-Solr-on-Windows-with-Jetty-Running-as-a-Service-via-NSSM.aspx. Kind of fumbled my way around adding a document from .net doing something like this.


After that I struggled for a minute trying to add fields that allow multiple values, then I felt stupid and added the following code.

It's simple, but I thought if I had to think about it.. You might also.

Happy coding.


Posted by: Rick Sammons
Posted on: 9/28/2011 at 10:08 PM
Tags: , , ,
Categories: Luene | SOLR | SOLRNET
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

The search for Sanity.


Posted by: Rick Sammons
Posted on: 8/18/2011 at 2:55 PM
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Odyssey One

Odyssey OneOdyssey One by Evan C. Currie


Incredible. Reminded my of some of my favorites. I'll be watching for more from the auther and hopefully soon see the second book in this series out for my ereader.

View all my reviews


Posted by: Rick Sammons
Posted on: 7/21/2011 at 4:28 PM
Tags:
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Zombie Apocalypse

Get A Kit, Make A Plan, Be Prepared. emergency.cdc.gov


Posted by: Rick Sammons
Posted on: 5/19/2011 at 5:01 PM
Categories: Zombie Apocalypse
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

nHibernate paging method

Wrote this to support a JQuery-JQGrid call, Hope it's useful.


Posted by: Rick Sammons
Posted on: 3/9/2011 at 6:41 PM
Tags: , ,
Categories: JQGrid | nHibernate | JQuery
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Internet Explorer Developer Tools Cookie Management

Never notied the cookie management built in to developer tools in IE before, Might have to try uing the browser again.


Posted by: Rick Sammons
Posted on: 8/17/2010 at 3:10 PM
Categories: Internet Explorer | Cookie Management
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Silverlight 4 Beta – A comment on new features

Just reading the new features list for Silverlight 4. Looks like things are going jump to the next level. ICommand, Webcam support, Richtext control.. Oh My!...

http://timheuer.com/blog/archive/2009/11/18/whats-new-in-silverlight-4-complete-guide-new-features.aspx#printing

Direct Access to local file on a client machine.. hmm. As a developer I like the idea of not having to rely solely on cookies, as a user I'll have to see how limited the access is.

Notification (aka “toast”) API >> no more writing a status view.

Right-click event handling >> Okay, now I believe in Santa again.

With all this coming in SL4 who is going to write anything in Winforms anymore?.

I've seen guesses for spring, it would be nice, but with SL3 hardly out of the box I would be amazed if it gets here that soon. Also after the nightmare I had moving from SL3 beta to SL3 release, I think I'm going to setup a laptop just to test the beta, and I get a client that wants to start work in SL4 pre-release I'm going to run for the hills.

Happy Coding.

 


Posted by: Rick Sammons
Posted on: 12/13/2009 at 12:02 AM
Tags:
Categories: Silverlight 4
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

Silverlight ComboBox SelectedItem

Does not work!!!
<
ComboBox SelectedItem="{Binding Selected}" ItemsSource="{Binding items}" DisplayMemberPat="Name" />

Works!!!
<ComboBox ItemsSource="{Binding items}" SelectedItem="{Binding Selected}" DisplayMemberPath="Name" />

Can you spot the difference? It appears that SelectItem and ItemSource are fired in the order that they are added to the control.


Posted by: Rick Sammons
Posted on: 8/31/2009 at 9:40 PM
Tags: , ,
Categories: Silverlight 3
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed

MouseDragElementBehavior with Silverlight 3

Some great new functionality. One of my favorites is MouseDragElementBehavior. We've all written drag and drop functionality over the years. but with Expression Blend and Silverlight 3 it's easier than ever.

To start, lets create a new Silverlight application, go ahead and select create new web site with the solution.

Once it loads, add a class named MyDragEvent.cs, using Microsoft.Expression.Interactivity.Layout in your class let add.

Change your class to inherit from MouseDragElementBehavior.
public class MyDragEvent : MouseDragElementBehavior

Add a constructor and in the constructor add an event to handle the mouse release event.
base.DragFinished += new MouseEventHandler(MyDragEvent_DragFinished);

Put in the code to handle the event, and lets add a popup in there just because there are not already enough popups in the world.
void MyDragEvent_DragFinished(object sender, MouseEventArgs e)
{
  
HtmlPage.Window.Alert("Ground control, this is major Tom.");
}

Now the fun part!!!

Save the solution and open it in Expression Blend.

In Blend, create a rectangle and change the background to a Gradient, whichever colors you like.

After that you select the 'Behaviors' Item in the Assets Tab (Like So)



Next you should notice that the event we created in our class is available in the listbox of Behaviors. Now all you have to do is drag 'MyDragEvent' on to the rectangle you created and then save your work. Now close Blend, go back to your solutions and run it. You should be able to drag until your wrist hurts.

 

Happy Coding!


Posted by: Rick Sammons
Posted on: 7/15/2009 at 7:04 AM
Tags: , ,
Categories: Silverlight 3
Actions: E-mail | Kick it! | DZone it! | del.icio.us
Post Information: Permalink | Comments (0) | Post RSSRSS comment feed