Re: [OT - Java]

2010-03-10 Thread DotNet Dude
Been there dude, no one wanted to even see me when I was the only C
and VB6 programmer at my previous job :(

On Thu, Mar 11, 2010 at 4:42 PM, Joseph Clark  wrote:
> We're hiring in Sydney! http://www.atlassian.com/32/
>
> Atlassian's a big Java shop.  I think I am one of about 2 or 3 .NET
> developers in the entire engineering division :)
>
> I wish they'd hire more .NET people it gets so lonely
>
> Tom Rutter wrote:
>>
>> G'day,
>> I know some of the people on this list used to hang in the Java world. Can
>> they please send the names of some places they know in Melbourne, Sydney or
>> Canberra that do Java and may be hiring? A mate who has recently come down
>> from overseas is looking.
>> Cheers
>> Tom
>
> --
>
> Register now for Atlassian Summit 2010, June 9-11
> http://summit.atlassian.com
>
> Joseph Clark
> .NET Developer
>
> Atlassian
> +61 422 812 044 mobile
> 173-185 Sussex St.
> Sydney, NSW
> Australia
>
>


RE: WPF feasibility check

2010-03-10 Thread Jake Ginnivan
Just make sure you add 

If (System.Windows.Application.Current == null)
{
New System.Windows.Application{ShutdownMode = ShutdownMode.Explicit};
}

Without a current application singleton then WPF windows will not work. Also, 
if you do not specify shutdown mode then your app will crash the next time a 
WPF window is opened. :)

Regards,
Jake Ginnivan
Readify | Developer
M: +61 403 846 400 | C: jake.ginni...@readify.net

-Original Message-
From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of Greg Keogh
Sent: Thursday, 11 March 2010 12:28 PM
To: 'ozDotNet'
Subject: WPF feasibility check

I posted the message below into the WPF forum this morning, but it's quiet as 
the grave in there. I'm reposting here in case anyone's awake -- Greg

---

Folks (anyone here?), I just want to run an idea past you to make sure it's 
feasible before I start any coding.

We have a large VB6 app that tracks manufacturing jobs of various types, now 
including glass cutting. The app needs to show a picture preview of a glass 
sheet with artistically cut corners of different shapes. Doing this in VB6 
would require tedious and delicate drawing. I suggested that we write a COM 
visible .NET library that would use WPF to draw the picture and pop it up in a 
Form.

I'm sure the COM interop will work and the form will open, as I've seen this 
done before. I'm also sure I can draw the glass sheet beautifully in WPF and it 
could be zoomed and panned (a 3D rotating version would be even more 
eye-popping, but we'll stick to 2D for now). I would have to convert the actual 
edge designs into path geometries, which might require graph paper and pencil 
and a UI tool to compose the required effect, but you would only do that once 
for each corner type and stash it in a library for reuse.

I'm keen to feedback before I make a proof of concept.

Cheers,
Greg




Re: [OT - Java]

2010-03-10 Thread Jonathan Parker
http://www.thoughtworks.com.au/work-for-us/jobs/Developers-Sydney,-Melbourne-and-Brisbane.html

On Thu, Mar 11, 2010 at 4:46 PM, Tom Rutter  wrote:

> Cool thanks. Any others, people?
>
>
> On Thu, Mar 11, 2010 at 4:42 PM, Joseph Clark wrote:
>
>> We're hiring in Sydney! http://www.atlassian.com/32/
>>
>> Atlassian's a big Java shop.  I think I am one of about 2 or 3 .NET
>> developers in the entire engineering division :)
>>
>> I wish they'd hire more .NET people it gets so lonely
>>
>>
>> Tom Rutter wrote:
>>
>>> G'day,
>>> I know some of the people on this list used to hang in the Java world.
>>> Can they please send the names of some places they know in Melbourne, Sydney
>>> or Canberra that do Java and may be hiring? A mate who has recently come
>>> down from overseas is looking.
>>> Cheers
>>> Tom
>>>
>> --
>>
>> Register now for Atlassian Summit 2010, June 9-11
>> http://summit.atlassian.com
>>
>> Joseph Clark
>> .NET Developer
>>
>> Atlassian
>> +61 422 812 044 mobile
>> 173-185 Sussex St.
>> Sydney, NSW
>> Australia
>>
>>
>


Re: [OT - Java]

2010-03-10 Thread Tom Rutter
Cool thanks. Any others, people?

On Thu, Mar 11, 2010 at 4:42 PM, Joseph Clark  wrote:

> We're hiring in Sydney! http://www.atlassian.com/32/
>
> Atlassian's a big Java shop.  I think I am one of about 2 or 3 .NET
> developers in the entire engineering division :)
>
> I wish they'd hire more .NET people it gets so lonely
>
>
> Tom Rutter wrote:
>
>> G'day,
>> I know some of the people on this list used to hang in the Java world. Can
>> they please send the names of some places they know in Melbourne, Sydney or
>> Canberra that do Java and may be hiring? A mate who has recently come down
>> from overseas is looking.
>> Cheers
>> Tom
>>
> --
>
> Register now for Atlassian Summit 2010, June 9-11
> http://summit.atlassian.com
>
> Joseph Clark
> .NET Developer
>
> Atlassian
> +61 422 812 044 mobile
> 173-185 Sussex St.
> Sydney, NSW
> Australia
>
>


Re: [OT - Java]

2010-03-10 Thread Joseph Clark

We're hiring in Sydney! http://www.atlassian.com/32/

Atlassian's a big Java shop.  I think I am one of about 2 or 3 .NET 
developers in the entire engineering division :)


I wish they'd hire more .NET people it gets so lonely

Tom Rutter wrote:

G'day,
I know some of the people on this list used to hang in the Java world. 
Can they please send the names of some places they know in Melbourne, 
Sydney or Canberra that do Java and may be hiring? A mate who has 
recently come down from overseas is looking.

Cheers
Tom

--

Register now for Atlassian Summit 2010, June 9-11 http://summit.atlassian.com

Joseph Clark
.NET Developer

Atlassian
+61 422 812 044 mobile
173-185 Sussex St.
Sydney, NSW
Australia



Re: [OT - Java]

2010-03-10 Thread Tom Rutter
there's always one in the room (or the list in this case)

On Thu, Mar 11, 2010 at 4:34 PM, David Kean wrote:

>  Hmm...does Melbourne have a starbucks these days?
>  --
> *From:* ozdotnet-boun...@ozdotnet.com [ozdotnet-boun...@ozdotnet.com] on
> behalf of Tom Rutter [therut...@gmail.com]
> *Sent:* Wednesday, March 10, 2010 9:26 PM
> *To:* ozdotnet@ozdotnet.com
> *Subject:* [OT - Java]
>
>  G'day,
> I know some of the people on this list used to hang in the Java world. Can
> they please send the names of some places they know in Melbourne, Sydney or
> Canberra that do Java and may be hiring? A mate who has recently come down
> from overseas is looking.
> Cheers
> Tom
>


Re: Calling a class library C# method from ms access

2010-03-10 Thread mike smith
On 11 March 2010 14:39, Ian Thomas  wrote:

>  Apart from the sign-ons, password storage, MD5 etc, you’re now more au
> fait with COM – COM is not dead! Nor is MS Access …
>
>
>
COM isn't so bad.  DCOM is a pile of steaming excrement, COM connection
points aren't very nice at all.


-- 
Meski

"Going to Starbucks for coffee is like going to prison for sex. Sure, you'll
get it, but it's going to be rough" - Adam Hills


RE: [OT - Java]

2010-03-10 Thread David Kean
Hmm...does Melbourne have a starbucks these days?

From: ozdotnet-boun...@ozdotnet.com [ozdotnet-boun...@ozdotnet.com] on behalf 
of Tom Rutter [therut...@gmail.com]
Sent: Wednesday, March 10, 2010 9:26 PM
To: ozdotnet@ozdotnet.com
Subject: [OT - Java]

G'day,
I know some of the people on this list used to hang in the Java world. Can they 
please send the names of some places they know in Melbourne, Sydney or Canberra 
that do Java and may be hiring? A mate who has recently come down from overseas 
is looking.
Cheers
Tom


[OT - Java]

2010-03-10 Thread Tom Rutter
G'day,
I know some of the people on this list used to hang in the Java world. Can
they please send the names of some places they know in Melbourne, Sydney or
Canberra that do Java and may be hiring? A mate who has recently come down
from overseas is looking.
Cheers
Tom


WPF feasibility check

2010-03-10 Thread Greg Keogh
I posted the message below into the WPF forum this morning, but it's quiet
as the grave in there. I'm reposting here in case anyone's awake -- Greg

---

Folks (anyone here?), I just want to run an idea past you to make sure it's
feasible before I start any coding.

We have a large VB6 app that tracks manufacturing jobs of various types, now
including glass cutting. The app needs to show a picture preview of a glass
sheet with artistically cut corners of different shapes. Doing this in VB6
would require tedious and delicate drawing. I suggested that we write a COM
visible .NET library that would use WPF to draw the picture and pop it up in
a Form.

I'm sure the COM interop will work and the form will open, as I've seen this
done before. I'm also sure I can draw the glass sheet beautifully in WPF and
it could be zoomed and panned (a 3D rotating version would be even more
eye-popping, but we'll stick to 2D for now). I would have to convert the
actual edge designs into path geometries, which might require graph paper
and pencil and a UI tool to compose the required effect, but you would only
do that once for each corner type and stash it in a library for reuse.

I'm keen to feedback before I make a proof of concept.

Cheers,
Greg



RE: [OT] Australian ALM Conference in April?

2010-03-10 Thread Michael O'Dea-Jones
Hi Shaun,

The reason I am so interested in the Australian ALM conference is the 
opportunity to see Sam Guckenheimer and Ivar Jacobson who are two luminaries of 
the industry present at the keynote.  I am especially keen to hear what Sam 
Guckenheimer has to say about the future of the Microsoft development products.

I think the real value for this event is that the event is focused on 
Application Lifecycle Management and it will provide me with the opportunity to 
see how Visual Studio 2010 will help with marrying business management to 
development.  I think that ALM is going to become increasingly important as a 
developer and I want to get ahead of the curve.

But the real reason I have registered is to try and win the motorised esky they 
are giving away :)

Michael O'Dea-Jones

From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On 
Behalf Of Baggett, Shaun
Sent: Thursday, 11 March 2010 8:27 AM
To: ozdotnet@ozdotnet.com
Subject: [OT] Australian ALM Conference in April?

Hi Listers

I am thinking about attending the ALM conference in Sydney this coming April 
(http://www.australianalm.com.au/) and am wondering about its value. 
Considering this event is essentially the official launch of Visual Studio 2010 
and TFS 2010 it's also very relevant to my work as we tend to get the latest 
and greatest as soon as we can. So there's probably some good benefits there.

Just wondering what others think of the event and whether you might be going?



---
This email, and any attachments, may be confidential and also privileged. If 
you are not the intended recipient, please notify the sender and delete all 
copies of this transmission along with any attachments immediately. You should 
not copy or use it for any purpose, nor disclose its contents to any other 
person.
---


RE: Calling a class library C# method from ms access

2010-03-10 Thread Ian Thomas
Apart from the sign-ons, password storage, MD5 etc, you're now more au fait
with COM - COM is not dead! Nor is MS Access .

 

  _  

Ian Thomas
Victoria Park, Western Australia



Re: Calling a class library C# method from ms access

2010-03-10 Thread mike smith
On 8 March 2010 21:35, Peter Maddin  wrote:

>  Hi Ian
> Thanks for the Code Project link. It looks really great.
>
> I searched CodeProject and did not find this page.
>
> I am fairly certain I have MS Access using my C# COM aware dll.
> I have tested it and it works great.
>
> To morrow I will pass it over to the the person who supports Access at our
> site.
>
> Personally I can't stand Access but they needed a function they could call
> from VBA  to protect passwords that  they
> store in a database table. I though a hash would be easier than a symmetric
> cipher. I tend to shy away using reversible symmetric ciphers within
> insecure code. It is just too easy to bypass most of the security features
> in Access.
>
> Its really just a one off to try and make their access front end
> applications a bit more secure.
>
>
Wasn't MD5 vulnerable to collision attacks?



> Regards Peter.
>
> On 8/03/2010 3:33 PM, Ian Thomas wrote:
>
>  Peter
>
> Did you try the sample code, with Excel? The GUID in the C# or Vb.NET will
> be different for Excel, Access.
>
>
>
> Have a read of this article (CodeProject) for an overview -
> http://www.codeproject.com/KB/COM/cominterop.aspx
>
>
>
>
>  --
>
> Ian Thomas
> Victoria Park, Western Australia
>   --
>
> *From:* ozdotnet-boun...@ozdotnet.com [
> mailto:ozdotnet-boun...@ozdotnet.com ] *On
> Behalf Of *Maddin, Peter
> *Sent:* Monday, 8 March 2010 2:34 PM
> *To:* ozDotNet
> *Subject:* RE: Calling a class library C# method from ms access
>
>
>
> Thanks Ian
>
>
>
> I ma having trouble translating this from Vb.NET to C#.
>
>
>
> I built the class library and then used reflector to see the c# code.
>
> Tried cutting and pasting but the VS Editor did not like it.
>
>
>
> Googling other material, locates code that only vaguely resembles that in
> your link below.
>
>
>
> I am venturing into unchartered territory never having had much to with Com
> before (and being told it was dead)
>
>
>
> The latest one has no GUIDs at all
> http://www.codeproject.com/KB/office/ParallelMsAccess.aspx
>
>
>
> My project is tiny
>
>
>
> using System;
>
> using System.Runtime.InteropServices;
>
> using System.Security.Cryptography;
>
> using System.Text;
>
>
>
> namespace PathWest
>
> {
>
> [ComVisible(true)]
>
> public interface HashInterface
>
> {
>
> string Md5Hash(string passwordValue);
>
> }
>
>
>
> [ComVisible(true)]
>
> [ClassInterface(ClassInterfaceType.None)]
>
> public class GetHash : HashInterface
>
> {
>
> public string Md5Hash(string passwordValue)
>
> {
>
> byte[] hashValue = new MD5CryptoServiceProvider().ComputeHash(
> Encoding.ASCII.GetBytes(passwordValue));
>
> return Encoding.ASCII.GetString(hashValue);
>
> }
>
> }
>
> }
>
>
>
> I do see one in the Assembly.cs file though
>
>
>
> // Setting ComVisible to false makes the types in this assembly not visible
>
>
> // to COM components.  If you need to access a type in this assembly from
>
> // COM, set the ComVisible attribute to true on that type.
>
> [assembly: ComVisible(true)]
>
>
>
> // The following GUID is for the ID of the typelib if this project is
> exposed to COM
>
> [assembly: Guid("b92f832a-3887-412b-a126-e58f35041f2d")]
>
>
>
>
>
>
>
> *Regards Peter Maddin*
> *Applications Development Officer*
> *Path**West Laboratory Medicine WA*
> *Phone : +618 9473 3944*
> *Fax : +618 9473 3982*
> *E-Mail : peter.mad...@pathwest.wa.gov.au*
> *The contents of this e-mail transmission outside of the WAGHS network are
> intended solely for the named recipient's), may be confidential, and may be
> privileged or otherwise protected from disclosure in the public interest.
> The use, reproduction, disclosure or distribution of the contents of this
> e-mail transmission by any person other than the named recipient(s) is
> prohibited. If you are not a named recipient please notify the sender
> immediately.*
>
>
>
> *From:* ozdotnet-boun...@ozdotnet.com [
> mailto:ozdotnet-boun...@ozdotnet.com ] *On
> Behalf Of *Ian Thomas
> *Sent:* Monday, 8 March 2010 11:13 AM
> *To:* 'ozDotNet'
> *Subject:* RE: Calling a class library C# method from ms access
>
>
>
> http://support.microsoft.com/kb/317535
>
>
>  --
>
> Ian Thomas
> Victoria Park, Western Australia
>   --
>
> *From:* ozdotnet-boun...@ozdotnet.com [
> mailto:ozdotnet-boun...@ozdotnet.com ] *On
> Behalf Of *Maddin, Peter
> *Sent:* Monday, 8 March 2010 10:49 AM
> *To:* ozdotnet@ozdotnet.com
> *Subject:* Calling a class library C# method from ms access
>
>
>
> I need to call a C# method from MS Access 2003.
>
> I need to pass in a string and return a string.
>
>
>
> I have spent some trying to do this in Delphi but am now sure I need to use
> COM so I might as well use C#.
>
>
>
> I have wasted a couple of days almost getting it working only to find that
> it was too flaky with Access crashing.

[OT] Australian ALM Conference in April?

2010-03-10 Thread Baggett, Shaun
Hi Listers

 

I am thinking about attending the ALM conference in Sydney this coming
April (http://www.australianalm.com.au/) and am wondering about its
value. Considering this event is essentially the official launch of
Visual Studio 2010 and TFS 2010 it's also very relevant to my work as we
tend to get the latest and greatest as soon as we can. So there's
probably some good benefits there.

 

Just wondering what others think of the event and whether you might be
going? 
  
---
This email, and any attachments, may be confidential and also privileged. If 
you are not the intended recipient, please notify the sender and delete all 
copies of this transmission along with any attachments immediately. You should 
not copy or use it for any purpose, nor disclose its contents to any other 
person.
---


Re: Calling a class library C# method from ms access

2010-03-10 Thread Peter Maddin

I followed up one of the VB links only to find it was code to call a C dll.
http://www.freevbcode.com/ShowCode.Asp?ID=741
Similar approach to what I have done in C#

Regards Peter

On 9/03/2010 10:47 PM, Richard Carde wrote:


On 8 Mar 2010, at 22:42, Peter Maddin > wrote:



Thanks for the update


If there are any problems I can point those who like working with VBA 
or VBScript to such an implementation. Do you have any links to such 
VBA /VBScript code?


Maybe start here?
http://userpages.umbc.edu/~mabzug1/cs/md5/md5.html 



Of course this requires that all passwords are different and are of 
reasonable complexity.  For half the table to be filled with easily 
guessed passwords like 'password' will defeat any security measure. 
It also means that a user who forgets their password must be allowed 
to create a new one (or have one generated for them) as the old one 
cannot (in theory) be derived from the hash.


Passwords should be one way.  Unless it is data that needs to be 
presented back to the user.  I recently reviewed a system that used a 
text representation of a user's SID as the 256 bit key to protect data 
that did need to be decrypted.  Sounds good in theory, except that the 
first 32 chars (256 bits) of said string are identical for a given 
domain. DOH!


One can easily Google for common raw MD5 hashes.

If you simply add the length of the typed password to the string to be 
hashed, you at least remove the rainbow attack - which is as good as 
'unhashing'.  I'd look to using the username or primary key of the 
user to further differentiate - this will ensure no two hashes of the 
same password match.

HTH.



Regards Peter



On 9/03/2010 5:44 AM, Richard Carde wrote:
If all you need is something to generate an MD5 hash and nothing 
more, you could use an MD5 implementation directly - afterall, MD5 
is MD5.  There are a number of VBScript/VBA implementations to 
select from.


--
Richard Carde


Re: Calling a class library C# method from ms access

2010-03-10 Thread Peter Maddin

Thanks for the link.

I had found this previously but while it contained some links to VB I 
needed VBA so the one for VBScript was probably the closest but that 
link was broken.



> add the length of the typed password


Thanks. That sounds like a very good suggestion. I will pass this on.

Regards Peter

On 9/03/2010 10:47 PM, Richard Carde wrote:


 On 8 Mar 2010, at 22:42, Peter Maddin mailto:petermad...@aapt.net.au>> wrote:

> Thanks for the update

> If there are any problems I can point those who like working with
> VBA or VBScript to such an implementation. Do you have any links to
> such VBA /VBScript code?

 Maybe start here? http://userpages.umbc.edu/~mabzug1/cs/md5/md5.html

> Of course this requires that all passwords are different and are of
> reasonable complexity.  For half the table to be filled with easily
> guessed passwords like 'password' will defeat any security measure.
> It also means that a user who forgets their password must be
> allowed to create a new one (or have one generated for them) as the
> old one cannot (in theory) be derived from the hash.

 Passwords should be one way.  Unless it is data that needs to be
 presented back to the user.  I recently reviewed a system that used a
 text representation of a user's SID as the 256 bit key to protect
 data that did need to be decrypted.  Sounds good in theory, except
 that the first 32 chars (256 bits) of said string are identical for a
 given domain. DOH!

 One can easily Google for common raw MD5 hashes.

 If you simply add the length of the typed password to the string to
 be hashed, you at least remove the rainbow attack - which is as good
 as 'unhashing'.  I'd look to using the username or primary key of the
 user to further differentiate - this will ensure no two hashes of the
 same password match.

 HTH.

>
> Regards Peter
>
>
>
> On 9/03/2010 5:44 AM, Richard Carde wrote:
>> If all you need is something to generate an MD5 hash and nothing
>> more, you could use an MD5 implementation directly - afterall,
>> MD5 is MD5.  There are a number of VBScript/VBA implementations
>> to select from.

 -- Richard Cardeegrd