Android Market on MPMAN 2012 series

Новите устройства са доста привлекателни с цените си и новата по-операционна система (Android 4.0) на фона на събратята с неизвестни имена и стари андроиди. Проблем е обаче липсата на официалният андроид магазин, към който реферират повечето мобилни версии на известни приложения.

Този приблем вече има своето решение, което е изпробвано на MP700 и MP959 модели, като аз лично го изпробвах на 700 модела след като попаднах на една френска статия с обяснения.Ето простите стъпки, които трябва да следвате за да се сдобиете с Android Market.

  1. Изтеглете следният архив
  2. Разархивирайте 4те файла на компютъра или таблета (“com.android.vending-3.1.3-signed.apk”, “GoogleServiceFramework.apk”, “OneTimeInitializer.apk” и “SetupWizard.apk.”) и ги копирайте на таблета.
  3. Инсталирайте ги в следният ред:
    • GoogleServiceFramework.apk (Този пакет е вероятно да същетсвува на системата и в такъв случай не е нужно да се преинсталира)
    • OneTimeInitializer.apk
    • SetupWizard.apk
    • com.android.vending-3.1.3-signed.apk (НЕ СТАРТИРАЙТЕ ПРИЛОЖЕНИЕТО ВСЕ ОЩЕЕ)
  4. Рестартирайте таблета
  5. След зареждането на системата ще имате избор между  “Setup Wizard” и “Application Launcher”. Изберете  “Setup Wizard” с което таблета ще продължи нормално работата си и ще сте приключили с инсталацията на официалният андроид магазин.
  6. Стартирайте приложението и приемете нужните съобщения за сигурност ако ви се поиска такова нещо.

Това е линк към официалната статия: http://www.tablette-tactile.net/bidouille/installez-le-play-store-sur-votre-tablette-mpman-gamme-2012-123705/

 

Web service REST call Extender – Contact Form 7 Plugin (WordPress)

I’m glad to share an extender to Contact Form 7 Plugin, that can send REST calls to web services with  POST (XML) method (GET also possible but needless).

You can view history of submits for every contact form just like Contact Form 7 to Database Extension (http://wordpress.org/extend/plugins/contact-form-7-to-database-extension/), from which it’s derived.

Readme:

=== Contact Form 7 to REST Call ===
Tested up to: 1.0
Stable tag: 1.0
Extension to the Contact Form 7 plugin that send data to REST Call.
== Description ==
First a disclaimer: I am not the maker of Contact Form 7 or associated with it’s author.
That being said, I think Contact Form 7 is great…except for one thing. It does not save or post its information.
This plugin allows to save history of submits and send XML REST call to web service.
It can easily be modified to make other than XML data calls.
== Installation ==
1. Be sure that Contact Form 7 is installed and activated (this is an extension to it)
1. Import contact-form-7-REST.zip via the ‘Plugins’ menu in WordPress
1. Activate the plugin through the ‘Plugins’ menu in WordPress
1. Adds an Admin menu item for seeing the stored data
1. Edit conf.php file to set call settings
Notes:
* Installing this plugin creates its own table. If you uninstall it, it will delete its table and any data you have in it. (But you can deactivate it without loosing any data).
* Tested on WP 3.0, PHP 5.2.13, MySQL 5.0 (Using 1and1 for hosting)
== Changelog ==
= 1.0 =
* Initial Revision.

=== Contact Form 7 to REST Call ===Tested up to: 1.0Stable tag: 1.0
Extension to the Contact Form 7 plugin that send data to REST Call.
== Description ==
First a disclaimer: I am not the maker of Contact Form 7 or associated with it’s author.
That being said, I think Contact Form 7 is great…except for one thing. It does not save or post its information.This plugin allows to save history of submits and send XML REST call to web service.It can easily be modified to make other than XML data calls.
== Installation ==
1. Be sure that Contact Form 7 is installed and activated (this is an extension to it)1. Import contact-form-7-REST.zip via the ‘Plugins’ menu in WordPress1. Activate the plugin through the ‘Plugins’ menu in WordPress1. Adds an Admin menu item for seeing the stored data1. Edit conf.php file to set call settings
Notes:* Installing this plugin creates its own table. If you uninstall it, it will delete its table and any data you have in it. (But you can deactivate it without loosing any data).* Tested on WP 3.0, PHP 5.2.13, MySQL 5.0 (Using 1and1 for hosting)
== Changelog ==
= 1.0 =* Initial Revision.

Download here

Check the checkboxes after binding

The following code demonstrates how to fix missing checks when binding list of standard items to checkboxlist.

 

 

///

/// Check the checkboxes after binding

///

 

///

///

protected void BindData(object sender, EventArgs e)

{

CheckBoxList cbl = (CheckBoxList)sender;

List items = (List)cbl.DataSource;

List itemValues = items.Where(i=> i.Selected).Select(i => i.Value).ToList();

 

(from i in cbl.Items.Cast()

where itemValues.Contains(i.Value)

select i).ToList().ForEach(i => i.Selected = true);

 

 

}

jQuery mobile change icon and position in collapsible panel inside a list

If we have something like that:

 

<div id=”myRadioButtDIV” data-role=”content” data-theme=”f”>
<ul data-role=”listview” data-divider-theme=”f” data-inset=”true”>
<li data-theme=”c”>
<div data-role=”collapsible” data-theme=”g”  class=”ui-collapsible ui-collapsible-collapsed ui-block-b” style=”width:74%;  text-decoration: none; padding:12px 0 0 0;” >
<h3 ><span style=” color: black;”>Header</span></h3>
<p>I’m the collapsible content with a themed content block set to “c”.</p>
</div>
</li>
<li data-theme=”c”>
<div data-role=”collapsible” data-theme=”g”  class=”ui-collapsible ui-collapsible-collapsed ui-block-b” style=”width:74%;  text-decoration: none; padding:12px 0 0 0;” >
<h3 ><span style=” color: black;”>Header</span></h3>
<p>I’m the collapsible content with a themed content block set to “c”.</p>
</div>
</li>
</ul>
< /div>

 

 

 

the standard ways to change icon and its position (data-collapsed-icon="arrow-r", data-expanded-icon="arrow-d", data-iconpos=”right”) aren’t working for me so i did it as follows


#myRadioButtDIV .ui-icon-plus {

left: 88%;// or something good looking
background-position: -216px 50%;// ARROW DONW
}

#myRadioButtDIV .ui-icon-minus {

 

left: 88%;// or something good looking
background-position: -180px 50%;// ARROW UP
}

hr tag – Horizontal line image

There are two ways to set image to hr tag that depends on where you will extend it – in separate CSS stylesheet or embedded in HTML.
Here are one solution in css file:


.horizontal_line {
width: 100%;
border: 0;
display: block;
background-image: url('../images/logo.jpg');
height: 20px;
}

and then just assign the hr tag to this class like this:



When you use this approach you are sure that the width is controllable and is not the full image width.

ajaxtoolkit:balloonpopupextender hide onmouse out

By default if you use ajaxtoolkit:balloonpopupextender with displayonmouseover property set to true then onmouse over everything is ok but when mouse gone out the popup stays.
So you need to add client side event handler like this to ensure the popup disappears onmouseout.

onmouseout="BalloonPopupControlBehavior.hidePopup();"

The property need to be set directly into the server tag like this:

C# DateTime String форматиране

Много полезен пример за форматиране на датите:


using System;

public class DateToStringExample
{
public static void Main()
{
DateTime dateValue = new DateTime(2008, 6, 15, 21, 15, 07);
// Create an array of standard format strings.
string[] standardFmts = {"d", "D", "f", "F", "g", "G", "m", "o",
"R", "s", "t", "T", "u", "U", "y"};
// Output date and time using each standard format string.
foreach (string standardFmt in standardFmts)
Console.WriteLine("{0}: {1}", standardFmt,
dateValue.ToString(standardFmt));
Console.WriteLine();

// Create an array of some custom format strings.
string[] customFmts = {"h:mm:ss.ff t", "d MMM yyyy", "HH:mm:ss.f",
"dd MMM HH:mm:ss", @"\Mon\t\h\: M", "HH:mm:ss.ffffzzz" };
// Output date and time using each custom format string.
foreach (string customFmt in customFmts)
Console.WriteLine("'{0}': {1}", customFmt,
dateValue.ToString(customFmt));
}
}
// This example displays the following output to the console:
// d: 6/15/2008
// D: Sunday, June 15, 2008
// f: Sunday, June 15, 2008 9:15 PM
// F: Sunday, June 15, 2008 9:15:07 PM
// g: 6/15/2008 9:15 PM
// G: 6/15/2008 9:15:07 PM
// m: June 15
// o: 2008-06-15T21:15:07.0000000
// R: Sun, 15 Jun 2008 21:15:07 GMT
// s: 2008-06-15T21:15:07
// t: 9:15 PM
// T: 9:15:07 PM
// u: 2008-06-15 21:15:07Z
// U: Monday, June 16, 2008 4:15:07 AM
// y: June, 2008
//
// 'h:mm:ss.ff t': 9:15:07.00 P
// 'd MMM yyyy': 15 Jun 2008
// 'HH:mm:ss.f': 21:15:07.0
// 'dd MMM HH:mm:ss': 15 Jun 21:15:07
// '\Mon\t\h\: M': Month: 6
// 'HH:mm:ss.ffffzzz': 21:15:07.0000-07:00

AJAX toolkit 1st exeption



System.Resources.MissingManifestResourceException: Could not find any resources appropriate for the specified culture or the neutral culture. Make sure "AjaxControlToolkit.Properties.Resources.NET4.resources" was correctly embedded or linked into assembly "AjaxControlToolkit" at compile time, or that all the satellite assemblies required are loadable and fully signed.

Този хубав exception се оправя като просто се добави един Script Manager в страницата или Master страницата. Никъде не го видях споменато при инсталацията на кит-а, нито алтернатива да се избегне това изключение.


Причина

AjaxControlToolkit’s control load reference refers to the base System.Web.UI.Control method which is present as a part of the ASP.NET AJAX Libraries and those libraries are referenced only when the ScriptManager is referenced in the page.

facebook application – ShareIt! (2010)

ShareIt!
Първото ми приложение за facebook.
Направих го по скоро за запознаване с api-тата.
Наскоро се запознах с един американец, който включих в проекта, но още нищо не сме допълнили.

технологии: HTML, PHP, JavaScript, facebook php sdk v2.1.1
година: 2010