I was happy with my own mini php framework integrated with composer until laravel 5.1 come out on display. I've been digging laravel for around 2 weeks and was able to create a small blog. More I dig more I get but not all I understand. I guess I've just got the surface. But Laravel is great, thats why I've decided to give up my small framework (so to say).
Past few days I was trying to separate my project files [project, sub-folders as asset, Controllers, template, view] including route.php files but couldn't achieve. Can anyone help me how to do that? does laravel service->package is the answer?
One more thing to mention here: Out of the box when I run laravel it took ~1.6001 seconds to load the welcome page. Then I tried [php artisan optimize] then it came down to ~0.8000 seconds.
Any kind of help will ventilate me from my asphyxic state.
[I am using laravel in wamp 2.5 - computer hardware: i7 4770k, 8gb ram]
Related
Hi I'm sure i am doing something dumb! Fairly new to django and pycharm. I am learning by writing two projects: the tango with django one and another to test ideas and learning (about old girlfriends!).
I am working on the rango project. I've scheme-migrated, syncdb, migrate, debugged and no errors. But when i run server, the admin page shows the other project only. I have not worked on it today.
As far as I can tell I have all the right code including registering the models and admin.autodiscover plus i have cleared the cache.
SO the question is: which projects does it show on the admin page - all? How does it know?
Final odd point the windows circle on the site admin tab is still going round as though its looking for something else.
Many thanks for help. I haven't pasted any code as not sure what would be helpful.
I eventually realized that the admin server was still running. As laptops don't have a ctrl break key (and i couldn't find my Samsung mapping) i killed the server using task manager and all was fine.
i have 2 servers with the exact same moodle installation and configuration.
One server is 4 cores and 16 ram and the other is 8 cores and 32 ram.
The 4x16 editor in moodle loads in 1 minute and the 8x32 loads in 6 or 7 minutes and its frustrating.
I already review the php.ini to see the differences between servers and are minimal (not critical to this matter).
I dont know what else i can do, does anybody knows what should i look out?
Thanks!
I have moodle 2.5 and both are CentOS
The editor in Moodle is TinyMCE
http://docs.moodle.org/25/en/Text_editor
I'm not sure why its slow though. You might want to ask the question on the TinyMCE forum?
http://www.tinymce.com/forum/
Also found this on the Moodle forums, so it might be a new issue
https://moodle.org/mod/forum/discuss.php?d=232089
There is an alternative editor in the plugins, maybe test that, see if Moodle is still slow.
https://moodle.org/plugins/browse.php?list=category&id=23
Newbie to site and MVC/.net web development.
I have searched hi and low and although there are some threads about this issue, I cannot seem to get a solution/direct answer ... hopefully someone here can assist.
I am using VS2010/MVC3/C#/.Net4/IIS7 to develop an internet app. making use of Open Office 3.4.1 to create PDF's from Docx documents.
I used this approach: http://tinyway.wordpress.com/2011/03/30/how-to-convert-office-documents-to-pdf-using-open-office-in-c/
All works fine on my local development machine, however as soon as I publish on the test server ... the bootstrap call (line 10) does not return (simply hangs for lack of better description)
Hopefully someone here can help.
Thanks, Eugene
I guess you have installed Open Office on your development machine. You have to do the same on your web server making sure you're using the same Open Office version.
Your application must reference these assemblies:
cli_basetypes.dll
cli_cppuhelper.dll
cli_oootypes.dll
cli_ure.dll
cli_uretypes.dll
and they all have to be set "Copy Local" to false.
You won't deploy these dlls cause they're going to be loaded from the GAC.
If your IIS is running on a x64 OS you might need to:
"Enable 32-Bit Applications" = True
This article might help you.
If you want to dig deeper.
I have a project in my localhost, already running, after modifying the php.ini of my XAMPP server [running on Windows 7] (adding: extension=php-intl.dll).
But when i upload this project to my GoDaddy hosting, it doesn´t works and get the following error:
Fatal error: Class 'Locale' not found in /home/content/41/9674641/html/library/zend.2.0.4/Zend/I18n/Translator/Translator.php on line 228
GoDaddy hosting details:
Php version 5.3
Operating system: Linux
i386-redhat-linux-gnu
Zend Framework details:
Zend Library: 2.0.4
I´ve tried what they say on the following links:
http://support.godaddy.com/help/article/1085/can-i-add-a-php-initialization-file-to-my-hosting-account?locale=en
http://support.godaddy.com/help/article/5647/why-isnt-my-phpini-file-taking-effect?locale=en&ci=46061
Also, i´ve called to 24/7 goDaddy support and they suggested me to create a php5.ini file in the root directory, then, they told me to stop all web services (Cpanel/Stats & Monitors/System Processes/end web), but they didn´t told me what do i need to include in the php5.ini file.
I was reading some links and, as my localhost is a windows one, adding the extension=php-intl.dll to the php.ini file worked. So i´ve tried to include in my godaddy linux server: extension=php-intl.so but doesn´t works (neither extension=php-intl.dll).
The problem with the goDaddy hosting began when i started using ZF2 FORMs.
Updates:
1) I´ve got access to the php5.ini of the goDaddy server (i have made a copy on the root of my hosting) using PUTTY: cp /web/conf/php5.ini /var/chroot/home/content/41/9674641/html
Then i have read it and i could not find the "intl" extension, instead of this, i only could find:
; Windows Extensions
; Note that ODBC support is built in, so no dll is needed for it.
; Note that many DLL files are located in the extensions/ (PHP 4) ext/ (PHP 5)
; extension folders as well as the separate PECL DLL download (PHP 5).
; Be sure to appropriately set the extension_dir directive.
;extension=php_mbstring.dll
;extension=php_bz2.dll
;extension=php_curl.dll
;extension=php_dba.dll
;extension=php_dbase.dll
;extension=php_exif.dll
;extension=php_fdf.dll
;extension=php_filepro.dll
;extension=php_gd2.dll
;extension=php_gettext.dll
;extension=php_ifx.dll
;extension=php_imap.dll
;extension=php_interbase.dll
;extension=php_ldap.dll
;extension=php_mcrypt.dll
;extension=php_mhash.dll
;extension=php_mime_magic.dll
;extension=php_ming.dll
;extension=php_mssql.dll
;extension=php_msql.dll
;extension=php_mysql.dll
;extension=php_oci8.dll
;extension=php_openssl.dll
;extension=php_oracle.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll
;extension=php_snmp.dll
;extension=php_sockets.dll
;extension=php_sqlite.dll
;extension=php_sybase_ct.dll
;extension=php_tidy.dll
;extension=php_xmlrpc.dll
;extension=php_xsl.dll
2) goDaddy response to my formal support request (ticket):
Thank you for contacting Online Support
I understand you are wanting to get Internationalization extension on
to your hosting account. At this time these are not supported in our
systems at this time. We are going to review this with our developers
to more information. You may receive an email us down the road with
addition information about this.
Please let us know if we can assist you in any other way.
Now i'm thinking that i have two problems:
A) Include the line to enable the extension (i don't know how):
Maybe could be:
extension_dir=/var/chroot/home/content/41/9674641/html/library/extensions/php-intl/usr/lib64/php/modules
extension="intl.so"
B) Include the extension in some location inside my hosting (but i don´t know how):
Maybe i could put the extension files inside: /var/chroot/home/content/41/9674641/html/library/extensions/php-intl
Also, i don't know where to acquire the extension files
C) Is there any known update on ZF2 (skeleton, library ..) that solve this issue ?
Please, i need help as soon as possible.
You can manage PHP modules by using the "Change PHP version" feature of the cPanel interface. Select any version other than "native" and a list of checkboxes will appear.
http://support.godaddy.com/help/article/3937/viewing-or-changing-your-php-language-version?pc_split_value=2
Of course, their support might not immediately mention this solution, which should have been in their knowledge base in the first place.
I have a timer script (see it working standalone at http://pointy-end.com/timer/timer.php)
that I have copy/pasted into customloop.php. It works fine when the post is previewed, but when published it's no longer possible to select a time (3,5,10 minutes) to kickstart it.
I'm a newbie, and I can't figure out why this would work in preview but not when published.
I've disabled all my plugins (except for Single Post Template, Jetpack by WordPress.com,PHP Code for posts & WP Super Cache.
You can see it NOT working at http://pointy-end.com/image-writing-prompt-may-24/
I'd REALLY appreciate some help. Thanks guys, Cheryl