8 Feb 02:05
2 Feb 20:16
A4D 5.0.34: another session problem
Hi folks!
I think I have another session problem and assume a bug.
Here is my setup:
* default Active4D.ini (at least regarding the session settings)
* the following realms.ini entry:
timecard /timecard/
This A4D-Testpage, located at <web>/timecard/session.a4d:
<%
if (session id="")
writebr("new session " + string(current time))
writebr(session id)
session{"start.time"}:=current time
set session timeout(1)
else
writebr("valid session, started at " + string(session{"start.time"})+ ", ID=" + session id)
writebr(session id)
set session timeout(1)
end if
(Continue reading)
28 Jan 07:35
String -> date bug
Hi,
I have discovered a serious bug in 4D v11/v12. If you are using a system date format that puts the year first,
for example in Canada, 4D will return different results on Mac OS X and Windows for the following code:
$d := Date("01-02-03")
Mac OS X, French (Canada): 1 février 2003
Windows 7, French (Canada): 3 février 2001
As you can see, the year and day are transposed. Because of this, unless you are absolutely certain you will
only run on one platform, you will have to parse dates manually. I have filed a bug report with 4D, but who
knows when it will be fixed.
Regards,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoy.org
27 Jan 03:03
Date test
Hi,
If you are using a non-English version of 4D on a non-English system, could you please try the following code
*in 4D* and let me know what the output is:
C_DATE(vDate)
EXECUTE FORMULA("vDate:=!01/02/2012!")
ALERT("y="+String(Year of(vDate))+", m="+String(Month of(vDate))+", d="+String(Day of(vDate)))
Thank you,
Aparajita
www.aparajitaworld.com
"If you dare to fail, you are bound to succeed."
- Sri Chinmoy | www.srichinmoy.org
26 Jan 21:26
19 Jan 18:10
Custom error (404) handling in fusebox
Hi In fusebox, I've found it quite difficult to properly implement a system of 'not found' error handling (404) because most of the time, it's the business logic in the switch that determines a URL is invalid by virtue of the action being incorrect. e.g. www.mydomain/categories/lancelot . . . . . is not going to have a 404 generated by Active4D because the circuit 'products' is valid, even if 'lancelot' is not a valid category. What I do in this situation is simply direct the output to a custom 404-style error page in fbx_layouts. The problem is that this gets returned with a status code of 200 (because Active4D didn't detect any problem) and when I call set response status(404) then Active4D delivers it's own 404 page, not the custom one. Is it possible to simply set the response status of the current response without Active4D actually changing the content as well ? Peter
18 Jan 19:19
SSL
Just a quick question as I think I know the answer, but we are investigating adding SSL to our product. This is the first time I've even looked into SSL and just want to make sure I have all the bases covered. From what I understand it's basically all on the 4D side of things that we need to get things working as far as making sure SSL is turned on and the certificates and all. I really shouldn't have to do anything on the Active4D side (we are using the 4D web server). We do allow uploads so would I need to modify any code there? Active 4D v5 4D v11 Mac/Win Christian Cypert Tailored Solutions, Inc. Job Management Software for the Printing Industry Milwaukee, WI 414-774-9997 http://www.tailored.com
18 Jan 06:37
Question re Release 37
Hi I am about to deploy a new production version of a web app. All the testing was done with release v35 and I'd like to deploy with release 35. My question concerns the v37 release notes bug: "Fixed a crasher that could occur if the web root was outside the 4D default directory." Is this only relevant to the new 64bit version ? (i.e. is this a bug that appeared in v36 and then was fixed in v37 or does it apply to v35 and previous as well) ? Thanks. Peter
26 Dec 13:08
18 Dec 21:53
Optimisation Considerations
Hi Over the years I have built up quite a lot of experience in using stress testers to discover bottlenecks in based dynamic sites. I'd like to contribute my observations and ask if other developers have anything to say on this subject. CPU CORES What I have noticed in particular is that the bottlenecks are different at low and high loadings: - At low loading, the bottleneck is bandwith or DB query response time (i.e. the ability of the web server / network infrastructure to transfer content from the disk to the browser) - At high loading (for a dynamic page with significant quantity of scripts), the bottleneck appears to be the CPU i.e. at high loading most of the system is waiting for the CPU to process scripts in the dynamic pages. Since 4D uses only 1 core for this, the core is heavily time-sliced across lots of processes and slows the response time down linearly, even though there is plenty capacity left in the web server / network / database engine. Further, of that premium CPU time, most of it is going into interpreting the script commands (as opposed to doing executing the commanded function) unless they are calling back into 4D compiled methods.(Continue reading)
16 Dec 00:40
Testimonials
Hi all, I am working on a brand new web site (it's going to be awesome), and I would like some testimonials to use on the site. Even a few sentences is fine. Anything you can say about how Active4D solved your problems and how it is worth the price would be great. Thank you, Aparajita www.aparajitaworld.com "If you dare to fail, you are bound to succeed." - Sri Chinmoy | www.srichinmoy.org
RSS Feed