Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Opening and Downloading Project

[SOLVED] Opening and Downloading Project 23 Aug 2012 16:26 #3270

  • madaura
  • madaura's Avatar
  • Offline
  • Junior Member
  • Posts: 35
  • Thank you received: 3
  • Karma: 0
Hello,

There is an issue that is happening each time I open the browser (firefox), go to the Cook site and click the "Get Started" tab: after two, three or more times trying to open my project, it finally opens, Is there any consideration that I need to follow in order to avoid this issue?

In the other hand, something similar happen when I try to download my project. The pop up window build the project and shows the Download button, but when I click it, nothing happens, so I need to clear the browser cache and try again in order to have the chance to download the component... any suggestions?

Thanks!
Last Edit: 03 Oct 2012 13:31 by admin.
The administrator has disabled public write access.

Re: Opening and Downloading Project 24 Aug 2012 08:35 #3284

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Strange. I guess your project is heavy ? No ?

Try to open only one project at once.
When you clear your session, it has the effect to close the tabs (empty builder), so it helps to load.
I mean, once the builder is opened, then you open a project, and it load in memory in a second step. It helps for big projects.

My JS source is what is is, optimized at maximum, but it still require a lot of memory.

The builder is not limited in size, but the limit you can encounter is the memory limit and the time to process the component (120 seconds), wich is huge on a dedicated server. So, I cannot help you more.

Some users splitted their projects in different components. It is a possibility.

When you download it, it is the same, for security reasons, the download is outputed (no direct access), and here again ther is a memory limit.
Should it enlarge it a little bit ? (actually, I didn't remember)
It is not a big deal enlarging the accepted memory for ONLY this task execution (download)

Is it answering to your question ?
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Opening and Downloading Project 24 Aug 2012 12:53 #3287

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
I have one very large project that is over 12,000 points it always takes me up a long time to get it to open but eventually it loads... a lot of opens and close (even with a clean cache) but I have not really worried about it knowing that the project was HUGE in relation to most other users.

And Yes I have split the project as suggested in to a number of smaller components - I guess thats probably why i never worried about the long load time (usually only open it for reference)

I have not experienced any download issues for at least 2-3 months. From memory at that time i did have a very long / complex collection layout filter

Although after thinking about it i too have a number of projects that need to be opend and closed up to 3 times before they will load in the builder (dont think they get the full 120 seconds)

Splitting the Project

- yes you need to recreate tables layouts but

- if the layout only uses 3 fields from the main component you only have to create those three fields and wizard based fileds such as publish and access in the new table... or cut and paste the complete table structure in the admin side tables file
- delete the relevant create table and delete table statements in the project2 install.mysql file...
- some search and replace "newtablename" with "oldtablename" is needed as well

- there is a post on here about splitting the project that explains it better i will try to find and post it

Not alot of work to split but there is a few things to remember about maintaining split projects
- every time your second project is regenerated and downloaded the above edits need to be completed again unless you merge the two versions using a file comparison program
- if you change project1 such as create a new field, change access levels or add to the language ini file in project1 => you also need to change it in project2
Last Edit: 24 Aug 2012 13:33 by BTB300.
The administrator has disabled public write access.

Re: Opening and Downloading Project 24 Aug 2012 13:44 #3288

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
Just to Add - all redirects between projects need to include the following

JRequest::setVar( 'com' , 'componentname');

Admin???
will we be able to define (within cook) the JRequest::setVar( 'com' , 'componentname');
as part of any redirect in version 2?
The administrator has disabled public write access.

Re: Opening and Downloading Project 25 Aug 2012 17:36 #3294

  • madaura
  • madaura's Avatar
  • Offline
  • Junior Member
  • Posts: 35
  • Thank you received: 3
  • Karma: 0
Well I don't have any data to compare my project with to say is it's heavy, maybe it's..

Now, splitting the project, it can be a great idea but by now I feel a little lost! I'm trying to figure out how Cook works, I'd like to find more info, code examples about how integrate custom code (php, mysql queries, Jquery, etc) with Cook.

If I not understand how Cook works, any further idea will be very complex to try to integrate with this great Joomla extension.

I'm really glad to have found this excellent tool, I already have the basic structure of my project, I mean tables, foreign keys, forms, views and grid layouts and it works very well in my own site, but like I comment above, I'd like to have more info about the way Cook works in order to add custom logic that at this moment my component lacks..

Thank you in advance for your help on this issue!
The administrator has disabled public write access.

Re: Opening and Downloading Project 27 Aug 2012 07:58 #3307

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Well, it is not a big deal, but it is not so easy, you must in facts understand well how your component is working.

To BTB300, not only the redirections are involved.

-> Models, Helpers, Classes and tables requirement files
-> SQL queries constructions (JOINS)
-> Requirements checks (to avoid issues if one of the required component is not installed, clean code)
-> Foreing var calls wich must comply with the cross components SQL calls
-> Redirections

So, no for the moment it is difficult to integrate in sandbox.

I personally have done it many times to extend a previous application in a bigger system (each component deals for a particular porpose). It is possible with a bit of knowledge.
For instance, when you create modules and plugins, you have to understand this.
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Opening and Downloading Project 19 Sep 2012 12:24 #3772

  • BTB300
  • BTB300's Avatar
  • Offline
  • Moderator
  • Posts: 415
  • Thank you received: 132
  • Karma: 47
admin wrote:
The builder is not limited in size, but the limit you can encounter is the memory limit and the time to process the component (120 seconds), wich is huge on a dedicated server.

Hi Admin,
can you please explain the memory limit
are you talking about a memory limit on your server OR that the client pc is reaching a memory limit?

The reason why i ask is that
I know my Firefox updated recently and unsure if the update is preventing me from loading a large project that i could open/build/download a few months back

- you mention 120 seconds but i am only seeing the loading / scroll bar for about 15 to 20 seconds on some of my larger projects (and i know that i have been able to load these larger projects in the past)

- I am unable to load one of them regardless of how many times i try to open it (i need to open it to finish splitting it into smaller components)
- project name = not loading (once again name changed to protect the clients real project / component name)
- and yes its huge 12,000+ points but it did load well under the 120 seconds in the past...

- have done the usual cleared cache,cookies, restarted computer...

- i have tried to adjust some of the firefox timeouts and memory limits with no success

- Could you please confirm that it at least opens locally for you please

Thanks in advance
The administrator has disabled public write access.
Time to create page: 0.092 seconds

Get Started