Thursday, November 29, 2012
When do you stop for UX in SCRUM?
Posted by
Daniel Pupek
at
9:28 AM
I've been struggling with the question of integrating User Experience (UX) into our release cycle. Here is an article that suggests a pretty good solution:
Fitting Big-Picture UX Into Agile Development
Tuesday, November 27, 2012
See what your SQL Queries are costing you
Posted by
Daniel Pupek
at
9:02 AM
Here is a neat script that will tell you what the most costly queries are on your SQL Server:
SELECT creation_time
,last_execution_time
,total_physical_reads
,total_logical_reads
,total_logical_writes
, execution_count
, total_worker_time
, total_elapsed_time
, total_elapsed_time / execution_count avg_elapsed_time
,CAST('' AS XML) AS statement_text
FROM sys.dm_exec_query_stats AS qs
CROSS APPLY sys.dm_exec_sql_text(qs.sql_handle) st
ORDER BY total_elapsed_time / execution_count DESC;
Tuesday, October 16, 2012
FIXED: "Invalid type owner for DynamicMethod" error in Nhibernate
Posted by
Agile Jedi
at
11:12 AM
If you recieve the "Invalid type owner for DynamicMethod" error while initializing you NHibernate SessionFactory then it's pretty likely that you are using generic methods on some of your lazy loaded/proxied classes.
Nhibernate incorporates a reflection optimization that speeds up the creation of proxy classes. This reflection optimization does not play well with generics. The error it throws is "Invalid type owner for DynamicMethod". Not very friendly.
So, to fix this you must either stop using generic methods OR turn off the optimization. To turn off the optimization you must run the following code before you initialize your SessionFactory.
Nhibernate incorporates a reflection optimization that speeds up the creation of proxy classes. This reflection optimization does not play well with generics. The error it throws is "Invalid type owner for DynamicMethod". Not very friendly.
So, to fix this you must either stop using generic methods OR turn off the optimization. To turn off the optimization you must run the following code before you initialize your SessionFactory.
NHibernate.Cfg.Environment.UseReflectionOptimizer = false;
Tuesday, November 29, 2011
I was Interviewed
Posted by
Agile Jedi
at
1:36 PM
Not sure if I posted my interview done by Rustici:
http://scorm.com/blog/2011/04/interview-with-dan-pupek-chief-systems-architect-at-advanced-systems-technology/
http://scorm.com/blog/2011/04/interview-with-dan-pupek-chief-systems-architect-at-advanced-systems-technology/
Thursday, May 26, 2011
Make a 5 Second Video from Image using FFMPEG
Posted by
Agile Jedi
at
11:12 AM
Been playing with FFMpeg and Mencoder to create videos from a list of Images and an audio file.
Here is the command I used:
Here is the command I used:
ffmpeg -loop_input -vframes 50 -f image2 -i foo-1.png -r 10 foo1.avi ffmpeg -loop_input -vframes 50 -f image2 -i foo-2.png -r 10 foo2.avi ffmpeg -loop_input -vframes 25 -f image2 -i foo-3.png -r 10 foo3.avi ffmpeg -loop_input -vframes 25 -f image2 -i foo-4.png -r 10 foo4.avi mencoder -audiofile foo.wav -oac copy -ovc copy -o output.avi foo1.avi foo2.avi foo3.avi foo4.avi
Thursday, April 28, 2011
Making the leap to QueryOver
Posted by
Agile Jedi
at
4:06 PM
So, if you are using the ActiveRecord/NHibernate stack I highly recommend switching to query over. The syntax is cleaner and it's type-safe.
Here is an example of a criterion based query:
Here is an example of the same query in QueryOver:
Unlike the Linq language for Nhibernate QueryOver is just a translation layer for Criterion.
Here is an example of a criterion based query:
Here is an example of the same query in QueryOver:
Unlike the Linq language for Nhibernate QueryOver is just a translation layer for Criterion.
Tuesday, April 26, 2011
Silverlight: Getting your Listbox Items to stretch
Posted by
Agile Jedi
at
3:54 PM
I was having some trouble getting my ListBox items to stretch across the entire ListBox. I did not want to get into the game of dropping into code to fix layout issues. Here is what I had to do.
This first attempt did not work:
I had assumed that the HorizontalContentAlignment attribute would do the trick. For most controls it does. I was wrong. Here is what I finally had to do:
Notice the addition of the container style. As far as I can tell this is a bug. I found the original answer here.
This first attempt did not work:
I had assumed that the HorizontalContentAlignment attribute would do the trick. For most controls it does. I was wrong. Here is what I finally had to do:
Notice the addition of the container style. As far as I can tell this is a bug. I found the original answer here.
Subscribe to:
Posts (Atom)