[Catalyst] Hypothetical Site and Scalability Planning

2007-10-26 Thread Mesdaq, Ali
Hey All, Just wanted to start a thread about scalability planning and design. I was thinking we could take the approach of what peoples opinions, ideas, and best practices are for large scale sites and use a hypothetical site or a existing site as the model to plan for. Not everything discussed

RE: [Catalyst] Hypothetical Site and Scalability Planning

2007-10-26 Thread Mesdaq, Ali
-- -Original Message- From: J. Shirley [mailto:[EMAIL PROTECTED] Sent: Friday, October 26, 2007 12:31 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Hypothetical Site and Scalability Planning On 10/26/07, Mesdaq, Ali [EMAIL PROTECTED] wrote

[Catalyst] Shared Host Setup

2007-11-01 Thread Mesdaq, Ali
Been working on setting up Catalyst on a shared host and I have to say its been pretty painful. Been trying to use the default install on the host and add the modules I need but came across the suggestion to install a new version of perl and that helped a lot. But the host I am using (aplus.net)

RE: [Catalyst] Shared Host Setup

2007-11-01 Thread Mesdaq, Ali
On Nov 1, 2007 2:06 PM, Mesdaq, Ali [EMAIL PROTECTED] wrote: Been working on setting up Catalyst on a shared host and I have to say its been pretty painful. Been trying to use the default install on the host and add the modules I need but came across the suggestion

[Catalyst] Jobs and Freelance

2007-11-13 Thread Mesdaq, Ali
Where is the proper place to post Job postings and/or Freelance stuff? Thanks, -- Ali Mesdaq Security Researcher II Websense Security Labs http://www.WebsenseSecurityLabs.com http://www.WebsenseSecurityLabs.com --

RE: [Catalyst] DBIx relationships

2007-12-07 Thread Mesdaq, Ali
I am still very much a beginner myself but from one beginner to another it looks like your schema is not a many to many type. You would need a table to bring the family and members together like family_members(male_id, female_id, family_id) Then you could have a search on the family table and

[Catalyst] Input/Parameter Checks

2007-12-13 Thread Mesdaq, Ali
Anyone have some suggestions or references to good modules or best practices in this regards? This is mainly in regards to using these inputs in sql queries or other areas where common attacks against web applications happen. I wonder in the catalyst world what best practices are. Would it be a

RE: [Catalyst] Input/Parameter Checks

2007-12-13 Thread Mesdaq, Ali
] Sent: Thursday, December 13, 2007 1:41 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Input/Parameter Checks --- Mesdaq, Ali [EMAIL PROTECTED] wrote: Anyone have some suggestions or references to good modules or best practices in this regards? This is mainly in regards to using

RE: [Catalyst] Input/Parameter Checks

2007-12-13 Thread Mesdaq, Ali
PM To: The elegant MVC web framework Subject: Re: [Catalyst] Input/Parameter Checks On 13 Dec 2007, at 21:21, Mesdaq, Ali wrote: Anyone have some suggestions or references to good modules or best practices in this regards? This is mainly in regards to using these inputs in sql queries

RE: [Catalyst] Documentation on DBIx Class

2008-01-18 Thread Mesdaq, Ali
Rockway [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 1:50 PM To: The elegant MVC web framework Subject: RE: [Catalyst] Documentation on DBIx Class On Fri, 2008-01-18 at 12:47 -0800, Mesdaq, Ali wrote: I have to just rant a bit about that. The most difficult thing about catalyst

RE: [Catalyst] Documentation on DBIx Class

2008-01-18 Thread Mesdaq, Ali
I have to just rant a bit about that. The most difficult thing about catalyst is trying to learn dbic. I love dbic and how clean it can make working with the data layer but because of the documentation its hard to wrap ur head around to just fully know how it works and what to expect. I am not a

RE: [Catalyst] Catalyst test server response times.

2008-01-30 Thread Mesdaq, Ali
Just giving my recommendation for what in my opinion is an ESSENTIAL tool for any web developer or even power user Firebug for Firefox https://addons.mozilla.org/en-US/firefox/addon/1843 . Best overall tool I have found. Lets you debug JavaScript, inspect elements and their dom properties, lets

RE: [Catalyst] javascript libraries in your application

2008-02-05 Thread Mesdaq, Ali
I put mine under root/static/js during testing and development but on live servers I put it under /js and use mod rewrite rules to allow that and the images directory to be served up statically. For some reason having /static/js on a live URL is ghetto to me. Thanks,

RE: [Catalyst] The home page, the wiki and the mailing list

2008-03-07 Thread Mesdaq, Ali
Do you really think people are going to list their projects for their internal tools and portals on a public website? Yes the wiki is way out of date and poorly maintained but guess what the one we have here at work is also poorly maintained. That's just the nature of the wiki and I have

RE: [Catalyst] implementing ajax

2008-03-11 Thread Mesdaq, Ali
Jennifer, Are you sure you want to stick with this route? Looks like your going to make a lot of work for yourself. I would hate to see the js code to make xml. Use the js code to just post the values you want read those values in with something like $c-request-params-{whatever} in your

RE: [Catalyst] implementing ajax

2008-03-11 Thread Mesdaq, Ali
at time. Catalyst first, then all the plug in modules. If you could provide a working example of hos to implement the js and catalyst controller part of JSON, I would greatly appreciate it! Thanks jennifer Mesdaq, Ali wrote: Jennifer, Are you sure you want to stick with this route? Looks like

RE: [Catalyst] Problem Using Jemplate

2008-03-21 Thread Mesdaq, Ali
I think you have to specify the view in some cases. I know I had to do that for JSON views like this. # At the end of the controller method $c-stash-{current_view} = 'JSON'; Maybe jtemplate becomes the default. Are you specifying a TT template by the way? Thanks,

RE: [Catalyst] external javascript files

2008-03-24 Thread Mesdaq, Ali
I think in your case it would be /src/myjavascript.js Thanks, -- Ali Mesdaq (CISSP, GIAC-GREM) Security Researcher II Websense Security Labs http://www.WebsenseSecurityLabs.com -- -Original Message- From:

RE: [Catalyst] So, what do we want in the -next- book?

2008-03-27 Thread Mesdaq, Ali
I think there needs to be a balance. Free software is free so that already is a big bonus for us as a consumer of the software. Then having the software be open source is another big bonus. Then having documentation that is free is another big plus. Paying for a book that someone put time into

[Catalyst] UTF-8 Conversion on the fly

2008-05-23 Thread Mesdaq, Ali
Hello Everyone, Got a question about utf8 conversions on the fly. I was wondering if anyone had experience and some pointers of good practices for taking a webpage thats stored as a blob in mysql then serving that page after its been converted to utf8. Right now the way this is implemented is

RE: [Catalyst] untainting utf8 text for db

2008-06-05 Thread Mesdaq, Ali
I inquired about this myself a few months ago. Consensus if I remember correctly was that DBIC gives you some safety in that it uses place holders but that does not mean your protected fully from bad input or malicious abuse of that parameter. I personally like having input meet specific

RE: [Dbix-class] Re: [Catalyst] untainting utf8 text for db

2008-06-06 Thread Mesdaq, Ali
No escape sequence should get through if you reject any characters outside of the allowed characters. For example you could just reject the input and prompt for another input if this regex matches (?:[^a-zA-Z0-9 _]+) So escape sequences shouldn't affect this test. Thanks,

RE: [Catalyst] XPath, DOM problem

2008-07-09 Thread Mesdaq, Ali
I agree. Using XML::LibXML and the built in xpath queries would be a much better option. Also you probably definitely want to just pass a data structure to your template that is better suited for processing i.e. plain array or array of hash of name value pairs. Another option if your xml is

RE: [Catalyst] Help! Need help deploying app to Apache

2008-09-17 Thread Mesdaq, Ali
Did you try also looking at the apache error log? Might have useful information in there about file paths or permissions Thanks, -- Ali Mesdaq (CISSP, GIAC-GREM) Sr. Security Researcher Websense Security Labs http://www.WebsenseSecurityLabs.com

RE: [Catalyst] A suitable method to redraw a page

2008-09-23 Thread Mesdaq, Ali
I think ajax would be your friend here. You could just make an ajax call to some function to check the status of the file copies and then update the DOM directly instead of refreshing the whole page. Or the actual call to start the copy can be made via ajax instead of the call to check the

RE: [Catalyst] [META] Advent calendar

2008-11-12 Thread Mesdaq, Ali
I volunteer to write an article on Catalyst + Mochikit + JSON to build AJAX Web Apps. I can probably only do a simple example to get people started don’t have enough free time to write an in-depth article. If any of the Advent Calendar organizers want me to write it just contact me and we can

RE: [Catalyst] One App, multiple databases

2008-11-19 Thread Mesdaq, Ali
Are these db's exact copies as far as schema from each other? Or is it different tables and structure as well? Reason I am asking is because if its exactly the same and all your queries work the same and your logic works the same as well and the only difference is if user1 is connected then

RE: [Catalyst] Thoughts On GeoIP Modules?

2009-03-10 Thread Mesdaq, Ali
I have used it pretty heavily in the past and been happy with it. I am not sure if the geo-location stuff in the way you want to use it will be successful however since I have not used it for those purposes. So the problem your experiencing is what exactly? Automated signups or manual signups

RE: [Catalyst] Catalyst - any good AJAX tutes?

2009-03-10 Thread Mesdaq, Ali
Not sure if this is even relevant anymore to this discussion but maybe this will help http://www.catalystframework.org/calendar/2008/24 -Original Message- From: kakim...@tpg.com.au [mailto:kakim...@tpg.com.au] Sent: Thursday, March 05, 2009 9:44 PM To: The elegant MVC web framework

RE: [Catalyst] Example of a simple repeatable field and button

2009-03-10 Thread Mesdaq, Ali
Might help might be overkill http://www.catalystframework.org/calendar/2008/24 -Original Message- From: Florent Angly [mailto:florent.an...@gmail.com] Sent: Tuesday, March 10, 2009 2:55 PM To: The elegant MVC web framework Subject: [Catalyst] Example of a simple repeatable field and

RE: [Catalyst] Catalyst-Ajax-Mochikit - followed tute but am stuck. Cannot show values in view(webpage)

2009-04-15 Thread Mesdaq, Ali
Hello, I am the one who wrote that article sorry if it wasn’t clear enough to help you out here. Looking at the code you pasted I see a few places where I think the issue might be. In your subscriptions_quote.js file you don’t have the price element defined like in my example. What you need

RE: [Catalyst] website member urls

2009-04-29 Thread Mesdaq, Ali
Couldn’t you do something with the default method in the root controller? So similar to what others suggested except you would modify the default method so that if the user doesn’t exist you can 404 and have some kind of message. Thanks, -- Ali Mesdaq

RE: [Catalyst] determine MIME type of binary Webservice result?

2010-01-19 Thread Mesdaq, Ali
To do in memory matches I use File::LibMagic on ubuntu box with the latest lib magic library installed. my $libm = File::LibMagic-new(); my $mtype = $libm-checktype_contents($content); There is also a method for getting Thanks, -- Ali Mesdaq (CISSP,

RE: [Catalyst] Best practices: XML output from static XML

2010-03-05 Thread Mesdaq, Ali
Maybe I am missing something but why is a view needed? If you are serving up a static file and its xml why don’t you just serve that file statically based on path? Is the header content-type not getting set properly for that file? Thanks, -- Ali Mesdaq

RE: [Catalyst] Best practices: XML output from static XML

2010-03-05 Thread Mesdaq, Ali
model, I thought that a best practice would be to use a view module although in this case, obiously, the view task is insignificant. David De: Mesdaq, Ali ames...@websense.com Para: The elegant MVC web framework catalyst@lists.scsys.co.uk Enviado: vie,5 marzo

RE: [Catalyst] Best practices: XML output from static XML

2010-03-05 Thread Mesdaq, Ali
-- -Original Message- From: J. Shirley [mailto:jshir...@gmail.com] Sent: Friday, March 05, 2010 12:20 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Best practices: XML output from static XML On Fri, Mar 5, 2010 at 11:31 AM, Mesdaq, Ali ames...@websense.com wrote: To me

RE: [Catalyst] using uri_for to parsing parameters

2010-03-18 Thread Mesdaq, Ali
“so how do I parse the $book_id if I don't want to hard code the URL.” I am a little confused by that statement. What do you mean parse $book_id you already know the book_id. Are you basically trying to redirect the user back to the URL they came from? Thanks,

RE: [Catalyst] Views and escaping HTML

2010-04-01 Thread Mesdaq, Ali
To: The elegant MVC web framework Subject: Re: [Catalyst] Views and escaping HTML On Thu, Apr 1, 2010 at 10:27 AM, Mesdaq, Ali ames...@websense.com wrote: You prefer global escaping to escaping in the template? I use the TT plugin for escaping [% USE HTML %] [% HTML.escape(needs.escaping

RE: [Catalyst] Alternatives to Catalyst ?

2010-04-21 Thread Mesdaq, Ali
I'm sure the developers are open to hearing your ideas for optimization and performance improvements. Thanks, -- Ali Mesdaq (CISSP, GIAC-GREM) Sr. Security Researcher Websense Security Labs http://www.WebsenseSecurityLabs.com

[Catalyst] Weird error with View::JSON

2010-09-07 Thread Mesdaq, Ali
Hey all, I am getting a weird error when I start/restart my catalyst server. The error does not seem to be stopping anything from working from what I can tell. This is the error: Tried to write to the catalyst_component_name accessor - is your component broken or just mad? (Write ignored -

RE: [Catalyst] Weird error with View::JSON

2010-09-07 Thread Mesdaq, Ali
/ -- From: Devin Austin [mailto:devin.aus...@gmail.com] Sent: Tuesday, September 07, 2010 10:52 AM To: The elegant MVC web framework Subject: Re: [Catalyst] Weird error with View::JSON On Tue, Sep 7, 2010 at 10:42 AM, Mesdaq, Ali ames...@websense.commailto:ames

[Catalyst] Overriding Catalyst::View::TT WRAPPER

2010-11-29 Thread Mesdaq, Ali
Hey Everyone, Got a question about how I can override my application's TT wrapper. The closest thing I found was http://search.cpan.org/~abraxxa/Catalyst-View-TT-0.36/lib/Catalyst/View/TT.pm#CONFIGURATION . But what I am trying to do is basically have the wrapper turned off for a specific

RE: [Catalyst] Overriding Catalyst::View::TT WRAPPER

2010-11-30 Thread Mesdaq, Ali
found the easiest way is to have some logic in your wrapper: something like this: [% IF no_wrapper; content; ELSE; content WRAPPER site/html + site/layout; END; %] so $c-stash(no_wrapper = 1) and it won't be wrapped. -Sam On Mon, Nov 29, 2010 at 8:16 PM, Mesdaq, Ali ames

RE: [Catalyst] receiving form-elements in sequence...?

2010-12-27 Thread Mesdaq, Ali
Looks like there is no method to do this from what I can tell but if you really needed to do it this way you could probably just de-serialize it yourself by looking at the raw content with $c-req-body http://search.cpan.org/~bobtfish/Catalyst-Runtime-5.80029/lib/Catalyst/Request.pm#$req-%3Ebody

RE: [Catalyst] Ajax Problem.

2011-01-05 Thread Mesdaq, Ali
I recommend testing this using Firefox with Firebug enabled so you can watch the AJAX request and you can also print to the console to see what your response looks like to make sure it’s what you’re expecting console.log(xmlhttp.responseText);

RE: [Catalyst] What text editor to use?

2011-03-03 Thread Mesdaq, Ali
I have been using Komodo for years and its the best Perl editor I have found. Not just perl it understands everything I have thrown at it and has a lot of perl specific features. It also integrates into various source control management systems like svn, p4, git, etc. The only thing is that its

RE: [Catalyst] What text editor to use?

2011-03-03 Thread Mesdaq, Ali
: [Catalyst] What text editor to use? On 3/3/2011 9:24 AM, Cliff Green green-at-umdnj.edu |Catalyst/Allow to home| wrote: On 3/3/2011 9:27 AM, Mesdaq, Ali wrote: I have been using Komodo for years and its the best Perl editor I have found. I wondered if anyone was going to mention Komodo. FWIW

[Catalyst] AutoCrud suggestions

2011-04-01 Thread Mesdaq, Ali
I am looking for suggestions of packages that do autocrud'ing. I have a very basic schema with 1 main table that I want to edit more than add anything to it. Ideally I would like to be able to filter based on various values and sort by values as well. I saw a bunch of packages that seemed like

RE: [Catalyst] What text editor to use?

2011-04-13 Thread Mesdaq, Ali
Try the full version of Komodo. It understands tt files by default. It's been great to me the past few years. I can't imagine working in a heavy perl/catalyst environment without it. -Original Message- From: John M. Dlugosz [mailto:wxju46g...@snkmail.com] Sent: Wednesday, April 13,

RE: [Catalyst] long poll AJAX

2011-06-07 Thread Mesdaq, Ali
Aha! My configuration was on Apache so that's why I wasn't seeing the same behavior. Good to know the --fork option I always assumed it was forking. Thanks, ALI MESDAQ Sr. Security Researcher WEBSENSE, INC. ph: +1.858.320.9466 fax: +1.858.784.4466 www.websense.com Websense TRITONT For