IP Bastola
Professional PHP Web Developer, Open Source Enthusiast, CodeIgniter Evangelist
Professional PHP Web Developer, Open Source Enthusiast, CodeIgniter Evangelist
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:
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 >
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 >
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.
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 >