Sunday, December 30, 2012

We can't copy a single file to multiple destination with just a single cp command. But we have a workaround.
If we want to copy a single file to multiple destination folders, then just follow the below command:

Later we found that we have install jre for 64bit on a windows7. So, OpenProj couldn't find the java jre path. We have found that OpenProj runs on 32bit machine. So, we need to install java jre for 32 bit machine.
To edit the path, we need to go to the below path to edit OpenProj configuration file.

go to this path: C:\Users\tahsin.hasan\AppData\Roaming\OpenProj\{13702021-43FB-480C-912F-D9B74A538288}

My Books:

We will follow the below steps to upgrade our svn version on mac machine.

In Terminal, type "svn --version" to find out what version you currently have.

Install macports and using macports install svn. this will install the latest svn into your system.

Got to your terminal and check your $PATH by typing "echo $PATH". If you don't see /opt/subversion/bin in there, make sure you add it by typing export PATH=/opt/subversion/bin:$PATH. If it DOES exist and appears AFTER /usr/bin, then you may need to remove an older copy of svn that came installed on OS X. To do so, go to /usr/bin and remove all files starting with svn. This isn't an exact science but it should do the trick.

Make sure you reload your .profile first by typing
. ./.profile* or you can close the terminal and reopen again. also you can type source .profile. this will also reload profile.

Type "svn --version". You should see that you have the newest version installed!

My Books:

Saturday, December 29, 2012

Apache mpm worker is a multi-preprocessing module of apache. By default Apache runs with mpm prefork. If you install worker type of multiprocessor, then it will uninstall the prefork module from the system.
By installing mpm worker process, it will uninstall the php5 process for apache. you need to use fastcgi for working with worker thread.
To install worker thread, type the following commands:

My Books:

Friday, December 28, 2012

Follow these steps to integrate XCode 3.x with Corona SDK. NOTE: Not suitable for XCode4.0

1. Launch XCode, Create a new project, “File” > “New Project”

2. Template for project should be “Other” > “External Build System” and give the project a name and save it.

3. Under “Targets” in the left hand “Groups & Files” window in the main xcode editing window, then double click “Your Projects Name”

4. Remove all the “Build Settings”, dont know what they did but removing them didnt hurt

5. In “Build Tool” enter the path to either the “simulator” link or the “Corona Terminal” app just so you know, if you put the Corona folder in your Applications folder the the paths are as follows “/Applications/CoronaSDK/Corona Terminal” .

6. Under “Arguments” enter “$(PROJECT_DIR)”, this passes the location of the folder, what Corona looks for, to the simulator so it launches and builds the app without asking for the location of the project folder

7. Right click on the top of the main xcode window, the toolbar, and select “Customize Toolbar” and add the “Build” icon to the bar and click “Done”

8. Clicking the “Build” icon will now launch your application in Corona

9. If the corona simulator is already on and you save changes to the main.lua file, the simulator will prompt you to reload the lua file.

10. The project directory must contain a file that goes by the name of ‘main.lua’, this file can link itself to other modules.

My Books:

Saturday, December 22, 2012

This value (default 1440 seconds) defines how long an unused PHP session will be kept alive. For example: A user logs in, browses through your application or web site, for hours, for days. No problem. As long as the time between his clicks never exceed 1440 seconds. It's a timeout value.
PHP's session garbage collector runs with a probability defined by session.gc_probability divided by session.gc_divisor. By default this is 1/100, which means that above timeout value is checked with a probability of 1 in 100.
session.cookie_lifetime
This value (default 0, which means until the browser's next restart) defines how long (in seconds) a session cookie will live. Sounds similar to session.gc_maxlifetime, but it's a completely different approach. This value indirectly defines the "absolute" maximum lifetime of a session, whether the user is active or not. If this value is set to 60, every session ends after an hour a minute.

Sunday, December 2, 2012

I am using Xampp. And Apache runs on port 80. When I install Skype or some other HTTP services, then it also runs on the same port. Hence, Apache can't run on this machine. So, I need to check which port is running on that port. To check this, need to do the followings:

I have configured the logrotate file. And I have noticed that for some reason, my logrotate is not working. When I googled, I found that if you set the size value and the period together, they won't work.
The size and daily option don't work together in logrotate. So, I removed the period option and left the size option only, then it worked like a charm.

My Books:

We use feedback or rating system in our site for different purposes. We use http://www.greepit.com/Opineo/ jquery plugin for our feedback system. We follow the below steps to integrate the feedback plugin in our mobile site:

1. First we download the files from http://www.greepit.com/Opineo/admin-form.html. There will be images, js, style folders and demo.php and result.php files.

2. For this plugin, we use jquery-1.4.2.js. We place this file and opineo.js in the templates/[your_module_name]/html/scripts folder.

3. In the default.php the html code describes three different options to display the feedback system.

You will see rest of the steps with images on the Joomla Mobile Development Beginners Guide.

My Books:

To design on the joomla Mobile menu, we first need to understand the template file structure of them. Under the template folder, we will see four different folders.These are the template files that are created due to installation of mobile joomla. These template file structure are same as other joomla template file structure.
You will see rest of the steps with images on the Joomla Mobile Development Beginners Guide.

My Books:

We follow the step by step procedure to create a menu item for mobile device.

1. In the admin panel, we will go to Menus->Menu Manager->Add New Menu.

2. This will bring new Menu creation page. We will enter title, menu type and description.

3. Then we add menu items under our newly created menu. We can add many items under it. But we will add one menu item here. We will go to Menus-> Mobile Menu->Add New Menu Item.

4. Now we will see the Menu Item creation page. Here we are going to create a category list menu item. We choose the item type as category list, menu title to Mobile Category. We left others as they are. We will discuss about the options later in the chapter.

You will see rest of the steps with images on the Joomla Mobile Development Beginners Guide.

My Books:

User agent switcher gives us the opportunity to switch between different user agents. To view the appearance of our site in a mobile device we will use this firefox addons. Let’s see how we can implement user agent switcher to meet up our need:

1. First we need to go to this url, https://addons.mozilla.org/en-US/firefox/addon/user-agent-switcher/, to download the addons.

2. After clicking the download button, the firefox addon installation window will open. We will click the install button. When the installation will be complete, we need to restart our browser.

You will see rest of the steps with images on the Joomla Mobile Development Beginners Guide.