Tags

Codeigniter Linux MYSQL PHP tips and tricks Windows
Showing posts with label tips and tricks. Show all posts
Showing posts with label tips and tricks. Show all posts

Sunday, July 22, 2012

Show Hidden Files and Folder

Read Indonesian Version Here
Have you ever had an empty flashdisk or some folder/file disappear when viewed using Windows Explorer, but when use "right-clicked --> Properties" there is a space that is used. Well .. if you are experiencing the same problem, do not format the flashdisk, because chances are your data is hidden.
I try to share a little knowledge to all to deal with this problem. OK just do like this.
  1. Open your Windows Explore, enter to Tools --> Folder Options --> View. Then Select  Hidden files and Folders chose Show Hidden files and Folders. click OK. If this can not display the file / folder, let's do the second way.
  2. The second way is using Command Prompt. This method can be an alternative.
    • First Open Commang Prompt from run ( Window + R ) then press CMD and Enter. When the window console is out, type the name of the drive to position your flashdisk example "H:" and press Enter.
    • When you have entered on the H drive, like the picture above type attrib -r -h -s /s /d and press Enter so that it becomes as follows.
    H:\>attrib -r -h -s /s /d 
    • Wait until the H:\>_ shown, and this the simple way to show hidden file / folder.
    • Change the "-" into "+" if you want to set hide back .

***Good Luck***

Tuesday, July 10, 2012

Upgrade Codeigniter Version 2.1.0 to 2.1.2

Read Indonesian version here
A few weeks ago codeigniter was release the newest version 2.1.2. Then how do we upgrade CodeIgniter version 2.1.0 or 2.1.1 to version 2.1.2. Here are step by step.
  1. Download newest version here
  2. Set your site into offline mode
  3. Create backup from your file/folder.
  4. Replace all file in folder "system" and replace file index.php, with new file has been downloaded (codeigniter versi 2.1.2)
    Note : If you have any custom file in this folder, copy and paste it from backup.
  5. Replace file mime.php located on the config/mime.php
  6. To get support IPv6, upgrade field IP_address to 45 characters for example.
    ALTER TABLE ci_sessions Ganti IP_address IP_address varchar (45) standar '0 'NOT NULL
  7. If you have codeigniter version 2.1.1 just go to step no. 3

Friday, May 18, 2012

Create Page Number Different Format In One File Ms. Word 2007

Read The Indonesian Version
In the past when I make a proposal regarding the final project. I was looking on the internet about how to create different page number format. The first numeral and the second decimal. Finally I found the article "Menyisipkan Format Nomor Halaman yang Berbeda dalam Satu File Word 2007" on Arihdya Caesar's Blog. Here are the steps by step that I do from the reference article
  1. Open your file that will be given page number
  2. Give the page with the roman numeral format on all pages "Insert->Page Number->Format Page Number", on Number Format choose the roman numeral then press OK


  3. Set Page Number depend on the Bottom of Page, actually up to you to put where depends on your taste
  4. Next specify on the number of pages will placed the decimal numbers. In this case I chose the sixth pages as the first of decimal.
  5. Place the kursor in front of the first letter, and then choose menu Page Layout->Breaks->Next Page


  6. For the next step do do step number 2, this time change Page Number Format to number 1, 2, 3,...
  7. And see the results on the sixth Page Number Format turn into decimal number.
  8. To set the "sixth" into "first" Double klick on "4"->select Page Number Format set Page Numbering->Start at fill with "1" and see the "6" turn into "1".
**GOOD LUCK**

Thursday, May 17, 2012

Create Table of Content Using Ms. Office 2007

Read The Indonesian Version

A table of contents, is a list of the parts of a book or document organized in the order in which the parts appear. The contents usually includes the titles or descriptions of the first-level headers, such as chapter titles in longer works, and often includes second-level or section titles within the chapters as well, and occasionally even third-level titles. The depth of detail in tables of contents depends on the length of the work, with longer works having less. The table of contents usually appears after the title page, copyright notices, and, in technical journals, the abstract; and before any lists of tables or figures, the foreword, and the preface. How do We make it?. We just practice how to make a clean table of contents using Tab and Ruler
  1. Prepared Ms. Office 2007
  2. Open Ms. Word, if you first use the Ms. Word, you must enable Ruler . Located at view menu and check the Ruler
  3. Next type all the points - points that will be placed in the table of contents, such as: Title of page, Abstract, Certification Sheet, Chapter I, Chapter II, etc.


  4. Block all typed list of contents and click on the ruler right on the far right position, or whatever you like. when you already have a tab mark. double click the sign.


  5. After the Tab Form appears, Change the settings as shown below


  6. When finished click OK, and use the tab to fill the page. place the cursor at the position at the end of every sentence, press Tab on the keyboard and automatically point will be formed by itself, and so will type at page where the points are located.
**Good luck**
    Ref :
    Wikipedia

    Sunday, May 13, 2012

    Install MySQL Workbench on Ubuntu 12.04

    Read the Inodesian Version

    Currently there is no pre-built .deb file or repo available to install MySQL Workbench on Ubuntu 12.04.  One will probably appear soon after official release of 12.04 but at the moment it is still in beta so there are a few extra steps to get it working.

    NOTE: Once Ubuntu 12.04 moves out of beta there will probably be a better way of doing this so please check the official MySQL Workbench download page and the official 12.04 repos before attempting this.

    First of all you will need to download the latest MySQL Workbench from here.

    Next you must download a .deb file for libzip1 as it is not available in the 12.04 repos.

    for other architectures go here

    After downloading just open them with the software centre and click install.

    *NEW: The libmysqlclient16 package was removed from the 12.04 repos so you will need to download the old deb files for it:



     Next open a terminal and install the following packages:

    sudo apt-get install libzip1 python-paramiko python-pysqlite2 libctemplate0 libgtkmm-2.4-1c2a libmysqlclient16

    Then cd to the directory where you downloaded the deb file and run:

    sudo dpkg -i mysql-workbench-gpl-5.2.38-1ubu1104-i386.deb

    And that should be it, enjoy!

    Ref :
    setupguides

    Friday, May 11, 2012

    Login two user account using firefox

    When we have several different accounts of email, twitter, facebook and etc. And We wanna login at the same time with firefox. We must create a new user profile in mozila firefox. There are two ways to do it
    1. Using the manual method with RUN
    2. Do like this.
      • Click Start Menu => Select Run or use the shortcut "CTRL + R"
      • Type "firefox.exe -p -no-remote" And then click "OK", so it will open new dialog box "Firefox -Choose User Profile".
      • Next click Create Profile, follow the steps to finish.
      • If you have finish create the user profile, you can use that to login with another accounts.
      • To add another Firefox user profile, simply repeat the steps above, depending on how many users Firefox do you want.
      • That's the way login with 2 diferrent account at the same time Using Firefox. With this we really have 2 firefox with a different setting. Automatic the new profile is using the default setting
      • Original link : calovision


    3. Using Multifox
      • Multifox is a Firefox extension that lets user log on to the web using different account at the same time.
      • Click this link to get multifox

    Thursday, May 10, 2012

    Set Post Align Justify Automatically

    In the standard template of blogger. Post that we'll make automatic align left, to make posts align Justify we have to set it every time we make a new post. It's quite complicated because it takes time. Well to make a post on your blog automatic align justify, simply by adding a CSS trick in the HTML template of your blog.

    Follow the tips.

    First let me tell, themes that I use is a standard blogger themes, then Find the code below.
    .post-body { line-height: 1.4; position: relative; }
    and then add the following code.
    text-align: justify;
    so that becomes like this
    .post-body {line-height: 1.4;position: relative;text-align: justify;}
    *** Good Luck ***

    Wednesday, May 9, 2012

    Upgrade IDMcc Add Ons for Mozila Firefox

    Read The Indonesian Version
    Latest update of Mozilla Firefox has many additional features, but this update makes some addons not support. For example, Internet Download Manager (IDM CC) is an extension that allows the IDM to auto capture streaming video when the play button is clicked or audio streaming when the play button is clicked. To re-enable this feature on the new version of mozilla firefox. IDM CC is needed upgrade to the latest version. At least that's what I did after reading the article in Largest Indonesian Community (Kaskus), so my Internet Download Manager is running normally again.
    1. To upgrade click the following link idmmzcc.xpi to download the "xpi" file
    2. To install, start firefox and open the “xpi” file: File>Open File
    3. After that follow the process as we're installing on Mozilla Firefox Add Ons.
    ** I Hope This Article Useful **