Sabtu, 09 Agustus 2014

Command Line Job/timer "at"

 Perhatikan baris perintah dibawah ini:


pada baris pertama timer diset jam 20:00 selanjutnya akan menjalankan perintah mematikan komputer list timer/job yang sudah kita seting bisa terlihat dengan mengetik "at" seperti pada baris dua, bila ingin membatalkan timer/job maka lakukan baris perintah seperti pada baris ketiga. selamat mencoba

Rabu, 23 April 2014

Add Your Yahoo Account to Outlook 2013 Using IMAP settings


Open Outlook 2013 and go to File tab.
yahoo Outlook 2013 Image1
Then, just above the Account Settings button, click Add Account.
yahoo Outlook 2013 Image2
Select Manual setup or additional server types.
yahoo Outlook 2013 Image3
Then in Choose service select POP or IMAP
yahoo Outlook 2013 Image4
Add your user information and for server information,
Account type: IMAP
Incoming mail server: imap.mail.yahoo.com
Outgoing mail server (SMTP): smtp.mail.yahoo.com
Then add your logon information as below.
yahoo Outlook 2013 Image5
Go to More settings and select the Outgoing server tab.
Check box next to My outgoing server (SMTP) requires authentication and select the radio button next to Use same settings as my incoming mail server.
yahoo Outlook 2013 Image6
In the same window go to the Advanced tab and verify the following.
Incoming server (IMAP): 993 or 143
Incoming server encrypted connection: SSL
Outgoing server (SMTP): 25 or 465
Outgoing server encrypted connection: TLS
Click OK when finished.
yahoo Outlook 2013 Image7
Click Next.
If you've entered everything correctly, both tasks will be completed successfully and you can close the window and again click Next.
yahoo Outlook 2013 Image8
You'll get You're all set! message,
Click Finish.
yahoo Outlook 2013 Image9
And now you can check your emails through Outlook.
yahoo Outlook 2013 Image10
sunber:http://pop2imap.com/yahoo_outlook_2013.php

Selasa, 22 April 2014

PowerShell SMTP


# Required parameters
$smtpServer # SMTP server hostname / IP address
$emailFrom # Sender (some SMTP servers require a valid local address)
$emailRcpt # Recipient (comma seperated if multiple)
$emailSubject # Email subject line
$msgBody # Email body
 
$FilePath # Path to attachment file
 
$domain  # Network domain
$username # Network username
$password # Network password
 
# Create required objects...
$smtp = New-Object Net.Mail.SmtpClient -arg $smtpServer
$msg = New-Object Net.Mail.MailMessage
$attach = New-Object Net.Mail.Attachment($FilePath)
$cred = new-object System.net.networkCredential
 
# Populate mail message...
$msg.From = $emailFrom
$msg.To.Add($emailRcpt)
$msg.Subject = $emailSubject
$msg.IsBodyHTML = $true
$msg.Body = $msgBody
$msg.Attachments.Add($attach)
 
# Provide credentials to SMTP client
$cred.domain = "the domain you want"
$cred.userName = "username"
$cred.password = "password"
$smtp.credentials = $cred
 
# Send...
$smtp.Send($msg)

Sabtu, 01 Februari 2014

ExtJS Save Chart

Save Chart/convert to image

tbar: [

    {
        text: 'Save Chart',
        handler: function () {
            Ext.MessageBox.confirm('Confirm Download', 'Would you like to download the chart as an image?',
                function (choice) {
                    if (choice == 'yes') {
                        chart.save({
                            type: 'image/png'
                        });
                    }
                });
        }
    },


ExtJS Custom Chart, Series Tips Custom


Tempelkan code ini disetiap series type ex: bar,column dll

{   highlight: true,
    type: 'bar',
    axis: 'bottom',
    xField: 'name',
    yField: ['data1', 'data2']
    ,tips: {
        trackMouse: true,
        width: 200,
        renderer: function (storeItem, item) {
            this.setTitle(
                item.value[0] + '<br>' +
                    Ext.util.Format.number(item.value[1], '0,0')
            );
        }
    }

hasilnya seperti ini:

ExtJS Custom Chart, Axes Numeric

{
    type: 'Numeric',
    label:
            {
                renderer: function (v) {
                    return String(v).replace(/(.)00000$/, '.$1M');
                }
            },
    grid: true,
    position:'bottom'
}

hasilnya seperti ini: 

ExtJS Custom Chart, Series Bar Width

Tambahkan custom script pada series bar:

//====================== custom width bar

,groupGutter: -100
, renderer:function (sprite, record, attr, index, store) {
    if (index % 2 > 0) {
        return Ext.apply(attr, {
            height: attr.height / 2,
            y: attr.y + ((attr.height / 2)/2)
        });
    } else {
        return Ext.apply(attr, {
        });
    }
}
//====================== custom width bar 

copy source ini ke dalam localhost pada folder "\examples\charts"
Hasilnya seperti ini: