IP Bastola

Professional PHP Web Developer, Open Source Enthusiast, CodeIgniter Evangelist

Follow me on TwitterRSS Feeds

  • Home
  • skills & bio
  • my works
  • wordpress

    How to solve wordpress media upload issue: Error saving media...

    Recently, when i upgraded my wordpress blog to the recent version, I had a problem uploading new media files. I tried to simple upload as well as flash uploader, it keep saying "Error saving media attachment."  This was a critical issue that needed to be resolved. After googling for some moments on how to resolve this, I found this link from wordpress support forum and did the following which worked perfectly for ...
    More
wordpress

How to solve wordpress media upload issue: Error saving media attachment

Recently, when i upgraded my wordpress blog to the recent version, I had a problem uploading new media files. I tried to simple upload as well as flash uploader, it keep saying “Error saving media attachment.”  This was a critical issue that needed to be resolved.

After googling for some moments on how to resolve this, I found this link from wordpress support forum and did the following which worked perfectly for me:

  • Log in to wp-admin
  • Settings > Media (in older version this might be Settings > Msc)
  • Under uploading files there is an option “Store uploads in this folder“. Update this value by More >

Getting Latitude and Longitude from a Google Map

Google map in a web application is really a wonderful asset and it has a wide range of application in web development. A business house, for example, can have its own website and wants to put his contact details there. If one puts a Google map there, this is certainly a plus. Visual information is more impressive than textual information, so does the Google map. As a web developer, we come across varieties of web applications depending on the client requirements. For this article, I am trying to focus on when and where we need to extract latitudes and longitudes from More >

CodeIgniter: Removing index.php

This is one way which perfectly worked to remove index.php from CI URLs for me. I found this on this link.

1.  .htaccess file

create a .htaccess file and put this in codeigniter root folder.

2. write the following code in this file:

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /ci

#Removes access to the system folder by users.

#Additionally this will allow you to create a System.php controller,

#previously this would not have been possible.

#‘system’ can be replaced if you have renamed your system folder.

RewriteCond %{REQUEST_URI} ^system.*

RewriteRule ^(.*)$ /index.php/$1 [L]

#Checks to see if the user is attempting to access a valid file,

#such as an image or css document, if this More >

sending/receiving files from windows XP/Vista via bluetooth

This Bluetooth trick is an old one but this is for people who still do not know. Most of you people are searching for software for your bluetooth devices over the Internet. Don’t worry there is a hidden blue tooth software in Windows XP and Vista. Follow the below mentioned method for this Blue tooth trick.

  1. Start -> Run -> fsquirt
  2. This will open a window with text Welcome to Bluetooth File Transfer
  3. Now just select whether you want to send or receive any file and you are done. Wizard.

Ext Js, How to Change DatePicker Size

Here is the snippet of the code which shows how to change the datepicker’s size to your requirement.

new Ext.DatePicker({
  // ----
  listeners:{
    render: function(picker) {
      // sizing the date picker
      var elContainer = picker.el;
      var elTable = picker.el.down('table');
      elContainer.setWidth('98.5%');
      elTable.setWidth('100%');
      // or you can do following
      // can be both percentage or pixel value specified in number
      //picker.el.setSize({'height': 194, 'width':'98.5%'});
      //picker.el.dom.children[0].style.width = '100%'; // setting table width
    }
  }
});

If you set height and width of both datepicker’s container div and table to percentage, then this datepicker will fit into any resolution. If you want to fixed sized datepicker, then More >

12345»
  • Who am I?

    IP Bastola

    Thank you for visiting. I am a 27 year old professional PHP web developer, an open source enthusiast and a CodeIgniter evangelist. View My Further Details

    You can also get in touch with me via:

    Email Skype LinkedIn Twitter Facebook ​ip bastola
    Thank you.

    • Recent comments
    • Popular posts
    • Archives
    • Tags
    • Categories
    • articles (1)
    • CodeIgniter (1)
    • Ext Js (1)
    • galleries (2)
    • google map (1)
    • have some fun (14)
    • solve it (1)
    • tips & tricks (2)
    best photography bluetooth in xp/vista bluetooth tricks brainteaser child's pray CI Tricks CodeIgniter:Removing index.php datepicker size don't disturb Ext Js fish fool funny funny article funny cartoon funny conversation gentle sachin google map interesting jokes kids sleeping laugh media upload miss arabia mother's day office exercise optical illusion resignation letter self understood solve it student's hobby wordpress
    • September 2010 (1)
    • February 2010 (1)
    • November 2009 (1)
    • September 2009 (2)
    • August 2009 (1)
    • July 2009 (2)
    • June 2009 (4)
    • May 2009 (10)
    • April 2009 (1)
    • CodeIgniter: Removing index.php (4)
    • Ext Js, How to Change DatePicker Size (2)
    • Getting Latitude and Longitude from a Google Map (1)
    • How to solve wordpress media upload issue: Error saving media attachment (1)
    • Who owns the fish? (0)
    • catybopycex: us licensed pharmacy [url=http://www.youtube.com/watch?v=s_FJmXNDEwI#924] z pak sinus infection...
    • ykindskrows: logan professional pharmacy robbery matt...
    • bkindozrows: lawsuits against cvs pharmacy...
    • Bishu: just testing
    • Bishu: Hello dai
  • Twit Twit

    Loading tweets...
    Follow me on Twitter!
    • Recent Articles

      • How to solve wordpress media upload issue: Error saving media attachment
      • Getting Latitude and Longitude from a Google Map
      • CodeIgniter: Removing index.php
      • sending/receiving files from windows XP/Vista via bluetooth
      • Ext Js, How to Change DatePicker Size
    • Tags Cloud

      best photography bluetooth in xp/vista bluetooth tricks brainteaser child's pray CI Tricks CodeIgniter:Removing index.php datepicker size don't disturb Ext Js fish fool funny funny article funny cartoon funny conversation gentle sachin google map interesting jokes kids sleeping laugh media upload miss arabia mother's day office exercise optical illusion resignation letter self understood solve it student's hobby wordpress
I have no special talent. I am only passionately curious ... #Einstein