You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Things has been quite hectic since we are closing in on a sprint demo... Seems to be working now, fingers crossed.
15
16
16
-
Things has been quite hectic since we are closing in on a sprint
17
-
demo... Seems to be working now, fingers crossed.
17
+
I have done a lot of findings the last days and most of them has to do with [Oracle](http://www.oracle.com/). This has to do with me not having any experience with [Oracle](http://www.oracle.com/).
18
18
19
-
I have done a lot of findings the last days and most of them has to do
20
-
with [Oracle](http://www.oracle.com/). This has to do with me not having
21
-
any experience with [Oracle](http://www.oracle.com/).
19
+
We are using [Enterprise Library 4](http://www.codeplex.com/entlib) to access the Oracle database and it's stored procedures. It internal is using the [ODP.NET client access components](http://www.oracle.com/technology/software/tech/windows/odpnet/index.html).
22
20
23
-
We are using [Enterprise Library 4](http://www.codeplex.com/entlib) to
24
-
access the Oracle database and it's stored procedures. It internal is
One problem we have encountered is that the data types used by Enterprise Library is generic (DBCommand, DBTypes etc) and it is mapped to the Oracle equivalents (OracleCommand, OracleTypes). So I needed a [chart](http://msdn.microsoft.com/en-us/library/yk72thhd(VS.80).aspx) on my table showing me how to map between them.
27
22
28
-
One problem we have encountered is that the data types used by
29
-
Enterprise Library is generic (DBCommand, DBTypes etc) and it is mapped
30
-
to the Oracle equivalents (OracleCommand, OracleTypes). So I needed a
31
-
[chart](http://msdn.microsoft.com/en-us/library/yk72thhd(VS.80).aspx) on
32
-
my table showing me how to map between them.
33
-
34
-
But after a while I found a better way. Enterprise Library is exposing a
35
-
OracleDatabase with the Oracle-flavor of the command types. By using
36
-
that database I can use the same datatypes (NUMBER for example) as
37
-
defined in the database.
23
+
But after a while I found a better way. Enterprise Library is exposing a OracleDatabase with the Oracle-flavor of the command types. By using that database I can use the same data types (NUMBER for example) as defined in the database.
38
24
39
25
To accomplish this I did some very small but useful tricks:
40
26
41
-
- The OracleDatabase doesn't have a factory that takes the
42
-
connectionstring-name as parameter. So I used the standard factory
43
-
to get the connection-string and passed it as a parameter into the
44
-
constructor of the OracleDatabase-class. Like so:
45
-
New OracleDatabase(DatabaseFactory.CreateDatabase(CONNECTIONSTRING_CONFIG_GBP).ConnectionString)
46
-
47
-
- To get a OracleCommand rather than the standard DbCommand I created
48
-
a method that simple cast into the right command:
49
-
Private Function SkapaOracleSPCommand(ByVal spNamn As String) As OracleCommand
- Finally I created two methods that creates OracleParameters, one for
54
-
in (with null-handling) and one for out-parameter (no value or size
55
-
set):
56
-
Private Function CreateOracleOutParameter(ByVal namn As String, ByVal typ As OracleType) As OracleParameter
57
-
Dim parameter As New OracleParameter(namn, typ)
58
-
parameter.Direction = ParameterDirection.Output
59
-
Return parameter
60
-
End Function
61
-
Private Function CreateOracleInParameter(ByVal namn As String, ByVal typ As OracleType, ByVal varde As Object) As OracleParameter
62
-
Dim parameter As New OracleParameter(namn, typ)
63
-
parameter.Direction = ParameterDirection.Input
64
-
parameter.Value = varde
65
-
If varde Is Nothing Then
66
-
parameter.IsNullable = True
67
-
parameter.Value = DBNull.Value
68
-
End If
69
-
Return parameter
70
-
End Function
27
+
- The OracleDatabase doesn't have a factory that takes the connectionstring-name as parameter. So I used the standard factory to get the connection-string and passed it as a parameter into the constructor of the OracleDatabase-class. Like so:
back from a very different weekend indeed. I was given the opportunity
16
-
to take part in a retreat organized by our corps (congregation). That
17
-
meant that we were 15 people going away to far-off place and were silent
18
-
for the main part of the weekend.
14
+
I am back from a very different weekend indeed. I was given the opportunity to take part in a retreat organized by our corps (congregation). That meant that we were 15 people going away to far-off place and were silent for the main part of the weekend.
19
15
20
-
Yes - I understand that the ones who know me have a very hard time to
21
-
see me being silent for such a long time, but it all went very well.
16
+
Yes - I understand that the ones who know me have a very hard time to see me being silent for such a long time, but it all went very well.
22
17
23
-
Also the power and restfulness in being silent was so great. There are
24
-
so many experiences that will stay with me for a long, long time; like
25
-
eating together with 15 people in total silence - very different, or
26
-
walking together with two close friends, without saying anything - it
27
-
made me feel powerful.
18
+
Also the power and restfulness in being silent was so great. There are so many experiences that will stay with me for a long, long time; like eating together with 15 people in total silence - very different, or walking together with two close friends, without saying anything - it made me feel powerful.
28
19
29
-
Finally - when you are left "alone" with such much time on your hands it
30
-
was very interesting to see which needs or feelings that should surface.
31
-
For me, I am glad to say, I discovered that Jesus, the bible and just
32
-
being in the nature was very important.
20
+
Finally - when you are left "alone" with such much time on your hands it was very interesting to see which needs or feelings that should surface. For me, I am glad to say, I discovered that Jesus, the bible and just being in the nature was very important.
33
21
34
-
I said in the beginning that "I was given the opportunity" - which means
35
-
that there must be a _giver..._ For me it's very clear that this is God
36
-
giving me this - I just wanted to say Thank you!
22
+
I said in the beginning that "I was given the opportunity" - which means that there must be a _giver..._ For me it's very clear that this is God giving me this - I just wanted to say Thank you!
We have encountered a problem when renaming and restructuring Visual Studio projects. (There are numerous problems with that but here is one that really cause us to ponder for a while.) We create a standard Class Library project and moved some unit test files into it. Of course we should have create a test project instead but now we didn't - ok...
13
14
14
-
We have encountered a problem when renaming and restructuring Visual
15
-
Studio projects. (There are numerous problems with that but here is one
16
-
that really cause us to ponder for a while.) We create a standard Class
17
-
Library project and moved some unit test files into it. Of course we
18
-
should have create a test project instead but now we didn't - ok...
15
+
The problem was that the unit tests didn't show up in the test view. The solution was to add the following line into the project file (ripped from a working test project)
19
16
20
-
The problem was that the unit tests didn't show up in the test view. The
21
-
solution was to add the following line into the project file (ripped
The GUID's are probably just my guids but the important stuff is that
26
-
you'll need to add the **projecttypeguids** for your project in order to
27
-
make it a test project.
23
+
The GUID's are (probably) just my GUID but the important stuff is that you'll need to add the `projectTypeGUIDs` for your project in order to make it a test project.
28
24
29
-
\[UPDATED\]
30
-
Oh yeah - you'll need to unload the projectfile and edit it manually in
31
-
a texteditor. I wrote this in an hurry and missed that little tidbit of
32
-
information. Sorry.
25
+
**[UPDATED]**
26
+
Oh yeah - you'll need to unload the project file and edit it manually in a text editor. I wrote this in an hurry and missed that little tidbit of information. Sorry.
Tonight a new TV-shop is introduced in Sweden, [Hål i
16
-
Väggen](http://www.tv6.se/halivaggen). It's a total rip-off from a
17
-
really wacky Japanese TV-show.
15
+
Tonight a new TV-shop is introduced in Sweden, [Hål i Väggen](http://www.tv6.se/halivaggen). It's a total rip-off from a really wacky Japanese TV-show.
18
16
19
-
Just to set the record straight - [I discovered it
20
-
first](https://www.marcusoft.net/2007/07/only-in-japan.html)! Here is the
21
-
proof - written Wednesday, July 11, 2007.
17
+
Just to set the record straight - [I discovered it first](https://www.marcusoft.net/2007/07/only-in-japan.html)! Here is the proof - written Wednesday, July 11, 2007.
22
18
23
19
So TV6 - send the money to me. I accept checks. ;)
24
20
25
-
**\[UPDATED\]
26
-
**Hehe - spoke to soon! The program wasn't aired until today, Sunday.
27
-
Sorry about that - I was still first though...
21
+
**[UPDATED]**
22
+
23
+
Hehe - spoke to soon! The program wasn't aired until today, Sunday. Sorry about that - I was still first though...
Yesterday I went to an lecture at [Avega](http://www.avega.se/) by [Gael Fraiteur.](http://gael.fraiteur.net/) who has built the [Aspect Oriented](http://en.wikipedia.org/wiki/Aspect-oriented_programming) framework [PostSharp](http://www.postsharp.org/).
21
18
22
-
This was right up my ally and quite frankly the AOP way of doing things
23
-
is something I have strived for but never knew how.
19
+
This was right up my ally and quite frankly the AOP way of doing things is something I have strived for but never knew how.
24
20
25
21
However the frameworks on the market all comes with an cost or buy-in.
26
-
Either you'll have to use some sort of factory or context
to get "the best of both worlds". This seems reasonable to us since
38
-
we're currently using Enterprise Library for other stuff.
23
+
Either you'll have to use some sort of factory or context ([Spring.NET](http://www.springframework.net/), [Castle](http://www.davidhayden.com/blog/dave/archive/2007/03/14/CastleWindsorAOPPolicyInjectionApplicationBlock.aspx) or [PIAB](http://www.davidhayden.com/blog/dave/archive/2007/12/12/EnterpriseLibrary4ExcitedAboutDependencyInjectionApplicationBlockWithPIAB.aspx)) to create your objects or (as in the PostSharp case) it will hurt your build time.
39
24
40
-
I am longing to get rid of the exception handling, tracing and logging
41
-
code once and for all...
25
+
But Gael also tipped us on a way of combining PostSharp with Enterprise Library ([PostSharp4EntLib](http://www.codeplex.com/entlibcontrib/Wiki/View.aspx?title=PostSharp4EntLib&referringTitle=Home)) to get "the best of both worlds". This seems reasonable to us since we're currently using Enterprise Library for other stuff.
26
+
27
+
I am longing to get rid of the exception handling, tracing and logging code once and for all...
I have just updated the operating system for my IRiver to the latest (3.0) version of [RockBox](http://www.rockbox.org/).
15
15
16
-
One big gottcha jumped up and bit me; you have to manually change a setting that enables RockBox to charge via USB... [Here is how its done](http://download.rockbox.org/manual/rockbox-h300/rockbox-buildch7.html#x10-1180007.6.2).
16
+
One big gotcha jumped up and bit me; you have to manually change a setting that enables RockBox to charge via USB... [Here is how its done](http://download.rockbox.org/manual/rockbox-h300/rockbox-buildch7.html#x10-1180007.6.2).
17
17
18
18
Really annoying for me since a H320 IRiver only charges through the USB-port... Well now it's fixed.
0 commit comments