Re: Users who compulsively highlight or click text as they read it -are you out there?

2012-04-16 Thread Jano Petras
Yeah, this is exactly what I am doing - I highlight a word or a whole line / sentence to mark the point up to which I have read the text before scrolling, because scrolling sometimes makes me lose the last sentence and then I have to do some "repetitive reading" which I hate lots ;) On 17 April 2

Re: sql connection taking ages when using IP Address vs Computer Name

2012-06-07 Thread Jano Petras
Hi, I've seens some weirdness of this kind before, and it was related to IPv4 vs IPv6 protocol. The host name may resolve to IPv6 address which works fine, but IPv4 may take longer due to some routing / connectivity issue with SQL Server instance. Is it listening on both IPv4 and IPv6 endpoints ?

Re: no more Macros for VS2012!

2012-06-29 Thread Jano Petras
Well, I do have one usage of macros - to strip off trailing whitespace from all lines in a code file. I have mapped it to Ctrl-W and using it all the time. Is there a built-in command that can do this now? If not, I will be affected, and will need to do something about it. Are any of you guys usi

Re: no more Macros for VS2012!

2012-06-29 Thread Jano Petras
to the last character on the line? (in VS, not vi > please) :) > > Wal > > > On 29/06/2012 5:55 PM, Jano Petras wrote: > > Well, I do have one usage of macros - to strip off trailing whitespace > from all lines in a code file. I have mapped it to Ctrl-W and using it a

Re: no more Macros for VS2012!

2012-06-29 Thread Jano Petras
gs you have set under Tools >> > Options >Text Editor. >> >> ** ** >> >> Cheers, >> >> Mark. >> >> ** ** >> >> *From:* ozdotnet-boun...@ozdotnet.com [mailto: >> ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Jano

SQL Server feature or a bug?

2012-08-18 Thread Jano Petras
Hi folks, I have encountered a weird behaviour of SQL Server 2008 R2 yesterday, so wanted to share this experience with the list. If a #temp table is used in a SQL select statement within a stored procedure, SQL server does not validate the fields at all. An example: create procedure test_dummy

Re: SQL Server feature or a bug?

2012-08-19 Thread Jano Petras
gt; > SQL Down Under | Web: www.sqldownunder.com > > ** ** > > *From:* ozdotnet-boun...@ozdotnet.com [mailto: > ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Jano Petras > *Sent:* Sunday, 19 August 2012 12:48 AM > *To:* ozdotnet@ozdotnet.com > *Subject:* SQL Server featu

Debugger canvas for Visual Studio 2010

2013-01-14 Thread Jano Petras
Hi folks, Anyone using Debugger canvas for VS? And if so, can you please share some observations / experiences / advices ? Code bubbles original concept: http://www.youtube.com/watch?v=PsPX0nElJ0k Debugger canvas for Visual Studio: http://msdn.microsoft.com/en-us/devlabs/debuggercanvas.asp

Re: JS to WinService

2013-08-26 Thread Jano Petras
Hi Niaz, Browser's XmlHttp request has a restriction that it can only invoke URLs that are on the same domain as the current URL. As as long as you serve the page from (for example): http://my.domain.com.au/my-page.aspx and then from JS make an Ajax request to anything that is on the

Re: COM class not found as admin

2014-01-02 Thread Jano Petras
Sounds like "enable 32bit apps" in application pool settings. Vs seems to be executing as 64bit process and does not use "wow" key which i believe has something to do with running 32 bit apps under 64bit os. On Friday, 3 January 2014, Greg Keogh wrote: > Mark, you'll see in my other post that I f

Re: Mixing platforms

2014-01-14 Thread Jano Petras
Hi Greg, You have 32bit runtime installed on that box? J. On Wednesday, 15 January 2014, Greg Keogh wrote: > Folks, I'm coding in a 64-bit Windows. I thought a project compiled with Platform Any CPU could load and use classes in another library compiled as Platform x86. But I'm wrong, and surp

Mixing platforms

2014-01-15 Thread Jano Petras
If there are no specific reasons to use 64bit process - why not target 32bit version of .net? That way no issue with 32bit dll, you can freely use it. On Wednesday, 15 January 2014, Greg Keogh wrote: >> You have 32bit runtime installed on that box? > > I guess so, I have seen the pairs of folders

Re: [OT] 43°C here

2014-01-16 Thread Jano Petras
:) It is a stinker today. Today's adventure: step out of the office and get hit by 50+ rising from the asphalt and concrete :D On 17 January 2014 15:59, Michael Ridland wrote: > > Yeh until I leave work I'm not aware of the day outside. > > > > On Friday, January 17, 2014, Corneliu I. Tusnea >

Re: Visual Studio 2013 forgets open files

2014-01-26 Thread Jano Petras
Well investigated Greg. As there are Microsoft people on this list, lets hope that this bug will find its way to the right destination. On Monday, 27 January 2014, Greg Keogh wrote: > Folks, over a year ago I reported this problem with VS2012 where it forgot while files were open when I reopened

Re: Buffer to XML problem

2014-01-30 Thread Jano Petras
I reckon the BOM neefs to be stripped off becase parse sees it as unicode characters. When dealing with files .net understands BOM and removes it from returned data but it does not expect to see it in string/memory buffer. There are examples on net how to remove it from inmemory buffer so xml parse

Re: [OT] Thurday afternoon rant

2014-04-10 Thread Jano Petras
Sometimes I feel that good old .ini files with an API to read/write is much more readable and parseable than the XML, at least for configuration. I can appreciate the hierarchical nature of XML, but for configuration it is quite frequently an overkill. On 10 April 2014 17:26, Stephen Price wrote

Re: GUIDs

2014-05-02 Thread Jano Petras
Hi Anthony, Guids are easiest way forward - due to their uniqueness and native support by the DB engine. The only time I would consider using something else would be if there was a requirement for those unique row IDs to be 64bit integers for example or if there is a storage space concern - in th

Re: Microsoft Reference Source

2014-05-08 Thread Jano Petras
Yeah, I've been looking through that few times. Last time had to provide an answer as to which randomisation method (out of standardised ones ANSI/IEEE etc) we use - and because we use Random class from the framework I went to check on it - and found a comment in there that says //This algorithm c

Re: [OT] Browser use

2014-05-22 Thread Jano Petras
I stopped using IE for general browsing during days of IE6 - now use it only for development/site testing version 8-11 I never used Chrome regularly and not planning to, using it for development/testing only. I am exclusive and happy Firefox user since 2005 :) On 22 May 2014 16:53, GregAtGregLowD

Re: Programatically paying BPAY invoices

2014-06-10 Thread Jano Petras
Hi Greg, Unfortunately, BPay is (or used to be 3 years ago) a batch processing thing where bank provides a file to download one or twice daily and that's how someone accepting payments does reconciliation. As far as the other side of the coin goes (making payments instead of receiving them) - htt

Re: MVC controllers

2014-07-13 Thread Jano Petras
With MVC controllers and two methods sharing the same name - they have to differ by HTTP verb (get / post). If the action method is not decorated by [HttpGet] or [HttpPost] it is considered both. Are these two being decorated by different verb ? On 14 July 2014 16:15, Stephen Price wrote: > H

Re: MVC controllers

2014-07-13 Thread Jano Petras
> specify by name as well as Action type. > > > On Mon, Jul 14, 2014 at 2:23 PM, Jano Petras > wrote: > >> With MVC controllers and two methods sharing the same name - they have to >> differ by HTTP verb (get / post). If the action method is not decorated by >

Re: .NET/CLR on FreeBSD status update.

2015-04-27 Thread Jano Petras
Will this implementation replace/deprecate mono? On Tuesday, 28 April 2015, Preet Sangha wrote: > Thank you. This looks interesting. > > regards, > Preet, in Auckland NZ > > On 28 April 2015 at 09:10, Geoffrey Huntley wrote: >> >> By now you have probably saw the news that the CLR is building su

Re: MVC Redirect and Async Operations

2015-07-30 Thread Jano Petras
I would go with ThreadPool.QueueUserWorkItem before returning redirect response On 30 July 2015 at 20:06, Greg Low (罗格雷格博士) wrote: > One for the MVC brains trust if I can: > > > > I want to add some basic link redirection and logging to a test MVC site. > So, for example, if I have a calls like:

Re: [OT] JavaScript and the DOM

2015-09-20 Thread Jano Petras
Hi Greg, When a Web Crawler retrieves the page, it is mostly relying on response from web server - parses html returned, and extracts stuff out. It is very rare that these tools will actually try to run javascript or any dynamic content that may be present in the returned html to be able to see th

Re: Passing parameters to a report based on a stored procedure

2010-03-01 Thread Jano Petras
Hi Kirsten, Is this report server or just local report viewer with rdlc file scenario? In any case have a look through: - http://www.bigresource.com/Tracker/Track-ms_sql-Rwvb1jbY/ - http://www.bigresource.com/MS_SQL-Passing-new-parameters-to-Report-rdlc--tybEpYaA.html Hope that help

Re: Versioning

2010-05-03 Thread Jano Petras
1 Create a DLL containing the core code that is the same for both and code up different functionality in 2 VS solutions 2 Use dependency injection controller such as Castle Windsor or MS Unity and DI pattern with coding which will enable you to have a single VS solution but multiple configurations

Re: Source control of DB scripts

2010-05-31 Thread Jano Petras
Greg, An approach that worked well in the past for me was: * No permission to execute DDL statements on staging / dev databases given to the developers. They still have full access to their local copies. * All database updates (tables, SPs, population scripts etc) are to be checked into source

Re: Source control of DB scripts

2010-05-31 Thread Jano Petras
> > *From:* ozdotnet-boun...@ozdotnet.com [mailto: > ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Jano Petras > *Sent:* Tuesday, 1 June 2010 8:15 AM > *To:* ozDotNet > *Subject:* Re: Source control of DB scripts > > > > Greg, > > An approach that worked well

Re: OT - Magic Mushroom song from the 1980s

2010-06-07 Thread Jano Petras
A quick google gives http://vetusware.com/download/Magic%20Mushroom%20demo/?id=4907 I would be very cautious about downloading it on a PC that you actually need :) j. On 8 June 2010 08:41, Tony Geros wrote: > lol - I remember. I seem to also remember that it turned into a virus. > > Tony > >

Re: OT - Magic Mushroom song from the 1980s

2010-06-09 Thread Jano Petras
Well I can only say I envy you guys - I never had anything like that on my C64 casette drive ;) -- jano

Re: usercontrol caching

2010-09-07 Thread Jano Petras
Hi Anthony, Yes, that is the "proper" way - if the user control is available in cache it will not be instantiated, so you should check for null / nothing. See http://authors.aspalliance.com/aspxtreme/webapps/cachingportionsofaspnetpage.aspx Cheers, jano On 7 September 2010 14:57, Anthony wrote

Re: strange ASP.net error

2010-10-29 Thread Jano Petras
Hi Greg, Check out this: http://support.microsoft.com/kb/934839 -- jano On 27 October 2010 03:46, Greg Kennedy wrote: > Hi all, > Has anyone ever seen an error like this before? > > Inner Exception : System.IO.FileNotFoundException: Could not load file or > assembly 'App_global.asax.asfonage,

Re: OPen File not working...

2010-11-15 Thread Jano Petras
Hi Anthony, It seems related to encoding mark (see http://en.wikipedia.org/wiki/Byte_order_mark). Just throwing few ideas into the air here as haven't really tried this myself - but maybe you could try using StreamReader constructor overload that accepts encoding so you could pass Encoding.Unicod

Re: The breakpoint will not currently be hit..nightmare!

2010-12-07 Thread Jano Petras
It does sound like issue with framework versions - maybe the project file says framework version 2.0 but IIS runs it under 3.5 or something. If nothing helps, recreate project from scratch using VS2010 and then manually copy/include all files.

Re: UDP Broadcasting

2010-12-13 Thread Jano Petras
Hi Greg, *IPAddress.Broadcast* is equivalent to 255.255.255.255 - which is equivalent to 'this network'. So the machine is not selecting 'this' network to your liking I guess. >From Wikipedia: *The broadcast address for an IPv4 host can be obtained by performing a bitwise

Re: [OT] Remote worker

2011-02-14 Thread Jano Petras
Hi Dave, Try http://www.shrew.net/download/vpn This is compatible with Cisco VPN and I am using it currently on my Windows 7 64bit to connect to Cisco VPNs. Cheers, jano On 14 February 2011 14:44, David Walker wrote: > > Hi all, > > I have recently decided to take the plunge and move oversea

Re: Re: g+ anyone?

2011-07-16 Thread jano . petras
Sent. On , Mark Jarzebowski wrote: If anyone has a g+ invite, Id appreciate it. Regards . Mark Jarzebowski Director Software Engineering Business Model Systems (Victoria) Pty Ltd Kew Victoria www.bms.com.au On Wed, Jul 13, 2011 at 12:05 PM, Stephen Price step...@littlevoices.com> wr

Re: Client /Server alternative for TCP

2011-11-21 Thread Jano Petras
Well, hosting you application under IIS would get rid of worries regarding listeners and connections, if your system needs to follow regular REST request/response pattern (that is, you don't need to keep the connection open). WCF is an option here as it supports REST, or - just plain ASP.NET or M

Re: Learning LINQ novice question

2011-12-05 Thread Jano Petras
Parenthesis are used if there is more than one parameter for lambda function. Not required for single-parameter lambdas. On 5 December 2011 13:17, Peter Maddin wrote: > Am learning linq. > > ** ** > > I noticed from the examples I using to learn, that I have this > > ** ** > > var prod

Re: Learning LINQ novice question

2011-12-05 Thread Jano Petras
*** > > **** > > ** ** > > *From:* ozdotnet-boun...@ozdotnet.com [mailto: > ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Jano Petras > *Sent:* Monday, 5 December 2011 8:19 PM > *To:* ozDotNet > *Subject:* Re: Learning LINQ novice question > > ** ** > &

Re: asmx web service

2011-12-12 Thread Jano Petras
w3wp.exe is not available unless application pool is up (1 app pool = 1 w3wp in IIS7). If you are running it under IIS, and cannot find process to attach to, execute the first web method that works fine. This will load application pool and from that point on (until the next build) you will see thi

Re: How to feed xmldocument as in-memory string into browser (IE9)?

2012-01-10 Thread Jano Petras
Hi Ian, Unless the external app (in this case, browser) has some kind of command line switch that would make it read stdin for example for its input (analogue to pipe operator in command line - such as dir /s | find "myspecialfile.txt"), you will need to create intermediate file. Alternative of c

Re: [OT] t-sql, dealing with null

2012-01-18 Thread Jano Petras
Hi Wallace, I am always using ISNULL function for these cases when I am to compare. Another possibility is to check for NULL explicitly: IF @var IS NULL BEGIN -- do stuff END ELSE BEGIN -- do other stuff END Cheers, jano On 18 January 2012 08:20, Wallace Turner wrote: > Consider: > > de

Re: Dispose and Finalizer in 4.0

2012-02-03 Thread Jano Petras
Hi David, Looking here: http://msdn.microsoft.com/en-us/library/b1yfkh5e%28v=vs.100%29.aspx Finalize is called by GC when there are no references to the instance. Dispose is explicit way to clean up those resources before GC kicks in. If dispose was invoked, there is no reason for Finalize to d

Re: Get target path for shortcuts

2012-03-04 Thread Jano Petras
Hi Ian, Have a look at http://stackoverflow.com/questions/2565885/net-read-binary-contents-of-lnk-file Before method below would work, you need to import c:\windows\system32\shell32.dll (add proj. reference which will generate interop library). public static string GetLnkTarget(string lnkPath) {