09 September 2015

How to setup Windows Android Intel HAXM AVD Emulator

This is how to setup Windows 7, 8, 8.1 and 10 for Android Intel HAXM AVD Emulator.

In Administrator Command Prompt (Win+X) type:

C:\>bcdedit /copy {current} /d "No Hyper-V" 
The entry was successfully copied to {ff-23-113-824e-5c5144ea}. 

C:\>bcdedit /set {ff-23-113-824e-5c5144ea} hypervisorlaunchtype off 
The operation completed successfully.

P.S.:
In order to access the new boot menu, I select Settings (Windows Key + C) then Power, and Restart but hold down shift on the keyboard while clicking Restart with the mouse.

24 May 2015

How Do I Connect an Android Wear Emulator to a Real Phone ?

After starting Android Wear emulator and connected Real Android Phone :

- start Android Wear App on Real Android Phone and connect to Android Wear Emulator, or

- just type in PC Terminal :

adb -d forward tcp:5601 tcp:5601

Source: http://www.tech-recipes.com/rx/49586/how-do-i-connect-an-android-wear-emulator-to-a-real-phone/

18 May 2015

Android Material compatible theme

If you want to have Android Material compatible theme, you should have like this, in your styles.xml file :

<style name="MyTheme" parent="@style/Theme.AppCompat.Light">
    <item name="android:windowNoTitle">true</item>
    <item name="windowActionBar">false</item>
    <item name="android:windowFullscreen">true</item>
    <item name="android:windowContentOverlay">@null</item>
</style>

26 March 2015

How to update CM12 nightlies ?

Manual instructions:

Download latest zip
Boot into recovery
Install zip
Wipe cache and dalvik 
Reboot
Nothing gets wiped on your device.


28 January 2015

Parse News RSS 2.0 image in C#

If you want to parse News RSS 2.0 image from link, for example > http://codecanyon.net/feeds/new-codecanyon-items.atom

The following code can be used to match all img src in the source text and to populate list with value of src attribute.

private static IEnumerable<string> GetImagesInHTMLString(string htmlString)
        {
            var images = new List<string>();
            const string pattern = Imgpattern;
            var rgx = new Regex(pattern, RegexOptions.IgnoreCase);
            MatchCollection matches = rgx.Matches(htmlString);

            for (int i = 0, l = matches.Count; i < l; i++)
            {
                if (matches[i].Value.Contains(".jpg") || matches[i].Value.Contains(".png"))
                {
                    var ms = Regex.Matches(matches[i].Value, Urlpattern);
                    if (ms.Count > 0)
                    {
                        if (!string.IsNullOrEmpty(ms[0].Value))
                            images.Add(ms[0].Value.Replace("\"", string.Empty));
                    }
                }
            }

            return images;
        }

Decompiled C# Library : AppStudio.Common.dll

Wonderfull Microsoft Windows AppStudio on adress http://appstudio.windows.com generate Universal Applications for Windows Phone and Windows Store in C# - online.

Downloaded generated source code use closed library AppStudio.Common.dll, which breaks further portability.

Fortunately, the only items being used from this library are the BindableBase, BindableSchemaBase, and IDataSource. 

So I recreated these files in the directly, removing the AppStudio.Common.dll reference entirely from both the  Windows projects.

Here’s the code for the BindableBase:

using System;
using System.Collectionus.Generic;
using System.ComponentModel;
using System.Runtime.CompilerServices;

namespace SoftLabPro.Data
{ public abstract class BindableBase : INotifyPropertyChanged
{
    public event PropertyChangedEventHandler PropertyChanged;
    protected BindableBase()
    {
    }
    public virtual void Initialize(IDictionary<string, string> parameters)
    {
    }
    protected void OnPropertyChanged(string propertyName = null)
    {
        PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
        if (propertyChanged != null)
        {
            try
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
            catch
            {
            }
        }
    }
    protected bool SetProperty<T>(ref T storage, T value, [CallerMemberName] string propertyName = null)
    {
        if (object.Equals((T)storage, value))
        {
            return false;
        }
        storage = value;
        this.OnPropertyChanged(propertyName);
        return true;
    }
}
}

Here is BindableSchemaBase:

using System;
using System.Runtime.CompilerServices;
using System.Text;

namespace SoftLabPro.Data
{ public abstract class BindableSchemaBase : BindableBase
{
    public BindableSchemaBase()
    {
        this.Id = Guid.NewGuid().ToString();
    }
    public abstract string GetValue(string propertyName);
    public virtual string GetValues(params string[] propertyNames)
    {
        StringBuilder builder = new StringBuilder();
        foreach (string str in propertyNames)
        {
            builder.AppendLine((this.GetValue(str) ?? string.Empty).ToString());
        }
        return builder.ToString();
    }
    public abstract string DefaultContent { get; }
    public abstract string DefaultImageUrl { get; }
    public abstract string DefaultSummary { get; }
    public abstract string DefaultTitle { get; }
    public string Id { get; set; }
}
}


And finally IDataSource:

using System.Collections.Generic;

using System.Threading.Tasks;

namespace SoftLabPro.Data

{
    public interface IDataSource<T> where T : BindableSchemaBase

{
    Task<IEnumerable<T>> LoadData();
    Task<IEnumerable<T>> Refresh();
}

}

27 January 2015

Parse Google News RSS image in C#

If you want to parse Google News RSS image from link, for example > http://news.google.com/news?hl=us&q=android&output=rss

The following code can be used to match all img src in the source text and to populate list with value of src attribute.

private static IEnumerable<string> GetImagesInGoogleNewsString(string htmlString)
        {
            List<string> imgSrcs = new List<string>();
            //const string pattern = Imgpattern;
            //var rgx = new Regex(pattern, RegexOptions.IgnoreCase);
            var imgSrcMatches = System.Text.RegularExpressions.Regex.Matches(htmlString, string.Format(@"<\s*img\s*src\s*=\s*{0}\s*([^{0}]+)\s*{0}", "\""),
               RegexOptions.CultureInvariant | RegexOptions.IgnoreCase | 
               RegexOptions.Multiline);

            foreach (Match match in imgSrcMatches)
                imgSrcs.Add("http:" + match.Groups[1].Value);

            return imgSrcs;
        }

16 January 2015

Android Splash Screen sizes

For drawable resolutions I found these most suitable :


Density

Resolution

Format

Color

ldpi

240x320

png

24bit

mdpi

320x480

png

24bit

hdpi

480x800

png

24bit

xdpi

720x1280

png

24bit

xxdpi

1080x1920

png

24bit

xxxdpi

?







05 January 2015

Making money with Android

Follow one developer's journey to making an income from Android apps. The goal: $1000 a month. 

. 

23 September 2014

How To Recreate the Birthday and Anniversary reminders in the Outlook Calendar

Here is how to recreate the Birthday and Anniversary reminders in the Outlook Calendar. Put this macro code in Outlook MVA Editor (Alt-F11) and run.

Sub olRobot()
' Outlook VBA script by Sergii Vakula
' Auto generation the Birthdays and Anniversaries appointments of all Contact folders to a specific calendar
' Auto changing Contact's FileAs fields: FullName for humans, CompanyName for companies

Dim objOL As Outlook.Application
Dim objNS As Outlook.NameSpace
Dim objItems As Outlook.Items
Dim obj As Object
Set objOL = CreateObject("Outlook.Application")
Set objNS = objOL.GetNamespace("MAPI")

On Error Resume Next

' *****************************************************************************************************
' *** STAGE 1: Rebuilding Contact's Birthdays and Anniversaries to the main calendar, fixing FileAs ***
' *****************************************************************************************************

Dim Report As String
Dim mySession As Outlook.NameSpace
Dim myFolder As Outlook.Folder
Set mySession = Application.Session

' Method 1: Ask for Contact folder
'MsgBox ("Select Contact folder by next step...")
'Call ContactsFolders(Session.PickFolder, Report)

' Method 2: Use default Contact folder and all subfolders
'Call ContactsFolders(objNS.GetDefaultFolder(olFolderContacts), Report)

' Method 3: Use all Contact folders
For Each myFolder In mySession.Folders
Call ContactsFolders(myFolder, Report)
Next

' ***************************************************************************************
' *** STAGE 2: Moving Birthdays and Anniversaries appointments to a specific calendar ***
' ***************************************************************************************

Dim objCalendar As Outlook.AppointmentItem
Dim objCalendarFolder As Outlook.MAPIFolder
Dim cAppt As AppointmentItem
Dim moveCal As AppointmentItem
Dim pattern As RecurrencePattern
Set objCalendarFolder = objNS.GetDefaultFolder(olFolderCalendar)
bodyMessage = "This is autocreated appointment"

' Method 1: Ask for specific calendar folder for birthdays and anniversaries
'MsgBox ("Select Birthdays and Anniversaries Calendar folder by next step...")
'Set newCalFolder = Session.PickFolder

' Method 2: Use pre-assigned calendar folder for birthdays and anniversaries
'Set newCalFolder = GetFolderPath("display name in folder listCalendarBirthdays and Anniversaries")
Set newCalFolder = GetFolderPath("\sv@pbxsphere.comCalendarBirthdays and Anniversaries")

For i = newCalFolder.Items.Count To 1 Step -1
Set obj = newCalFolder.Items(i)
If obj.Class = olAppointment And _
obj.GetRecurrencePattern.RecurrenceType = olRecursYearly And _
obj.AllDayEvent And _
obj.Body = bodyMessage Then
Set objCalendar = obj
objCalendar.Delete
End If
Err.Clear
Next

For i = objCalendarFolder.Items.Count To 1 Step -1
Set obj = objCalendarFolder.Items(i)
If obj.Class = olAppointment And _
obj.GetRecurrencePattern.RecurrenceType = olRecursYearly And _
obj.AllDayEvent And _
(Right(obj.Subject, 11) = "'s Birthday" Or Right(obj.Subject, 14) = "'s Anniversary" Or _
Right(obj.Subject, 13) = "???? ????????" Or Right(obj.Subject, 9) = "?????????") Then

Set objCalendar = obj
Set cAppt = Application.CreateItem(olAppointmentItem)

With cAppt
.Subject = objCalendar.Subject
.Start = objCalendar.Start
.Duration = objCalendar.Duration
.AllDayEvent = True
.Body = bodyMessage
.ReminderSet = False
.BusyStatus = olFree
End With

Set pattern = cAppt.GetRecurrencePattern
pattern.RecurrenceType = olRecursYearly
cAppt.Save

objCalendar.Delete

Set moveCal = cAppt.Move(newCalFolder)
'moveCal.Categories = "moved"
moveCal.Save

End If
Err.Clear
Next

Set objOL = Nothing
Set objNS = Nothing
Set obj = Nothing
Set objContact = Nothing
Set objItems = Nothing
Set objCalendar = Nothing
Set objCalendarFolder = Nothing
Set cAppt = Nothing
Set moveCal = Nothing
Set pattern = Nothing
Set mySession = Nothing
Set myFolder = Nothing

MsgBox ("Completed!" & vbCrLf & vbCrLf & "All Contact's FileAs were fixed." & vbCrLf & "All Birthdays and Anniversaries appointments were re-created." & vbCrLf & vbCrLf & "Contact folders that been processed:" & vbCrLf & Report & vbCrLf & "Calendar for Birhdays and Anniversaries:" & vbCrLf & newCalFolder.FolderPath & vbCrLf & vbCrLf & "Have a nice day!")

End Sub

Function GetFolderPath(ByVal FolderPath As String) As Outlook.Folder
Dim oFolder As Outlook.Folder
Dim FoldersArray As Variant
Dim i As Integer
On Error GoTo GetFolderPath_Error
If Left(FolderPath, 2) = "\" Then
FolderPath = Right(FolderPath, Len(FolderPath) - 2)
End If
FoldersArray = Split(FolderPath, "")
Set oFolder = Application.Session.Folders.Item(FoldersArray(0))
If Not oFolder Is Nothing Then
For i = 1 To UBound(FoldersArray, 1)
Dim SubFolders As Outlook.Folders
Set SubFolders = oFolder.Folders
Set oFolder = SubFolders.Item(FoldersArray(i))
If oFolder Is Nothing Then
Set GetFolderPath = Nothing
End If
Next
End If
Set GetFolderPath = oFolder
Exit Function
GetFolderPath_Error:
Set GetFolderPath = Nothing
Exit Function
End Function

Private Sub ContactsFolders(CurrentFolder As Outlook.Folder, Report As String)
Dim objItems As Outlook.Items
Dim obj As Object
Dim objContact As Outlook.ContactItem
Dim strFileAs As String
Dim SubFolder As Outlook.Folder
Dim SubFolders As Outlook.Folders
Set SubFolders = CurrentFolder.Folders
If CurrentFolder.DefaultItemType = 2 Then
Report = Report & CurrentFolder.FolderPath & vbCrLf
Set objItems = CurrentFolder.Items
For Each obj In objItems
If obj.Class = olContact Then
Set objContact = obj

With objContact
.Display

If .FullName = "" Then
strFileAs = .CompanyName
Else
strFileAs = .FullName
End If

.FileAs = strFileAs

mybirthday = .Birthday
myanniversary = .Anniversary
.Birthday = Now
.Anniversary = Now
.Birthday = mybirthday
.Anniversary = myanniversary

.Save
.Close 0
End With

End If
Err.Clear
Next

End If

For Each SubFolder In SubFolders
Call ContactsFolders(SubFolder, Report)
Next

Set SubFolder = Nothing
Set SubFolders = Nothing

End Sub


07 September 2014

29 July 2014

How to disable Frame Rate Counter in Windows 8 Applications

To disable Frame Rate Counter in Windows 8 Applications there should enter next line in MainPage.xaml.cs on public MainPage() method :

public MainPage()
        {
            this.InitializeComponent();
            Application.Current.DebugSettings.EnableFrameRateCounter = false;
         }


23 July 2014

Windows Phone 8 and SQLite deploy to device error

On the Build tab, you’ll see Conditional compilation symbols under the General header, containing a default value of SILVERLIGHT;WINDOWS_PHONE on a Windows Phone app project. Change the value to SILVERLIGHT;WINDOWS_PHONE;USE_WP8_NATIVE_SQLITE and save the project file.

22 April 2014

MS Windows 8.1 : Add shortcut to This PC Explorer sidebar

I'm going to share a very small and easy trick which can be used to add any desired shortcut, file or folder in This PC Explorer sidebar in MS Windows 8.1.

Type following string in RUN (Win+R) or start menu search box and press Enter:
%AppData%\Microsoft\Windows\Network Shortcuts
It'll open "Network Shortcuts" folder.
You can also directly open the same folder by typing Network Shortcuts in Explorer addressbar and press Enter.
Now what you have to do is simply create shortcut to the desired folder and PASTE it in this "Network Shortcuts" folder. You can also paste file shortcuts or simply move the original file in this folder. 

06 April 2014

Microsoft Visual Studio development versions and target platforms

It's a little bit confusing to choose which version of Visual Studio is for desired Windows Phone or Windows Store platform. So I create this table :

Platform
Development
MS Windows Phone 7
MS Visual Studio 2010 Express for Windows Phone

MS Visual Studio 2012 Express for Windows Phone
MS Windows Phone 8
MS Visual Studio 2012 Express for Windows Phone
MS Windows Phone 8.1
MS Visual Studio 2013 Express for Windows Update 2 RC
MS Windows 8 Store Application
MS Visual Studio 2012 Express for Windows
MS Windows 8.1 Store Application
MS Visual Studio 2013 Express for Windows Update 2 RC


30 January 2014

Install Indy components into Lazarus

To have internet or server time in your application, you must install Indy components.
For a lot of users, I'm sure that the information given above won't work, or will be somewhat confusing given the differences between versions and inconsistent explanations.

The website points you to download the latest version from the snapshots page.
This wiki tells you to copy a lot of files over into directories.For me, neither worked, and ended up making a mess of my Lazarus installations.
  • Firstly, the page I would retrieve this from is here. Other sites I tried had problems with some files inside the archive.
  • When you open up the archive above, you will see there are folders: "fpc" and "lazarus".
  • You can copy the contents of "fpc" into: LAZARUS_DIR\fpc\2.6.0\source\packages\indylaz if you want to have things neat and tidy.
  • The "lazarus" folder, you copy into LAZARUS_DIR\components\indylaz
  • With both of these, make sure that there isn't a sub-directory inside the folders given. i.e. LAZARUS_DIR\components\indylaz\lazarus\
  • Go into Lazarus and go to "Package" -> "Open package file" and point it to the "indylaz.lpk" inside the LAZARUS_DIR\components\indylaz directory.
  • Once the package loads inside your project, click on the "options" button, which resembles an image of a parcel with a cog next to it.
  • Click the "Compiler Options" on the left-hand side and Click on the ".." button next to "Other unit files (-Fu) (delimiter is semicolon)". Select the "fpc" folder you created above and click OK. Lazarus will sort out the relative path for you. Don't change it.
  • Click OK and compile and then direct angry bile towards the individual who has steered you wrong with the previous, unhelpful, instructions.
  • Compile then install (will rebuild Lazarus). 
  • Currently, due to a know bug in FPC, you must compile the Indy package TWICE before installing it.

05 November 2013

Getting 'System.IO.FileNotFoundException' in Windows Phone Project with Background Agent

If you start getting 'System.IO.FileNotFoundException' in Windows Phone Project with Background Agent, than you probably missed to add Reference in main project on background agent.

28 October 2013

How to force full sync and have good old SkyDrive in MS Windows 8.1 (syncDriver)

I tried to find the way to force MS Windows 8.1 for full sync of my SkyDrive, because SkyDrive desktop version and notification tray icon is disappeared in 8.1 version of operating system.

Microsoft claims that these new SkyDrive brings smart files in a heart of a system, but smart sync is disappear. After reading many sites, forums and blogs, I finally find one small utility syncDriver which is free for personal use and does missing job perfectly.


"syncDriver is a desktop application that serves as client software for Microsoft SkyDrive cloud file storage solution. syncDriver maps a local folder of your choice to the SkyDrive root directory and keeps these two in sync. Whenever a file is modified locally on your computer, it gets uploaded to SkyDrive. If a file is uploaded or modified in SkyDrive, syncDriver notices that and downloads the file."

The sweetest feature is that program can map drive letter as virtual local drive. And there is a tray icon, too. Brilliant. I suggest this small efective tool to everyone who needs good old SkyDrive on MS Windows 8.1.

MS Windows 8 and 8.1 Speed Up Tweaks

If you want to speed up your MS Windows installation, consider these tips :

  • Turn off Real-time protection in Windows Defender in Control Panel
  • Turn off Windows Firewall in Control Panel
  • Disable System Restore in Control Panel/System/Advanced system settings/System Protection
  • Disable Windows Search service in Control Panel/Administrative Tools/Services
This is my personal tweak, but Anti-Virus and Firewall is turned on when is massive Internet activity.

21 October 2013

Privacy Statement

This application does not collect or transmit any user’s personal information, with the exception of technical information included in HTTP requests (such as your IP address). No personal information is used, stored, secured or disclosed by services this application works with. If you would like to report any violations of this policy, please contact our support.

09 September 2013

Setup Screen Saver in Ubuntu

To Setup screen saver in Ubuntu type in Terminal:

sudo apt-get remove gnome-screensaver
sudo apt-get install xscreensaver xscreensaver-data-extra xscreensaver-gl-extra

To configure your screensaver

After installation, perform a search in the Dash for Screensaver. Launch the Screensaver utility and use it to configure XScreenSaver and select your screensaver settings.

03 September 2013

Install OpenERP in Ubuntu 13.04

To install OpenERP CMS in Ubuntu 13.04:

1. Add the following line to your /etc/apt/sources.list:
deb http://nightly.openerp.com/7.0/nightly/deb/ ./

2. Type in Terminal:
sudo apt-get update
sudo apt-get install openerp

3. Type in Terminal:
sudo -u postgres createuser -s openerp

Than you can see installed OpenERP CMS on adress:
http://localhost:8069

The PostgreSQL host configuration file was not found on your system

If you get message in ubuntu 13.04 webmin 1.650 for the PostgreSQL 9.1 module: host configuration file /etc/postgresql/pg_hba.conf was not found on your system...

Modify > Paths to host access config file, in module configuration on :
/etc/postgresql/9.1/main/postgresql.conf

21 August 2013

Ubuntu 13.04 > Install LAMP (Linux+Apache+MySQL+PHP)




To install LAMP platform in Ubuntu 13.04, for local CMS testing purposes, go to Terminal and type >

sudo su

apt-get install mysql-server mysql-client
apt-get install apache2
apt-get install php5 libapache2-mod-php5
apt-get install php5-mysql php5-curl php5-gd php5-intl php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-ming php5-ps php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl
apt-get install php5-xcache
apt-get install phpmyadmin

chown -R <username> /var/www
chmod -R a+rwX /var/www

15 July 2013

Ubuntu 13.04 : Manual installation of Libre Office 4

Download latest Libre Office from :
http://www.libreoffice.org/download

To install LibreOffice 4 you will need to remove all previous versions.
Run:
sudo apt-get remove --purge libreoffice-core libreoffice-common
sudo apt-get autoremove --purge

Extract the files:

cd to the Downloads directory: cd Downloads

Extract the tar.gz:

For 64 bit:
tar -xvzf LibreOffice_4.0.3_Linux_x86-64_deb.tar.gz

For 32 bit:
tar -xvzf LibreOffice_4.0.3_Linux_x86_deb.tar.gz

Install the program:

cd to the programs folder:

For 64 bit:
cd LibreOffice_4.0.3.3_Linux_x86-64_deb/DEBS

For 32 bit:
cd LibreOffice_4.0.3.3_Linux_x86_deb/DEBS

Install part one (for both 32 and 64 bit):
sudo dpkg -i *.deb

Install the desktop integration (again for 32 and 64 bit):
cd desktop-integration
sudo dpkg -i *.deb

You're done!


Ubuntu 13.04 64bit : Unable to install ia32-libs

If you are unable to install ia32-libs package on your fresh installation of Ubuntu 13.04 64bit, for installation of Skype, Teamviewer or Adobe Reader, than you should do :

- Switch Update server to Main, in System Settings / Software & Updates
- Check on all Install updates from option on Update tab

than do in Terminal :

sudo dpkg --add-architecture i386

sudo apt-get update
sudo apt-get install ia32-libs

02 July 2013

Increase php memory limit

If you get this error on OpenCart system 1.5x :

PHP Fatal Error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 32 bytes)

then

in system/startup.php add line

// Register Globals

ini_set('memory_limit','-1');

02 June 2013

[July 24th] [Sense 3.5] Energy™ -.¸¸.·´¯ Sense 3.5 with working SD-EXT Mod

I want to share my successful procedure with this Sense ROM for HD2 :

  1. Prepare Ext4 partition on your SD card (min 1 Gb)
  2. Setup system partition to 380 Mb in CLK
  3. Clean everything throw ClockworkMode Recovery
    1. Wipe data/factory reset  
    2. Wipe cache partition
    3. Advanced > Wipe dalvik cache
    4. Advanced > Wipe battery stats
  4. Install [July 24th] [Sense 3.5] Energy™ -.¸¸.·´¯ Sense 3.5 ROM in NAND mode 
  5. Don't reboot just exit
  6. Install SD-EXT Mod - AMARULLZ DATA TO SD-EXT  
  7. Now reboot
Now you have best and fastest Sense ROM for your HTC HD2 with working DataOnExt.
Just update it throw Google Play and that's it.

If you experience robotic voice throw calls follow this fix.

25 May 2013

How to remove robotic voice in HTC HD2 Sense Android roms

- go to settings/sounds
- uncheck audible touch tones
- make a phone call and when finished
- reboot

03 May 2013

OpenCart CMS - Import multilanguage data


- Make first language default which is the same with your data. And import these language data.
- And then make second language default. And import this language data.

Now you have items in two languages.

OpenCart CMS - Export/Import Excel file


Categories

Categories looks like the most confusing to get your head around at the start however it’s fairly straight forward.

The technique to doing it is to add all your categories in first and assign a unique id to it and group the categories together.  It’s probably best to even work backwards too.

  • Category_id – the unique id of the category, you cannot assign multiple id’s to a category or assign a single id to multiple categories
  • Parent_id – the id of the category that the category belongs to.  ‘0’ is a top level category (the category that will be shown and that houses sub-categories etc)
  • Name – the name of the category
  • Sort_order – if you want categories to appear in a specific order you can number them, just remember if you don’t assign a number to a category it will default to ‘0’ which will place it before all the other categories in that particular level / sub-category
  • Image_name – the image that is assigned to the category.  See additional images in products section for example and explanation
  • Date_added – put today’s date
  • Date_modified – put today’s date
  • Language_id – keep at 1 (English)
  • Seo_keyword – similar to meta_keywords
  • Description – the description of the category
  • Meta_description – a brief concise description of the product / category to help with search engines
  • Meta_keywords – keywords that are specific to the product / category, to help with search engines
  • Store_ids – keep at ‘0’, don’t change
  • Status enabled – whether or not a product is enabled or disabled (shown or hidden) true = shown, false = hidden


Products

With products, only the product name is a mandatory field, you can leave as many areas blank as you like.  You don’t need to fill them all in.

Product_id – the unique id of the product, you cannot assign multiple id’s to a product or assign a single id to multiple products

  • Name – The name of the product
  • Categories – the categories that the product belongs to.  You can add a product to multiple categories,  just separate category id’s with a comma (eg. 23, 56, 5)
  • Sku – the SKU number of the product (SKU’s are assigned to barcodes to allow for easy identification when scanned)
  • Location – the location of the product (eg. Brisbane, Australia)
  • Quantity – the about of the product that you have in stock
  • Model – the model number of the product
  • Manufacturer – this is the brand of the product (for example, windows 7 is a Microsoft product so you’ll add in ‘Microsoft’ and people will be able to search for products by manufacturer) note: you can only have one manufacturer
  • Image_name – same as additional images (see for example)
  • Requires shipping – set to yes unless it’s a digital download
  • Price – the price of the product (before tax)
  • Date_added – put today’s date
  • Date_modified – put today’s date
  • Date_available – put today’s date unless it will be available at a specific date.
  • Weight – weight only needed if you have a shipping method that is weight based (eg AusPost) also be sure to keep the weight in kilograms (eg. 250g = 0.25)
  • Unit – keep at ‘kg’
  • Length – not needed for anything but you can add it if you like
  • Width – not needed for anything but you can add it if you like
  • Height – not needed for anything but you can add it if you like
  • Length unit – keep at ‘cm’
  • Status enabled – whether or not a product is enabled or disabled (shown or hidden) true = shown, false = hidden
  • Tax_class_id – keep at ‘9’ (GST)
  • Viewed – number of times the product has been viewed (leave blank)
  • Language_id – keep at 1 (English)
  • Seo_keyword – similar to meta_keywords
  • Description – the description of the product / category (the description is in HTML however don’t be afraid of this, all you need to do is have a at the start of each paragraph and an at the end of each paragraph and that will format it.  If you want bold add around the words you’d like in bold and for italics.
  • Meta_description – a brief concise description of the product / category to help with search engines
  • Meta_keywords – keywords that are specific to the product / category, to help with search engines
  • Additional images – the links to additional images for a product, if there are additional images for a specific product, add a comma after each image url, don’t add spaces.  Start all links with data/(name of folder that will contain the image)/(image name)
  • Stock_status_id – this is the status that is shown when a product is out of stock (keep at ‘5’ which is the default ‘out of stock’)
  • Store_ids – keep at ‘0’, don’t change
  • Related_ids – id’s of products that are related to a specific product
  • Tags – tags act as keywords, however it will list them at the bottom of the product page and if someone clicks on a specific keyword, then all the products with that tag will be grouped and displayed.  (add commas between each tag)
  • Sort_order – if you want products to be displayed in a specific order
  • Subtract – whether or not it will subtract from the products stock number when purchased
  • Minimum – the minimum amount of a specific product that the customer has to buy when purchasing the product
  • Cost – the cost price of the product  (not needed)


Options

This area is for additional options that a product might have.  For example, a shirt will have shirt sized of small, medium, large, etc, etc.

  • Product_id – the product id number that this option will belong to.
  • Language_id – keep at 1 (English)
  • Option – the name of the option (eg shirt sizes)
  • Option_value – the options of the product (eg small, medium, large)
  • Quantity – the quantity of stock of the option (you can leave blank if you don’t have to worry about stock quantities)
  • Subtract – whether or not it will subtract from the products stock number when purchased
  • Price – the price difference of the option to the base product (for example of the additional option is $50 more then it will be 50)
  • Prefix – add a ‘+’ or ‘-‘ here to indicate whether the above price subtracts from or adds to the base product price.
  • Sort_order – the order of which you’d like the individual options to be listed


Specials

  • Product_id – the product id number that this discount/special will belong to.
  • Customer_group – if you have customer groups, for example the store has retail set as the default however if you were to add wholesale it too you can set the discount/special for a specific group only.
  • Priority – priority of discounts
  • Price – price of product after discount (eg. $500 product has $50 dicount, price = $450
  • Date_start – starting date, must be in this format – yyyy/mm/dd
  • Date_end – ending date, must be in this format – yyyy/mm/dd


Discounts

  • Product_id – the product id number that this discount/special will belong to.
  • Customer_group – if you have customer groups, for example the store has retail set as the default however if you were to add wholesale it too you can set the discount/special for a specific group only.
  • Quantity – I think this is in reference to the amount that can be bought at the discount price before it ends (just leave it blank)
  • Priority – priority of discounts
  • Price – price of product after discount (eg. $500 product has $50 discount, price = $450
  • Date_start – starting date, must be in this format – yyyy/mm/dd
  • Date_end – ending date, must be in this format – yyyy/mm/dd

22 April 2013

MS Access : Wizard isn't installed or has been disabled.


When I discover that none of the MS Access wizards are working, first noticed it when I tried to run the Query wizard. Form and Report wizards also do not work.

The error I get when trying to link tables is: "The Wizard you've requested is not installed or is in a bad state. Please install or reinstall the wizard. If you do not have permissions to do this on your computer see your system Administrator."

For the Report or Query wizard the message is: "This feature isn't installed or has been disabled."

I did an Office Diagnostic and a Repair installation. Neither helped. I've been doing some searching on the Internet and found this tip:

Remove folder : C:/Program Files/Common Files/Microsoft Shared/VBA/VBA6 (apparently MS Access 2010 creates it). After deleting that folder, I launched MS Access 2010, and automatically, some repair process started, which thankfully, fixed this frustrating problem.

Now, all my Wizards are working again. :-)

09 April 2013

Lockscreen Policy - Disable Android 4.2 Lockscreen Widgets and Camera

Install application Lockscreen Policy from Google Play to get rid of widgets and camera on the Android 4.2 lockscreen.

P.S.: from XDA Developers

XDA: NexusHD2-JellyBean-CM10.1 - 2G/3G signal indicator

To correct signal strength indicator change line in /system/build.prop to ro.telephony.ril.v3=signalstrength,singlepdp,apptypesim

P.S.: Download BuildProp editor from Play Store and edit it the easy way.

26 February 2013

Prepare HTC HD2 for XDA Nexus 4.1.2 rom


1. Install HSPL 2.08;
2. Install Magldr
3. Partition correctly with Magldr: 5MB cache, 285MB ROM (choose custom and type 285 in the textbox, then repartiton with HD2 tools)
4. After partitioning, you will have access to AD Recovery.
4.1 Use AD recovery to partition your SD card: 2G sd-ext, 256M swap.
4.2 Use AD recovery to mount USB storage, copy ROM and upadates on the card.
4.3 Flash ROM then reboot. Do NOT boot.
4.4 Flash all other updates. Reboot phone, go through the setup.

How to install mobile phone over USB on Windows 7 VirtualBox


If you are trying to install the drivers for HTC mobile phone inside MS Windows 7 VirtualBox, try installing the VirtualBox Extension Pack and enable USB 2.0 in the settings after doing that.

15 February 2013

How to install Clementine music player in Ubuntu


In Terminal window type :

sudo add-apt-repository ppa:me-davidsansome/clementine
sudo apt-get update
sudo apt-get install clementine

06 February 2013

Speed Up Ubuntu

1. sudo apt-get install preload

2. sudo apt-get autoclean

3. sudo gedit /etc/fstab
  • - At the end of the file, add these lines:
  • # Move /tmp to RAM
  • tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0
4. sudo gedit /etc/sysctl.conf
  • - At the end of the file, add these two lines:
  • #
  • # Decrease swap usage to a workable level
  • vm.swappiness=10
5. gksudo gedit /etc/init/network-manager.conf
  • Copy and paste the below code, below the existing ‘stop on stopping dbus’:
  • kill timeout 1
6. gksudo gedit /etc/init/modemmanager.conf
  • Then look for the existing ‘stop on stopped network-manage’ text line, and simply paste the below code just below it :
  • kill timeout 1
7. Comment out this line works too in /etc/init/modemmanager.conf :
  • #start on starting network-manager
  • stop on stopped network-manager
* If your Eclipse Android SDK Manager wont start after 3rd step in moving /tmp to RAM,
then execute :
  • sudo mount -o remount,exec /tmp
and in /etc/fstab comment line
  • # Move /tmp to RAM
  • # tmpfs /tmp tmpfs defaults,noexec,nosuid 0 0

04 February 2013

How to configure Ubuntu to allow IP Forwarding for torrent ?


I figured it out.

Edit /etc/default/ufw and set

DEFAULT_FORWARD_POLICY="ACCEPT"

and restart network...

Set root password in Ubuntu


Open the terminal and type


  • sudo passwd root


and write new password .

03 February 2013

How to setup CodeTyphon - for Cross compiling FPC and Lazarus - AIO

This is install procedure in Ubuntu 12.10 64bit environment :

1. Install last CodeTyphon zip packet from


2. Extract archive in folder , for example :

  • /home/ct 

3. Enter that folder from Terminal with root privileges and start

  • ./install.sh

4. Only for the first time of CodeTyphon installation in your Computer, select option

  • (3) "Install System Libraries" (about 10 min.)
    • for Ubuntu 12.10, you will need to manually add these packages
      • sudo apt-get install binutils-dev devel-essential

5. After System Libraries Installation, run again "Install.sh" and select option

  •  (0) "Install CodeTyphon Studio"

6. After copy operation, select option
  •  (8) "Remove and Build All" (about 15 min.)

6. After that, you have CodeTyphon Studio installed in your dash, start it and select :

  • menu Cross-Build and choose desired platform

7. Than you should start Lazarus and choose related fpc, for example :

  • /usr/lib/codetyphon/fpc/bin/x86_64-linux/ppcx64 (for Linux64)
  • /usr/lib/codetyphon/fpc/bin/x86_64-linux/ppcross386 (for Win32)
  • /usr/lib/codetyphon/fpc/bin/x86_64-linux/ppcrossx64 (for Win64)

8. Finally, don't forget to choose menu Project/Project Options/Code Generation/Target OS :

  • Linux
  • Win32
  • Win64

Write Once, Compile Anywhere

How to build FPC and Lazarus from SVN for cross-compiling

This procedure is implemented in Ubuntu 12.10 64bit.

1. You need to install subversion via apt-get in Terminal window :

  • sudo apt-get install subversion

2. Than you can download your first trunk of fpc and lazarus :

  • cd /home/svn
  • cd fpc
  • svn checkout http://svn.freepascal.org/svn/fpc/trunk
  • cd lazarus
  • svn checkout http://svn.freepascal.org/svn/lazarus/trunk

3. For later update from svn sources :

  • cd /home/svn
  • svn update fpc 
  • svn update lazarus

4. To build fpc and lazarus

  • make clean all


29 January 2013

How to download source code from SVN or GIT in Ubuntu

In terminal windows type :

sudo apt-get install subversion
sudo apt-get install git

than you can download trunk with sort of these commands :

svn checkout http://android-samples.googlecode.com/svn/trunk/ android-samples-read-only
git clone https://code.google.com/...

28 January 2013

How to set RelativeLayout inside ScrollView

<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView01"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<RelativeLayout
android:id="@+id/RelativeLayout01"
android:layout_width="fill_parent"
android:layout_height="638dp" >

... UI elements here ...

</RelativeLayout>
</ScrollView>

How to fix unreadable tooltips in Ubuntu Eclipse

An easy workaround to fix this is to install gnome-color-chooser.
Open it, go to Specific -> Tooltips and put black foreground over pale yellow background.

27 January 2013

Create new application shortcut in Ubuntu 12.20 Unity

First you must have installed Gnome Panel :

sudo apt-get install gnome-panel

Then you must start gnome panel window for creating new shortcut:

sudo gnome-desktop-item-edit /usr/share/applications/ --create-new

After that, you can search for and open it from the Unity Dash, and drag and drop it to Launcher.

25 January 2013

Eclipse Android SDK Manager not work in Ubuntu 12.10 (64bit)

If you have error with Android SDK Manager in Eclipse, while installing Android SDK, you are missing ia32-libs from your Ubuntu 12.10 (64bit), than you need to install it with:

sudo apt-get install ia32-libs

Install Java SDK 7 on Ubuntu 12.10

To get started, press Ctrl – Alt – T on  your keyboard to open the terminal. When it opens, run the commands below to add the required PPA.

sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update && sudo apt-get install oracle-java7-installer


14 December 2012

How to change the Windows 8 product key

Start the Command Promt in Administrator mode by pressing [WinLogo]+X,
then execute
slmgr.vbs -ipk ABCDE-VH26C-733KW-K6F98-J8CK4
To activate windows after changing the key:
slmgr.vbs -ato

07 December 2012

How to fix broken packages

To fix broken packages in Ubuntu,

Go to System > Administration > Synaptic Package Manager and click Edit > Fix Broken Packages.

or in a terminal (Applications > Accessories > Terminal)
 

sudo apt-get -f install

23 November 2012

Fixing VirtualBox on Ubuntu 12.10

I installed VirtuaBox (4.1.18) on Ubuntu 12.10 (host os) so I can install Windows 8 (guest os) and use Microsoft office products as they are way superior to LibreOffice. Anyway, as soon as I opened Virtualbox, it came up with the error message, "Kernel driver not installed (rc=-1908)"


Well, after browsing for hours, I found a way to fix the issue. I just had to use the following commands.

        sudo apt-get install linux-headers-$(uname -r)

        sudo apt-get remove virtualbox-dkms

        sudo apt-get install virtualbox-dkms

Furthermore, after installing Windows 8 as a guest os and after installing guest additions, I wasn't able to enable "Switch to seamless mode", so I wasn't able to set the resolution to 1366x768 and I had to stick with 1024x768. Finally I found a workaround for that problem too. I had to use the command,

         sudo vboxmanage setextradata global GUI/MaxGuestResolution any

Hope this information will be useful for other Ubuntu users.

from xchamitha blog: Fixing VirtualBox on Ubuntu 12.10

19 October 2012

Definitive Android SDCard folder structure


In the root of the external storage (SDCard) save your shared files in one of the following directories:

Music - Media scanner classifies all media found here as user music.
Podcasts - Media scanner classifies all media found here as a podcast.
Ringtones - Media scanner classifies all media found here as a ringtone.
Alarms - Media scanner classifies all media found here as an alarm sound.
Notifications - Media scanner classifies all media found here as a notification sound.
Pictures - All photos (excluding those taken with the camera).
Movies - All movies (excluding those taken with the camcorder).
Download - Miscellaneous downloads.

from : http://developer.android.com/guide/topics/data/data-storage.html#filesExternal

18 October 2012

ClockworkMod Recovery Custom ROM procedure


Everytime I install a new Rom, I double check to make sure it has a boot.img, then upon using CWM to install it, I first do the following(some of them are redundant, but I do so for good measure):


  • wipe data/factory reset
  • wipe cache partition
  • advanced > Wipe Dalvik Cache
  • advanced > Wipe Battery Stats
  • mounts and storage > unmount cache
  • mounts and storage > format /boot (If the rom had a boot.img)
  • mounts and storage > format /cache
  • mounts and storage > format /data
  • mounts and storage > format /system


Then I install the ROM zip, and if I want GAPPS, I flash those afterward.
Then reboot.

This ensures that ALL data is gone, and it will not allow for unique bugs caused by remaining data from a previous rom.

from: http://forum.xda-developers.com/showpost.php?p=32947067&postcount=11

12 October 2012

Cyanogenmod Partitioning SD Card

Partition the SD card
- Scroll down, and select “Advanced”
- Select “Partition SD Card
- Choose your Ext Size (I recommend choosing half of the storage space that your card is.
   - For a 256mb card, select 128M
   - For a 512mb card, select 256M
   - For a 1gb card, select 512M
   - For a 2gb card, select 1024M
   - For a 4gb card, select 2048M
   - For a 8gb card, select 4096M
- any memory card higher than this will not be partitioned, the phone will not be able to read it properly, but I would recommend an 8gb card, and if you have any smaller than 1gb, I wouldn’t even bother wasting your time – but go ahead if you wish.
- Now it will ask you what Swap size you want:
   - If you have a 256mb or a 512mb card, select 0M.
   - If you have a 1gb or a 2gb card, select 32M.
   - If you have a 4gb or a 8gb card, select 64M.
- If it asks to confirm, select yes, now wait for a few minutes, and reboot

13 September 2012

Install VLC in OpenSuse 12.2


In Terminal mode type :

sudo zypper ar http://download.videolan.org/pub/vlc/SuSE/12.2 VLC
sudo zypper mr -r VLC
sudo zypper in vlc

11 September 2012

How to install Lazarus in OpenSuse 12.2


To install fresh packages from Lazarus Daily Snapshots (http://freepascal.dfmk.hu/test/lazarus/)
type in Terminal (Super User mode):

rpm -Uvh fpc-2.6.0-0.laz.i686.rpm
rpm -Uvh fpc-src-2.6.0-0.laz.i686.rpm

zypper in lazarus-1.1.38611-20120911.laz.i686.rpm
(instead of rpm -Uvh lazarus-1.1.38611-20120911.laz.i686.rpm)

How to install Google Chrome in openSUSE

Don’t be confused about Chrome and Chromium. Both are browsers and using the same engines, then what’s the difference?, the difference is one is actively developed by open source community[Chromium] and the other is maintained and developed by Google[Chrome]. Google Chrome can say provide stable version, while Chromium is dev build version[unstable] which is stable though but have new features which then go to Google Chrome stable version later. Chromium is already provided in openSUSE default repositories. But for Google Chrome we need to add new repository. Which will have three versions, stable, beta, unstable. If you want to have different versions of this browser, install both Chromium and Chrome. Currently i’m running both versions, stable version from Google[Chrome] repository and dev build[Chromium] from openSUSE repositories. 1st of all open terminal and become root by su - , and then type, choose your system architecture:

64bit version


         zypper ar http://dl.google.com/linux/chrome/rpm/stable/x86_64 Google-Chrome

32bit version


         zypper ar http://dl.google.com/linux/chrome/rpm/stable/i386 Google-Chrome

Now type:

         zypper ref


And install Google Chrome:

        zypper in google-chrome-stable

Now you will have two versions of Chrome/Chromium browser.

taken from :
http://anl4u.com/blog/how-to-install-google-chrome-in-opensuse

08 September 2012

MS Windows 32bit vs. 64bit

"The key consideration is RAM: 32-bit Windows can address only 3.5GB, while 64-bit Windows can address 4GB or more. Because so many new PCs come with at least 4GB, that's why you're seeing Windows x64 as the default OS."

from: http://www.pcworld.com/article/205885/windows_32bit_vs_64bit_personalize_your_os.html

P.S.: But, I must report that this my HP 2730p with 4Gb RAM work faster with 64bit versions of MS Windows and OpenSuse.