RE: hash question

2006-04-11 Thread Oleg Gunkin
It could be one of the following algorithms:
- RIPEMD-160
- SHA-0
- SHA-1
- Tiger-160



--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: jonese [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 11, 2006 13:44
To: CF-Talk
Subject: hash question


I'm trying to reverse engineer a hash and i'm not sure what could
product something like this:

931c6ff8d9e365bfb412

the value returned by this system is always 20 chars in length and
only consists of letters and numbers.

no i have no idea what it is but i'm trying to reverse engineer it to
see if i can recreate it.

Anyone know what could create a 20 char hash? if it helps at all this
is coming from an Oracle 10G server.

jonese



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237478
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: hash question

2006-04-11 Thread Oleg Gunkin
Did you forget your password, which was hashed?

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: jonese [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 11, 2006 13:44
To: CF-Talk
Subject: hash question


I'm trying to reverse engineer a hash and i'm not sure what could
product something like this:

931c6ff8d9e365bfb412

the value returned by this system is always 20 chars in length and
only consists of letters and numbers.

no i have no idea what it is but i'm trying to reverse engineer it to
see if i can recreate it.

Anyone know what could create a 20 char hash? if it helps at all this
is coming from an Oracle 10G server.

jonese



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237471
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: java.lang.OutOfMemoryError: unable to create new native thread

2006-04-10 Thread Oleg Gunkin
Coldfusion 7 needs more heap space than your JVM allows it to use. You need to 
increase maximum heap size. 

The following is for JSP, but solution is the same.

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17470

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237402
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: java.lang.OutOfMemoryError: unable to create new native thread

2006-04-10 Thread Oleg Gunkin
Coldfusion 7 needs more mememory than your JVM allows it to use. You need to 
increase maximum heap size. 

The following is for JSP, but solution is the same.

http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_17470

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]
Sent: Monday, April 10, 2006 16:14
To: CF-Talk
Subject: java.lang.OutOfMemoryError: unable to create new native thread


We've been having some server stability issues for a while since we've
switched over to CF7.  Now I notice that when the server crashes, we get the
following in the error logs.  Does anyone have any idea on what's causing it
and how to fix it?  I believe we are at the latest updater.  

 

Russ

 

 

04/10 19:00:14 error unable to create new native thread

java.lang.OutOfMemoryError: unable to create new native thread

at java.lang.Thread.start(Native Method)

at
coldfusion.server.j2ee.sql.pool.ConnectionRunner.fetchConnection(ConnectionR
unner.java:42)

at
coldfusion.server.j2ee.sql.pool.JDBCPool.create(JDBCPool.java:519)

at
coldfusion.server.j2ee.sql.pool.JDBCPool._checkOut(JDBCPool.java:444)

at
coldfusion.server.j2ee.sql.pool.JDBCPool.checkOut(JDBCPool.java:350)

at
coldfusion.server.j2ee.sql.pool.JDBCPool.requestConnection(JDBCPool.java:720
)

at
coldfusion.server.j2ee.sql.pool.JDBCManager.requestConnection(JDBCManager.ja
va:123)

at
coldfusion.server.j2ee.sql.JRunDataSource.getConnection(JRunDataSource.java:
138)

at
coldfusion.server.j2ee.sql.JRunDataSource.getConnection(JRunDataSource.java:
125)

at
coldfusion.sql.CFDataSource.getConnection(CFDataSource.java:37)

at
coldfusion.sql.DataSrcImpl.getCachedConnection(DataSrcImpl.java:149)

at coldfusion.sql.DataSrcImpl.getConnection(DataSrcImpl.java:98)

at coldfusion.runtime.JDBCHelper.Get(PersistenceFactory.java:94)

at
coldfusion.runtime.ClientScopeServiceImpl.GetClientScope(ClientScopeServiceI
mpl.java:230)

at
coldfusion.runtime.AppHelper.setupClientScope(AppHelper.java:471)

at
coldfusion.tagext.lang.ApplicationTag.doStartTag(ApplicationTag.java:247)

at coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1915)

at
cfApplication2ecfm1822256882.runPage(\\hms\cf\www\Application.cfm:7)

at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)

at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)

at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)

at
coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)

at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:156)

at
coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)

at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)

at
coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)

at
coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:52)

at
coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistence
Filter.java:28)

at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)

at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)

at
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)

at
coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:11
5)

at coldfusion.CfmServlet.service(CfmServlet.java:107)

at
coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)

at jrun.servlet.FilterChain.doFilter(FilterChain.java:86)

at com.seefusion.Filter.doFilter(Filter.java:40)

at com.seefusion.SeeFusion.doFilter(SeeFusion.java:934)

at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)

at RealIp.doFilter(RealIp.java:62)

at jrun.servlet.FilterChain.doFilter(FilterChain.java:94)

at jrun.servlet.FilterChain.service(FilterChain.java:101)

at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)

at
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)

at
jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)

at
jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)

at
jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)

at
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:
318)

at
jrunx.sched

cfscript equivalent for cfthrow

2006-03-29 Thread Oleg Gunkin
What's the equivalent to cfthrow inside cfscript?

try{
...
}catch(Any e){
//Throw new exception
}

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236507
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Creating Java String

2006-03-24 Thread Oleg Gunkin
You are absolutely right. I needed substring method.

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: S.Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: Friday, March 24, 2006 16:07
To: CF-Talk
Subject: Re: Creating Java String


> Can you please help me to create java String from
> coldfusion srting?
> I tried

> 
> 

> but it returns the following error: "Unable to find a
> constructor for class java.lang.String that accepts
> parameters of type ( coldfusion.runtime.LocalScope )".

What do you need a Java string object for? I would bet that you don't
need it.

s. isaac dealey 434.293.6201
new epoch : isn't it time for a change?

add features without fixtures with
the onTap open source framework

http://www.fusiontap.com
http://coldfusion.sys-con.com/author/4806Dealey.htm




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236200
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Creating Java String

2006-03-24 Thread Oleg Gunkin
Nevermind, I screwed up in another place. Please ignore this thread.

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Oleg Gunkin 
Sent: Friday, March 24, 2006 15:57
To: CF-Talk
Subject: Creating Java String


Can you please help me to create java String from coldfusion srting?
I tried




but it returns the following error: "Unable to find a constructor for class 
java.lang.String that accepts parameters of type ( 
coldfusion.runtime.LocalScope )".

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236199
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Creating Java String

2006-03-24 Thread Oleg Gunkin
Can you please help me to create java String from coldfusion srting?
I tried




but it returns the following error: "Unable to find a constructor for class 
java.lang.String that accepts parameters of type ( 
coldfusion.runtime.LocalScope )".

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:236196
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Merging two queries

2006-03-21 Thread Oleg Gunkin
Thank you

This function does exactly what I need

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Michael Traher [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 21, 2006 15:23
To: CF-Talk
Subject: Re: Merging two queries


http://www.cflib.org/udf.cfm?ID=1376

This might do it - or browse the other query related functions. :-)

If not looking at the code in these may give you some other ideas.

On 3/21/06, Oleg Gunkin <[EMAIL PROTECTED]> wrote:
>
> cfdirectory returns a query as a result, and I need somehow to combine
> results of several cfdirectory calls. In other words, I have two queries,
> but I need to combine them into a single query. Any ideas how to do that?
>
> --
> Oleg Gunkin
> Email: [EMAIL PROTECTED]
> Phone: (604) 666-9392
> Emerging Technologies / Pacific Web Services
> Information Technology Services
> Public Works and Government Services Canada (Pacific)
>
> 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235928
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Merging two queries

2006-03-21 Thread Oleg Gunkin
There is no database involved! cfdirectory returns its result as query type.

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Coldfusion [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 21, 2006 15:19
To: CF-Talk
Subject: RE: Merging two queries


Depending on the query and DB platform   UNION 

-Original Message-
From: Oleg Gunkin [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 6:13 PM
To: CF-Talk
Subject: Merging two queries

cfdirectory returns a query as a result, and I need somehow to combine
results of several cfdirectory calls. In other words, I have two queries,
but I need to combine them into a single query. Any ideas how to do that?

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services Information Technology Services
Public Works and Government Services Canada (Pacific)





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235923
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Merging two queries

2006-03-21 Thread Oleg Gunkin
cfdirectory returns a query as a result, and I need somehow to combine results 
of several cfdirectory calls. In other words, I have two queries, but I need to 
combine them into a single query. Any ideas how to do that?

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235921
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Application.cfc

2006-03-20 Thread Oleg Gunkin
Does application.cfc affect subdirectories like application.cfm? Nothing works 
in subdirectories anymore :(

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Monday, March 20, 2006 14:51
To: CF-Talk
Subject: Re: Application.cfc


As the guy above said, yea, I didn't mean to just include it, but
rather move the logic from APp.cfm to App.cfc.

On 3/20/06, Michael Traher <[EMAIL PROTECTED]> wrote:
> Hi Oleg, Take a look here,
>
> http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=1123.htm
>
> and I'm sure Raymond won't mind me refering you to this example from his
> site
>
> http://ray.camdenfamily.com/downloads/app.pdf
>
> HTH
>
> --
> Mike T
> Blog http://www.socialpoints.com/
>
>
> 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235831
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Application.cfc

2006-03-20 Thread Oleg Gunkin
Wow! Thanks, that's exactly what I was looking for.

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Michael Traher [mailto:[EMAIL PROTECTED]
Sent: Monday, March 20, 2006 14:49
To: CF-Talk
Subject: Re: Application.cfc


Hi Oleg, Take a look here,

http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/html/wwhelp.htm?context=ColdFusion_Documentation&file=1123.htm

and I'm sure Raymond won't mind me refering you to this example from his
site

http://ray.camdenfamily.com/downloads/app.pdf

HTH

--
Mike T
Blog http://www.socialpoints.com/




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235826
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Application.cfc

2006-03-20 Thread Oleg Gunkin
Does not seem to be so trivial to me. I tried including application.cfm within 
onSessionStart and onRequestStart methods, but My application crashed. 

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Raymond Camden [mailto:[EMAIL PROTECTED]
Sent: Monday, March 20, 2006 14:32
To: CF-Talk
Subject: Re: Application.cfc


Why not just include the logic in the "old" file in your new
Application.cfm? It should be trivial.

On 3/20/06, Oleg Gunkin <[EMAIL PROTECTED]> wrote:
> I have a problem replacing my Application.cfm with application.cfc
>
> There is already application.cfm with "cfapplication" tag and some "cfset". 
> If application.cfc is created, application.cfm is ignored. Is there any way I 
> could just cfinclude  application.cfm somewhere in application.cfc?
>
> --
> Oleg Gunkin
> Email: [EMAIL PROTECTED]
> Phone: (604) 666-9392
> Emerging Technologies / Pacific Web Services
> Information Technology Services
> Public Works and Government Services Canada (Pacific)
>
> 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235822
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Application.cfc

2006-03-20 Thread Oleg Gunkin
I have a problem replacing my Application.cfm with application.cfc 

There is already application.cfm with "cfapplication" tag and some "cfset". If 
application.cfc is created, application.cfm is ignored. Is there any way I 
could just cfinclude  application.cfm somewhere in application.cfc?

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235820
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


On Session Expire event

2006-03-20 Thread Oleg Gunkin
When session expires, there is need fo some finalizing tasks. How do I trigger 
an event (call a function) on session expiry?

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235808
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Finding previous page

2006-03-20 Thread Oleg Gunkin
I am looking for a way to find out what was the previous page. I cannot just 
use history.back() javascript because I have to do something before redirecting 
to a previous page. I would really appreciate any suggestions. 

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)


~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:235796
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Server-side validation with hidden input tags and security?

2006-03-09 Thread Oleg Gunkin
Ha-ha, I think I know how to dump and drop databases of most sites made with 
coldfusion :). That settles it then; I am not using hidden input tags for 
validation.

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Russ [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 09, 2006 16:07
To: CF-Talk
Subject: RE: Server-side validation with hidden input tags and security?


I think he's talking about this:

http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/common/h
tml/wwhelp.htm?context=ColdFusion_Documentation&file=1380.htm

and no, it's not secure-per-se as a user can get around it by editing the
form, but it's secure enough so that if somebody messes around with it, and
gets an error message, it's their own fault, and as long as they can't do
anything malicious, no harm done. 

Russ



> -Original Message-
> From: Rick Root [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 09, 2006 6:56 PM
> To: CF-Talk
> Subject: Re: Server-side validation with hidden input tags and security?
> 
> What kind of stuff are you trying to "validate"?
> 
> Rick
> 
> Oleg Gunkin wrote:
> > It seems hard to believe that using special hidden input tags for
> server-side validation is a very secure method because user can save the
> form and remove the hidden tags; therefore, bypass the validation. Please,
> correct me if I am wrong. I want to know if I understand it right. Is
> using special hidden tags in forms really a secure method?
> 
> 
> 



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234950
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Server-side validation with hidden input tags and security?

2006-03-09 Thread Oleg Gunkin
I am trying to validate simple data like dates, emails to prevent clients from 
dropping my database tables even if they really want to.

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Rick Root [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 09, 2006 15:56
To: CF-Talk
Subject: Re: Server-side validation with hidden input tags and security?


What kind of stuff are you trying to "validate"?

Rick

Oleg Gunkin wrote:
> It seems hard to believe that using special hidden input tags for server-side 
> validation is a very secure method because user can save the form and remove 
> the hidden tags; therefore, bypass the validation. Please, correct me if I am 
> wrong. I want to know if I understand it right. Is using special hidden tags 
> in forms really a secure method?




~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234948
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Server-side validation with hidden input tags and security?

2006-03-09 Thread Oleg Gunkin
It seems hard to believe that using special hidden input tags for server-side 
validation is a very secure method because user can save the form and remove 
the hidden tags; therefore, bypass the validation. Please, correct me if I am 
wrong. I want to know if I understand it right. Is using special hidden tags in 
forms really a secure method?

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234942
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


How do I get rid of single quote duplication in sql?

2006-03-07 Thread Oleg Gunkin
I have the following problem with sql generation:
Example


 select #sqlPart# as name from user 

The outcome of this code is 
select ''name: '' + name as name from user 

How do I get rid of single quote duplication?


--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234494
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: StripHtml function that allows some tags

2006-03-03 Thread Oleg Gunkin
Can you point me to where to look for it, please?  CFML Reference has no record 
bout this function.

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Cedric Villat [mailto:[EMAIL PROTECTED]
Sent: Friday, March 03, 2006 12:26
To: CF-Talk
Subject: Re: StripHtml function that allows some tags


Go look for a function called StripTags. It will do exactly what you want. You 
can either pass it a list of tags you want to keep, or to strip. It works great!

Cedric



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234149
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: StripHtml function that allows some tags

2006-03-03 Thread Oleg Gunkin
I know how to do it, but I was hoping that it was done before me, and I can 
reuse that code. 

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Munson, Jacob [mailto:[EMAIL PROTECTED]
Sent: Friday, March 03, 2006 12:38
To: CF-Talk
Subject: RE: StripHtml function that allows some tags


Here's a process I've used in the past:
1.  Replace the good tags with a unique identifier.  Example,  with
~a*~, and  with ~/a~
2.  Remove all bad tags
3.  Replace unique identifiers from step one with original tags

You will have to learn some regular expression magic to do this (search
livedocs for 'regular expressions'), and use CF's ReReplace function a
lot (or similar functions).  There are some excellent regular expression
databases on the web.  If you need to I'm sure you can find a RegEx that
will find all tags (use it in step 2), and just replace them with
nothing.

> -----Original Message-
> From: Oleg Gunkin [mailto:[EMAIL PROTECTED] 
> Sent: Friday, March 03, 2006 1:03 PM
> To: CF-Talk
> Subject: RE: StripHtml function that allows some tags
> 
> Well, I looked at cflib.org and found stripHTML, which just 
> strips all html, but I still need to allow some html :(
> 
> 
> Can anyone help me to find a function tha strips all html 
> from a string except for the tags I specify. For example, I 
> want to only allow , , , and  tags, and strip 
> everything else.


[INFO] -- Access Manager:
This transmission may contain information that is privileged, confidential 
and/or exempt from disclosure under applicable law.  If you are not the 
intended recipient, you are hereby notified that any disclosure, copying, 
distribution, or use of the information contained herein (including any 
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in 
error, please immediately contact the sender and destroy the material in its 
entirety, whether in electronic or hard copy format.  Thank you.   A2





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234124
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: StripHtml function that allows some tags

2006-03-03 Thread Oleg Gunkin
Well, I looked at cflib.org and found stripHTML, which just strips all html, 
but I still need to allow some html :(


Can anyone help me to find a function tha strips all html from a string except 
for the tags I specify. For example, I want to only allow , , , and 
 tags, and strip everything else.





~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234100
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


StripHtml function (please, ignore my post with "using WHERE with ValueList?" topic, it was an accident

2006-03-03 Thread Oleg Gunkin
--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Oleg Gunkin 
Sent: Friday, March 03, 2006 11:27
To: CF-Talk
Subject: RE: using WHERE with ValueList?


Can anyone help me to find a function tha strips all html from a string except 
for the tags I specify. For example, I want to only allow , , , and 
 tags, and strip everything else.



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234094
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: using WHERE with ValueList?

2006-03-03 Thread Oleg Gunkin
Can anyone help me to find a function tha strips all html from a string except 
for the tags I specify. For example, I want to only allow , , , and 
 tags, and strip everything else.

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:234088
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


custom tags and application.cfm

2006-02-09 Thread Oleg Gunkin
I created a few custom tags that access the global variables defined in 
application.cfm, but this does not work. I really need to access those globally 
declared variables from my custom tags. What might be the problem?

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231846
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Equivalent to Java 'import .;'?

2006-02-03 Thread Oleg Gunkin
I want to be able to call all the functions of this component without mailto:[EMAIL PROTECTED]
Sent: Friday, February 03, 2006 16:17
To: CF-Talk
Subject: RE: Equivalent to Java 'import .;'?


Is there an equivalent to Java's 'import .;' statement? I do 
not want to write http://www.houseoffusion.com/lists.cfm/link=i:4:231328
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Equivalent to Java 'import .;'?

2006-02-03 Thread Oleg Gunkin
Is there an equivalent to Java's 'import .;' statement?
I do not want to write http://www.houseoffusion.com/lists.cfm/link=i:4:231324
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Coldfusion hash-map

2006-02-02 Thread Oleg Gunkin
Using structs is great, except for one little glitch: item come out in order 
different from the order these items were added in. Is there a way to fix that 
and still use structs?


 
  








#title#





the result is :


Pacific Council
Yukon Council
Calendar of Events
Management Community



--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231165
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Coldfusion hash-map

2006-02-02 Thread Oleg Gunkin
Could anyone translate this pseudo code to coldfusion for me please? 


HashMap map = new HashMap();

map["a"] = 1;
map["b"] = 2;

for each key in map {
print '' + map[key] + '';
}

Thank you. 

PS: I am asking that because I am really new in CF, and my boss leaves me no 
time for the proper research. I would really appreciate any help.

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231151
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


RE: Geting a list of query column names unsorted.

2006-01-27 Thread Oleg Gunkin
Phyo Pine, just use the following:





--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

-Original Message-
From: Phyo Pine [mailto:[EMAIL PROTECTED]
Sent: Friday, January 27, 2006 13:15
To: CF-Talk
Subject: Re: Geting a list of query column names unsorted.


I am interested in the solution too. I was having the same trouble when I was 
using  as well. So the work-around I did was instead 
of
"SELECT c,a,b FROM someTable", I used "SELECT c as 1c, a as 2a, b as 3b FROM 
someTable".

Hope this helps...

Regards,

Phyo Pine
Information Systems Specialist
DMV - ODOT




> 'query_name.columnlist' returns a sorted list of column names, but I 
> really need it to be unsorted because for the query 'select c, a, b 
> from t' I need 'c,a,b' list, NOT 'a,b,c'. How do I get an unsorted 
> list of columns?
> 
> --
> Oleg Gunkin
> Email: [EMAIL PROTECTED]
> Phone: (604) 666-9392
> Emerging Technologies / Pacific Web Services
> Information Technology Services
> Public Works and Government Services Canada 
(Pacific)



~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230640
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


cffunction with infinite number of parameters

2006-01-27 Thread Oleg Gunkin
How do I make a function with unlimited number of parameters, and how do I 
access these parameters?

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230630
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Geting a list of query column names unsorted.

2006-01-27 Thread Oleg Gunkin
'query_name.columnlist' returns a sorted list of column names, but I really 
need it to be unsorted because for the query 'select c, a, b from t' I need 
'c,a,b' list, NOT 'a,b,c'. How do I get an unsorted list of columns?

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230607
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


Genreting component documentatiton

2006-01-20 Thread Oleg Gunkin
Is there a way to generate api documentation for coldfusion components in a way 
similar to java's javadoc?

--
Oleg Gunkin
Email: [EMAIL PROTECTED]
Phone: (604) 666-9392
Emerging Technologies / Pacific Web Services
Information Technology Services
Public Works and Government Services Canada (Pacific)

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230145
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54


using returned query

2006-01-18 Thread Oleg Gunkin
Some functions can return a query. The question is how to use the returned 
query later usinf cfoutput or cfloop? 

For example:



select * from users





How do I properly recieve and work with that query?

~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:229883
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54