anyway to initialize ORM AFTER onApplicationStart()?

2015-03-18 Thread Yuliang Ruan
current app sets the datasource in onApplicationStart(). i can't have ormEnabled=true unless there's a datasource.and it doesn't look like i can intialize orm at the end of onApplicationStart() by doing a this.ormEnabled=true what are the alternatives? I'm thinking one where i set

multithreaded job....can i programmatically ignore waiting for threads?

2014-07-23 Thread Yuliang Ruan
scenario is this. main thread starts a pool of threads to do work.the result of all threads are combined together to form a big result set and returned. however, i'm envisioning that if 1 thread fails, the thread join is still waiting for the 9 other threads to complete before throwing

Re: Opening a template in CF Studio from an HTML link

2012-11-26 Thread Yuliang Ruan
Hi, When I dbl-click on a CF template in Windows Explorer, it automatically opens the template in CF Studio. Now, suppose I have a list of local files in an HTML page, is it possible to create the same action in an HTML link like: A href=open the file in CF Studio#fullPath#/A you usually

Re: Anybody seen this hack/exploit?

2012-11-13 Thread Yuliang Ruan
Recently a site of ours got hacked - basically, a Google search the site was returning viagra info! What we got was a small script added to the end of a functions.cfm file: cfset REQUEST.UserAgent = LCase( CGI.http_user_agent ) /cfif (Find( google, REQUEST.UserAgent )) cfhttp method=get

cfftp preserve remote file timestamp?

2011-11-08 Thread Yuliang Ruan
is there an option somewhere? ~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive:

CFFTP secure bug?

2011-11-08 Thread Yuliang Ruan
having a wierd issue here. i believe it may be a bug in CF. code: cfftp secure=true action=open server=#ftpserver# port=#ftpport# username=#username# password=#password# fingerprint=#fingerprint# connection=myftp cfftp action=getfile connection=myftp remotefile=testfile.txt

Re: CFFTP secure bug?

2011-11-08 Thread Yuliang Ruan
we're already on 9.0.1. yea i saw that bug report. that one dealt with creating the connection. in my situation, the connection establishes fine. i can listdir fine. it's the get command that's causing an issue. ~|

server trying to connect to my workstation on port 135?

2011-10-06 Thread Yuliang Ruan
Not sure what's causing it but our net admin trying to figure out why our dev server is trying to initiate a connection to my workstation on port 135 every 30seconds. this started happening coinciding with the day I installed flash builder. is there some stub that's making server try to

CF9 Undelivr not working as expected

2011-03-14 Thread Yuliang Ruan
We upgraded to CF9 on the production server and the spooler isn't working like before. Expected behavior is .cfmail file is created in Spool/ folder, then if rejected by SMTP, moved to Undelivr folder. Current behavior. .cfmail created in Spool/, never appears in Undelivr/I sent

Re: CF9 Undelivr not working as expected

2011-03-14 Thread Yuliang Ruan
server that determines what kind of checks it does on email before sending it. On Mon, Mar 14, 2011 at 8:21 PM, Yuliang Ruan yuliangr...@hotmail.comwrote: that's what i figured...but which ones in cfide are these checks settings? i don't see any that describe a recipient email address

Re: CF9 Undelivr not working as expected

2011-03-14 Thread Yuliang Ruan
If it is a valid formatted email address CF will send to the mail server regardless. I believe CF will only move something to undeliverable if it cannot connect to the mail server or if the email address in not in a valid format. Brian actually not getting that behavior either. I sent an

are queries in CFC methods not allowed to be cached?

2010-12-06 Thread Yuliang Ruan
put a cachedWithin in my cffunction and it never retrieves the cached version. even when i'm hitting F5 back to back. what's the deal? haven't found anything in docs saying u can't query cache in CFC ~| Order the Adobe

Re: are queries in CFC methods not allowed to be cached?

2010-12-06 Thread Yuliang Ruan
ahhh n/m brain fart. reason it wasn't caching is cause have date parameter with now() as the value. DURR :P ~| Order the Adobe Coldfusion Anthology now!

any solution to cfmailparam attachment as alternate filename

2010-09-29 Thread Yuliang Ruan
so we're sending out a set of contracts and whatnots to vendors as PDF attachment on an email. we would LIKE to have the attachment named VendorContract.pdfHowever, we've run into a concurrency issue with naming the file and cfmailing. as i understand it the cfmail tag only writes the

Re: cfqueryparam this.sql?

2010-05-27 Thread Yuliang Ruan
well in that format there's no cfqueryparam sql injection protection.cause you're accepting whatever's in the variable. why do you have it that way? that's a very bad performance because there's no execution plan caching, no query caching. cfqueryparams cannot exist outside of a

Re: How to make a select option tag selected in CF?

2010-05-27 Thread Yuliang Ruan
btw, it should be just selected not selected=selected option value=clothes cfif form.choice is clothesSELECTED/cfifClothes/option if your list of options is long and u need it to be hardcoded, u should put it into a array of struct. i.e. cfset myChoices=[{value=nothing, text=Please Choose

Re: How to make a select option tag selected in CF?

2010-05-27 Thread Yuliang Ruan
oh for radiobuttons it's input type=radio name=pagetype value=personal cfif form.pagetype is personalCHECKED/cfifPersonal ~| Order the Adobe Coldfusion Anthology now!

tag updater for cfstudio?

2010-05-07 Thread Yuliang Ruan
I know Adobe already killed it in favor of cfbuilder...does anyone have tag update for cf 8 or 7 or anything on a mirror? thanks ~| Order the Adobe Coldfusion Anthology now!

Re: setting cf var with javascript

2010-02-05 Thread Yuliang Ruan
I'm looking to add three work days to the current date. set this in a var and update the record in the database. after the JS actions of adding work days, the JS would need to submit the new data back to a CFM/CFC to be processed as a form, url, or function argument to update into the db.

CF Printer list?

2009-12-09 Thread Yuliang Ruan
We've had production server doing cfprint's for almost a year now. It works just dandy. Earlier this month, it just stopped printing completely and shows error Printer not available. Available Printers are ''. in CFIDE, the printer list is definitely blank...but how did it get that way?

CF Printer list?

2009-12-09 Thread Yuliang Ruan
We've had production server doing cfprint's for almost a year now. It works just dandy. Earlier this month, it just stopped printing completely and shows error Printer not available. Available Printers are ''. in CFIDE, the printer list is definitely blank...but how did it get that way?

CF Printer list?

2009-12-09 Thread Yuliang Ruan
We've had production server doing cfprint's for almost a year now. It works just dandy. Earlier this month, it just stopped printing completely and shows error Printer not available. Available Printers are ''. in CFIDE, the printer list is definitely blank...but how did it get that way?

Re: CF Printer list?

2009-12-09 Thread Yuliang Ruan
holy duplicate post ~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329031

Randomize Query results?

2009-10-13 Thread Yuliang Ruan
I have a Query of Query right now that I'd like to have the results sort order randomized. Any ideas? I've seen examples dependent on the dbms for producing a random randomization, but is there any way to do that within QofQ? The base query that my QoQ is operating on is a cached Oracle

Re: Simple: ? sql add value to column

2009-10-01 Thread Yuliang Ruan
yea u'd cast it...but the real question you have to ask...why is that field a varchar if it's meant to be used as a numeric? ~| Want to reach the ColdFusion community with something they want? Let them know on the House of

Re: directorywatcher event gateway...doesn't work for me

2009-05-05 Thread Yuliang Ruan
anyone? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive:

directorywatcher event gateway...doesn't work for me

2009-05-01 Thread Yuliang Ruan
So I'm setting up a new event gateway instance. I created jobsentry.cfg and jobsentry.cfc and started up the instance. I edited a file in the directory and got an error in the log file that says: Error invoking CFC for gateway JobSentry: null

Re: Unable to dump checkbox Values

2009-04-28 Thread Yuliang Ruan
when a checkbox is not checked, it doesn't pass anything at all. do this: cfif isdefined(chk_deletePage#count#) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

cfdocumentitem resets arguments scope? nowai!

2009-04-23 Thread Yuliang Ruan
coworker struggled to find out why this code was breaking on him and finally found out...but this perplexes even me cfcomponent cffunction name=foo access=remote cfargument name=bar default=hi cfdocument format=PDF cfoutput #bar# first

Re: Finding values not in a list

2009-04-06 Thread Yuliang Ruan
Next I created a list from the first query: CFOUTPUT query=GetRecord CFSET list = #GetRecord.MLS_number# /CFOUTPUT This code does NOT produce a list. this only sets the list variable to the current record's MLS_number. the correct code to create a list of all the MLS_numbers in the

Re: How do you get motivated at work?

2009-03-25 Thread Yuliang Ruan
My way of keeping motivated is to make money while I code. Money is a big motivator. It keeps one happy and motivated to take the next step. For me, the money itself isn't the motivator, but what it allows me to do. My coding pays for things like flight training and other fun stuff to do.

Re: How is this done without evaluate()?

2009-03-20 Thread Yuliang Ruan
well personally i try to avoid evaluates too. it still is about the computational expense.same with query of queries. the expense of QoQ can be seen dramatically when there's looping involved. I remember when I first started at this job, one of the components was doing a recursive

Re: String to List?

2009-03-19 Thread Yuliang Ruan
#REreplace(list,(.)(.),\1,\2,,ALL)# heh...not technically list manipulation ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: CF restart daily

2009-03-10 Thread Yuliang Ruan
check with your hosting and see if anything is happening around then. I remember back in the day I heard a story about a sysadmin that kept having a computer reboot problem. He went thru logs and just couldn't find a reason why the computer reboots at night. It turned out that the office

Re: CF restart daily

2009-03-10 Thread Yuliang Ruan
I've looked through the archives. I've checked my settings. I've done just about everything possible to be done and I still can't find out why HoF reboots every day at about 12:00. If it was memory, I'd expect it to be more random. It looks like some sort of scheduled event but there is no cron

Re: php help (i know, offlist if you can... thanks!)

2009-03-10 Thread Yuliang Ruan
so there is a garagerefacing.xml in the same directory as that php file that's running? it might also be something like a environment variable PATH or something. or the php file is not in the same directory as that XML file and there was a path variable set up before but now doesn't exist.

Re: FileExists - different server

2009-02-27 Thread Yuliang Ruan
the drive P: doesn't exist for the server. The CF server won't be able to look on your local workstation's mapped drives. you should use the UNC path \\that_server_name\shared directory\blahblah\foo\file.dat ~| Adobe®

CFTree ending nodes?

2009-02-05 Thread Yuliang Ruan
I'm currently using CFTree with a cfc bind. Is there anyway to have a node that doesn't have any children not show the expand/collapse icon? Right now it's kind of confusing to the end user if there's a icon there that doesn't do anything. when they click it, it just changes to a collapse

Re: Using FileExists function in a CFIF tag

2009-02-03 Thread Yuliang Ruan
filexists is for checking file existence on the local filesystem. not for checking out on the web. are you hosting the images? if you are, you should be doing something to effect of: cfset PhotoLocation = c:\www\htdocs\images\ cfset PhotoLocation = PhotoLocation ViewField20 cfif

Re: banning a User from the site

2008-12-26 Thread Yuliang Ruan
just ban their entire C block. hehe ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;207172674;29440083;f Archive:

Re: Banning a User from my Site

2008-12-25 Thread Yuliang Ruan
I'd like to implement a Banned User on my site, but I'm having trouble figuring how to do it effectively. I already ban by IP and by username (adding the IP they are connecting from if they try to sign in from another IP). But they can just change IPs and make a new account (I'm considering

Re: Internal Page Links with CF

2008-11-12 Thread Yuliang Ruan
sorry for the question as i know i have read it before but can't remember. in CF, when i want to have internal links - like a href=#name but name is a variable: a href=##name# how do i do without the ## that messes up the output? thanks do ###name# ## makes the pound character

Re: Execute a Perl script.

2008-10-06 Thread Yuliang Ruan
yea in win32 you'd want to cfexecute name=c:\program files\perlinstalledwhereever\perl.exe arguments=d:\path\to\my\perl\loader.pl #year# variable=goodbar errorvariable=foobar/ ~| Adobe® ColdFusion® 8 software 8 is the most

Re: Execute a Perl script.

2008-10-06 Thread Yuliang Ruan
so it runs fine if you do e:\perl\bin\perl.exe d:\intranet_apps\pesticide_use_report\loader\loader.pl 2008 from a command prompt? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the

Re: Execute a Perl script.

2008-10-06 Thread Yuliang Ruan
it's probably because you have the correct environment variables set up in your command prompt. when cfexecute happens, the shell is somelike brand new profile. it doesn't have your user's or even administrator's setups. i got a similar thing in unix too.

Re: cfdocument font problem

2008-09-26 Thread Yuliang Ruan
try putting them in different cfdocumentsection's. one section for each program ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

CFDocument space between header and content

2008-09-25 Thread Yuliang Ruan
I'm trying to set up a PDF CFDocument and I'm been trying to get rid of the space between the header and the main content of the page so far I've got this code and I'm left with just like a 1/8. any ideas to get the two parts to be totally flush? cfdocument format=PDF margintop=2

Re: cfscript question

2008-08-26 Thread Yuliang Ruan
yea but...function calls shouldn't have dynamic number of arguments. perhaps u mean to create a list of arguments and pass it in as 1 argument? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to

Re: javascript question

2008-08-14 Thread Yuliang Ruan
remember that when you do this, it changes the behavior of the keystroke in the entire window. If you have another field that can input a period(.), this will make it a tab too. Not sure if you're allowed to check focus and based on the focused element, maybe make a decision to bypass or

Re: javascript question

2008-08-14 Thread Yuliang Ruan
oh wait n/m the way dave has it, it only activates on that element. :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: Using CFLoop to Define Variables

2008-08-11 Thread Yuliang Ruan
design wise, would you be better putting those in an array instead of seperate variables? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: Query of Queries

2008-08-05 Thread Yuliang Ruan
good thing it's the development server :) what if you just try: cfquery type=query select 1 as id /cfquery no datasources involved. cfset qfoo=querynew(id) cfset res=queryaddrow(qfoo,1) cfset res=querysetcell(qfoo,id,1) no sql involved.

Re: Query of Queries

2008-08-05 Thread Yuliang Ruan
cross fingers and start preparing reinstall plan heh ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;203748912;27390454;j Archive:

Multiple documents in a single cfdocument

2008-08-05 Thread Yuliang Ruan
I'm trying to consolidate multiple documents into a single cfdocument. Just so that the user doesn't have to open 5 windows and hit print in 5 windows. I see that I can cfdocument and seperate each of the 5 documents into their own cfdocumentsection. However, the

Re: Multiple documents in a single cfdocument

2008-08-05 Thread Yuliang Ruan
ahh serves me for not going directly to the cf8 documentation. looks like google hasn't had a chance to index the cf8 livedoc yet. just the old cf7 ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic

Re: Multiple documents in a single cfdocument

2008-08-05 Thread Yuliang Ruan
ahh serves me for not going directly to the cf8 documentation. looks like google hasn't had a chance to index the cf8 livedoc yet. just the old cf7 for the record the two scoped variables you need for this are: cfdocument.currentsectionpagenumber and cfdocument.totalsectionpagecount

Re: Null/empty values from the database.

2008-08-04 Thread Yuliang Ruan
coldfusion does not have the concept of NULL. all field values from a query are string type. a NULL and a zero length string in the database show as the same in coldfusion layer. if you really want to check NULL-ness, you'll have to do it in SQL logic.

Re: Transfering files from Non-coldfusion IIS Server to a CF Webservice

2008-08-04 Thread Yuliang Ruan
use form enctype multipart/form-data. there's a bunch of google topics on this. this one looks to be a good starting step. although it's generic and not CF oriented. http://chxo.com/be2/20050724_93bf.html ~| Adobe®

Re: 2 questions: ensuring a file is only included once, and scrubbing form and url scopes

2008-08-01 Thread Yuliang Ruan
back in the days of C/C++ we used to do this with header files all the time. inside the included file do: cfif isdefined(include_myfile) is 0 cfset include_myfile=1 !-- do all your foos here --- /cfif that way you won't have to do cfif logic in the parent includer files.

Re: Chinese characters in CF

2008-08-01 Thread Yuliang Ruan
you'd be outputting unicode. hopefully your client will have either big5 or gb font package installed already. have fun coding error messages and whatnot in unicode. hehe ~| Adobe® ColdFusion® 8 software 8 is the most

Re: (ot) Best FTP Software 4 Windows

2008-07-30 Thread Yuliang Ruan
smartFTP? I thought CuteFTP was the standard. besides, real men use cmd line FTP hehe. FTP clients are built into everything. If yer just wanting to download some files, just use your browser. Unless you're doing something extravagant, you prob don't need a seperate ftp client.

Re: Returning multiple recordsets in a single component

2008-07-29 Thread Yuliang Ruan
if the queries aren't related, then most likely they shouldn't be grouped together logically :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: Using a function outsideof the call page.

2008-07-25 Thread Yuliang Ruan
put your funtion declaration in a shared file include it. or put the include if your application cfm/cfc. just start making your own function libraries :) ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic

Re: Consuming a Web Service with CF8

2008-07-23 Thread Yuliang Ruan
since the webservice is thru SSL, make sure the SSL certificate is valid and from a trusted CA. if it's not from a trusted CA, you'll have to import the cert into your CF server's trusted store. see http://www.coldfusionmuse.com/index.cfm/2005/01/29/keystore

Re: Interesting issue with competition

2008-07-17 Thread Yuliang Ruan
So what's the purpose of restricting the time? Is it because the competition is only valid at that time? Would a valid customer not do the competition outside of that timeframe? I would say you should give each sent out email a encoded serial number in the URL and record when that user's

Re: Interesting issue with competition

2008-07-17 Thread Yuliang Ruan
well...yeabut that wouldn't be maintainable unless you want to keep adding on url's to your blacklist. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

Re: CFHTTP Post

2008-07-15 Thread Yuliang Ruan
they probably updated their certificate. It might have been expired or from an untrusted CA. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial

cfinput type=datefield

2008-07-11 Thread Yuliang Ruan
I'm liking this tag. very clean display. problem though is a sitewide CSS has the td,th font-size down to 73% and this interfering with the pop calendar and really squishes it. is there anyway to either add an override css just for the calendar? or does the calendar have a CSS class that

cfinput type=datefield

2008-07-11 Thread Yuliang Ruan
I'm liking this tag. very clean display. problem though is a sitewide CSS has the td,th font-size down to 73% and this interfering with the pop calendar and really squishes it. is there anyway to either add an override css just for the calendar? or does the calendar have a CSS class that

Re: Sorting International Names Challenge!

2008-07-10 Thread Yuliang Ruan
Right, first you have to establish your sort algorithm. Do it manually on paper first with a sampling of data. Most romanic languages would be relatively easy...however it's not all trivial. What comes first? é è ê ë ? What about special characters limited in even romanic languages? þ Ð

Re: Sorting International Names Challenge!

2008-07-10 Thread Yuliang Ruan
Right, first you have to establish your sort algorithm. Do it manually on paper first with a sampling of data. Most romanic languages would be relatively easy...however it's not all trivial. What comes first? é è ê ë ? What about special characters limited in even romanic languages? þ Ð

Re: Sorting International Names Challenge!

2008-07-10 Thread Yuliang Ruan
Actually Qing Xia, how are chinese phonebooks done? Is it by pinyin? I grew up here in the US, dunno how alot of commonplace things are in China ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to