How to change Magento default Logo

By default, Magento themes have a logo picture or a text at the top of the page, which is also a link to the home page of the store. To Remove/Replace with your own picture or logo, using your Magento Admin Panel. Go to System > Configuration, click on Design from the menu on the left and then choose Header from the options that pop out in the middle of the screen.

There are three fields that you can change (Logo Image Src, Logo Image Alt, Welcome Text): 

The first field (Logo Image Src) shows the path to the picture for the particular theme. Here, for example, it would be written as “image/logo.gif“, with the full path for the default theme being:

skin/frontend/base/default/images/logo.gif or for some other theme that you have installed it would be slightly different:

skin/frontend/default/<THEME-NAME>/images (with “<THEME-NAME>” replaced by the name of the particular theme).

The second field (Logo Image Alt) shows you the text that is displayed when there is no image or, if there is an image, the text that is shown when you hover the mouse pointer over it.

If you want to remove the Magento logo and text just delete both fields and leave them blank. You can also put your own picture or logo instead of the default one.

How to add date picker to Magento admin backend page

Step 1.
Edit system.xml, create the new field as follows:
1. &lt”my_date translate=”label comment”>
2. <label>Expire On</label>
3. <frontend_type>text</frontend_type> <!– Set the frontend type as Text –>
4. <frontend_model>MODULE_NAME/adminhtml_system_config_date</frontend_model> <!– Specify our custom model –>
5. <sort_order>4</sort_order>
6. <show_in_default>1</show_in_default>
7. <show_in_website>1</show_in_website>
8. <show_in_store>1</show_in_store>
9. <comment>Set the expiry date for the Feature Tour</comment>
10.</my_date>

Step 2.
Create the new model file at the path: app\code\local\<NAMESPACE>\<MODULE>\Block\Adminhtml\System\Config\Date.php

<?php
	class Arvtour_Tour_Block_Adminhtml_System_Config_Date extends Mage_Adminhtml_Block_System_Config_Form_Field
{
	protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element){
             $date = new Varien_Data_Form_Element_Date;
             $format = Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT);

             $data = array(
                          'name'=> $element->getName(),
                          'html_id'=> $element->getId(),
                          'image'=> $this->getSkinUrl('images/grid-cal.gif'),);
                          
                          $date->setData($data);
                          $date->setValue($element->getValue(), $format);
                          $date->setFormat(Mage::app()->getLocale()->getDateFormat(Mage_Core_Model_Locale::FORMAT_TYPE_SHORT));
                          $date->setForm($element->getForm());
	                  return $date->getElementHtml();
	}
}

Samsung Debuts Gear S Smartwatch With 3G, No Smartphone Needed

LGGWatch
Samsung is at it again. Just six months after it announced its second-generation smartwatch — and just two since it launched its first Android Wear model — the company has a new wrist wearable: the Gear S.

This time there’s an extra twist, though: It’s the first Samsung smartwatch with built-in 3G connectivity.

The Samsung Gear S has the ability to connect to 3G and 2G networks on its own, meaning users won’t need to keep it wirelessly tethered to a smartphone in order to get notifications or make calls. The watch does include Wi-Fi and Bluetooth connectivity, though, so a user has the option of still pairing it with a smartphone some or all of the time. It can also go solo and stay connected when the situation calls for it (say, when exercising).

The display on the Gear S is a 2-inch SuperAMOLED screen with 360 x 480 resolution, making it fairly large as smartwatches go, although the curved screen (similar to the Samsung Gear Fit) makes it a little more sleek. The screen is rectangular, like most smartwatches.

The watch is powered by Samsung’s Tizen OS — as opposed to Android Wear, the Google-created wearable operating system, which Samsung has also shown support for via its Gear Live smartwatch. Tizen, however, is more power-efficient than Android, and the Gear S is rated for two days of battery life.

Samsung says the processor is a dual-core 1GHz design, but it didn’t specify the manufacturer or model. It has 512MB of RAM and 4GB of internal memory.

There’s no camera, but — like Samsung’s other Tizen-based Gear watches — it has a standalone music player.

The Gear S stems naturally from Samsung’s “throw everything against the wall” approach to most product categories, giving the wearable-curious crowd the option of a getting smartphone-like device without the smartphone. The display will even call up a QWERTY keyboard when needed, presumably with some pretty tiny keys.

Samsung is also debuting a ring-style headphone model called the Gear Circle. It connects via Bluetooth and features a magnetic lock that clasps around the users’s neck when it’s not being used. It can also vibrate to give the user notifications.

News & Image Courtesy – Mashable

Sample Code to Create a SQLite Table To Store Image Data in Xcode

Here is the sample working code, which can be used to create a SQLite table to store image data in Xcode.

- (void) createDataBaseTable{

sqlite3 *database;

NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

NSString casino online  *documentsDirectory = [paths objectAtIndex:0];

NSString *myPathDocs =  [documentsDirectory stringByAppendingPathComponent:[NSString stringWithFormat:@“/%@“,@“mydbname.db”]];

const char* pathChar = [myPathDocs UTF8String];

int result = sqlite3_open(pathChar, &database);

if(result != SQLITE_OK){

sqlite3_close(database);

return;

}

else {

sqlite3_exec(database,

"CREATE TABLE IF NOT EXISTS images ( ID INTEGER PRIMARY KEY, Photo BLOB)",

NULL, NULL, NULL);

NSLog( @"images table :  %s", sqlite3_errmsg(database) );

sqlite3_close(database);

}

}

This will do the trick.

Configure UITableViewCell for play video

Declare movie player as

MPMoviePlayerController *moviePlayer;

then  in cellForRowAtIndexPath:

cell = [tableView dequeueReusableCellWithIdentifier:simpleTableVideoIdentifier];

            if (cell == nil){
                cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:simpleTableVideoIdentifier];
            }
            NSDictionary *dictionary = [dataArray objectAtIndex:indexPath.section];
            NSDictionary *data = dictionary;
            if ([data[@"type_of_post"] isEqualToString:@"video"]) {
                NSString *path = data[@"video"];
                NSURL *videoURL = [NSURL URLWithString:path];
                moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
                [moviePlayer setControlStyle:MPMovieControlStyleNone];
                moviePlayer.scalingMode = MPMovieScalingModeAspectFit;
                [moviePlayer.view setFrame:CGRectMake(10.0, 0.0, 300.0 , 400.0)];
                [cell.contentView addSubview:moviePlayer.view];
                 moviePlayer.view.hidden = NO;
                [moviePlayer prepareToPlay];
                [moviePlayer play];
            }else{
                //do something else
            }

Set shadow, border and corner radius to a view in iOS

We can set the layer properties for a uiview by following

[self.contentView.layer setCornerRadius:3.0f];
UIColor* color casino online  = [UIColor greyColor]; 
[self.contentView.layer setBorderColor:color.CGColor]; 
[self.contentView.layer setBorderWidth:1.0f]; 
[self.contentView.layer setShadowColor:color.CGColor]; 
[self.contentView.layer setShadowOpacity:1.0]; 
[self.contentView.layer setShadowRadius:3.0]; 
[self.contentView.layer setShadowOffset:CGSizeMake(1.0, 1.0)]; 
self.contentView.layer.masksToBounds = YES;

keyframe animation sample in CSS

Basic Declaration

@-webkit-keyframes myAnimation {

0% { opacity: 0; }

100% { opacity: 1; }

}

@-moz-keyframes myAnimation {

0% { opacity: 0; }

100% { opacity: 1; }

}

@-o-keyframes myAnimation {

0% { opacity: 0; }

100% { opacity: 1; }

} @keyframes myAnimation {

0% { opacity: 0; }

100% { opacity: 1; }

}

Usage

#box {

-webkit-animation: myAnimation 5s infinite; /* Safari 4+ */

-moz-animation: myAnimation 5s infinite; /* Fx 5+ */

-o-animation: myAnimation 5s infinite; /* Opera 12+ */

animation: myAnimation 5s infinite; /* IE 10+ */

}