Wednesday, August 6, 2014

Free Download ExtJS 4.2.2

If you are an ExtJs Developer, you should know that ExtJs v4.2.2 only available for subscriber-only release. So if you wanna get that but you're not support subscriber then, here's the trick:

Download the extjs 4.2.2 full documentation:
http://cdn.sencha.com/downloads/docs/extjs-docs-4.2.2.zip
then extjs v4.2.2 sources are in: extjs-docs-4.2.2\extjs-build

See You.. :D

Monday, August 4, 2014

Appcelerator/Titanium Error Message "failed to create java virtual machine"

Just now i wanna try to develop test application using Appcelerator/Titanium Framework, after installing then running, i get error message when try to run the IDE with message "failed to create java virtual machine".

If you get same error like me, you can fix that with bellow changes:
- Open "TitaniumStudio.ini" in Appcelerator/Titanium installation directory.
- Make changes as below:
Change:
launcher.XXMaxPermSize to 128m
So it will be like this:
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20140116-2212
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-name
Titanium Studio
-vmargs
-Xms128m
-Xmx1024m
-XX:MaxPermSize=128m
-Xverify:none
-Declipse.p2.unsignedPolicy=allow
-Declipse.log.size.max=10000
-Declipse.log.backup.max=5
-Dfile.encoding=UTF-8
-Djava.awt.headless=true
It Should run normally now.. :D

Wednesday, July 23, 2014

Multilevel Sub Menu for Twitter Bootstrap Project

As you may know, with twitter bootstrap release version 3.x, there is no support Multilevel Sub Menu anymore in navbar and dropdown. So as an alternative which is better than you tweak twitter bootstrap by your hand, you can use "SmartMenus for JQuery" which can use side by side with twitter bootstrap and it is Responsive and also Free too.
Check out SmartMenus in it homepage http://www.smartmenus.org/





Tuesday, June 10, 2014

Install PHP-FPM 5.4 in Ubuntu 12.04.4 + Nginx

For the startup i'm following https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04 tutorial to installing LEMP (Linux, nginx, MySQL, PHP) in my VPS. The server Run perfectly. But then for my project i used Laravel 4.2 which required PHP 5.4 for minimal requirement. So then i upgrade the PHP by following http://www.dev-metal.com/how-to-install-latest-php-5-4-x-on-ubuntu-12-04-lts-precise-pangolin/:
sudo apt-get update
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:ondrej/php5-oldstable
sudo apt-get update
sudo apt-get install php5-fpm
After that when i try to view page that contain php code, the server going error.
I view Nginx error from "/var/log/nginx/error.log"
2014/06/10 06:37:18 [crit] 481#0: *1 connect() to unix:/var/run/php5-fpm.sock:", host: "yourdomain.com"

Then found some solution from http://www.queryadmin.com/921/connect-unix-var-run-php5-fpm-sock-failed/:
Edit the pool file "/etc/php5/fpm/pool.d/www.conf" and change:
listen = /var/run/php5-fpm.sock
to this:
listen = 127.0.0.1:9000
Edit the Nginx vHost file "/etc/nginx/sites-available/default" and change:
location ~ \.php$
{
    ...
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    ...
}
to this:
location ~ \.php$
{
    ...
    fastcgi_pass 127.0.0.1:9000;
    ...
}
** If you wrote the fastcgi_pass on /etc/nginx/fastcgi_params file, edit it too.

Restart PHP5-FPM service:
/etc/init.d/php5-fpm restart
Restart Nginx service:
/etc/init.d/nginx restart

That's it, you may solved the issue now. Have Fun.

Friday, June 6, 2014

Redirect Loop when PhpMyAdmin as SubFolder in Laravel Public Directory

If you use laravel in a hosting then you add PhpMyAdmin as subfolder in Laravel Public Directory, you may get error message as seen in image below:


For the solution, you can do one of the following guide:
1. Visit PhpMyAdmin with:
 http://yourdomain.com/phpmyadmin/index.php 
or
2. Open .htaccess file in laravel public folder, then comment out/remove line below:
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301] <-- Comment Out or Remove this line

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
That's it, you can access PhpMyAdmin normally.