The market was higher in early trading, but has since given up those gains and is slightly in negative territory. The S&P 500 is down less than the Nazz so far, as financials and industrials are leading the early action while biotechs and other large-cap tech are lagging.

The yield on the 10-year note has moved above the 2.00% level by just a bit. The 10-year first fell to the 2.0% level last August and has been trading in a volatile but sideways fashion for the last six months. With economic datapoints improving, I would expect the 10-year yield to move a little higher despite the fact that the Fed is likely still buying long-term bonds.

Stocks trading higher after reporting earnings include AMAT, CPB, and HNZ to name a few. Stocks falling in reaction to earnings are BIDU, JWN, GIS, and HMSY.

Asian markets were higher overnight. The euro is also higher this morning, despite the fact we have no definitive news regarding the Greek debt situation.

Commodities are mixed. Oil prices are higher and have traded above $103; gold prices are slightly lower near $1724. Copper and silver prices are lower as well.

The VIX recently bounced off of its overhead 50-day near the 21.50 level but then moved sharply lower. Today it is down another 5.5% back to 18.15. At the time of the spike, I surmised it might have been exacerbated by this week's options expiration, which finishes today. So we will have to see if traders reload on puts next week and volatility spikes again.

Trading comment: The relentless march continues. The market has hit 9-month highs this morning. Growth stocks look to be subject to some profit taking today, but I don't expect it to last long. I still think the strategy of buying leading stocks on pullbacks will outperform, and by leading stocks I mean those that recently reported strong earnings and have been breaking out to new highs.

KAM Advisors has long positions in GIS

Mari kita bersama sama terus belajar belajar dan  belajar ilmu tentang php , kali ini saya sedikit sharing gmana caranya kirim email dari local host / xampp sent email ke gmail dengann SMTP gmail..
tanpa panjang lebar mari kita mulai : 
Selanjutnya untuk scriptnya nanti yang akan dibuat, pastikan memuat prosedur untuk melakukan proses parsing untuk semua SMS yang diterima oleh SMS center. Parsing ini harus dilakukan untuk mendapatkan nilai parameter-parameter tersebut, jika jumlah parameternya kurang dari 2 atau lebih dari 2, maka format SMS nya salah. Sedangkan jika parameternya berjumlah 2 dan parameter pertama berisi TWITTER, maka format SMS benar dan selanjutnya lakukan proses update status Twitternya.
maka untuk script update status Twitter ini kita masih menggunakan AJAX, meskipun ini hanya salah satu cara saja.
Sekarang kita coba buat script PHP untuk membaca SMS yang masuk di Inbox Gammu lalu memprosesnya dengan ide di atas.
update-twitter.php
01.<?php
02. 
03.// koneksi ke database Gammu
04.$dbhost = 'localhost';
05.$dbuser = '...';
06.$dbpass = '...';
07.$dbname = '...';
08.mysql_connect($dbhost, $dbuser, $dbpass);
09.mysql_select_db($dbname);
10. 
11.// membaca INBOX Gammu
12.$query = "SELECT * FROM inbox WHERE Processed = 'false'";
13.$hasil = mysql_query($query);
14.$data = mysql_fetch_array($hasil);
15.$id = $data['ID'];
16.$sms = $data['TextDecoded'];
17.$sender = $data['SenderNumber'];
18. 
19.// proses parsing SMS berdasarkan karakter #
20.$parse = explode('#', $sms);
21. 
22.// jika jumlah parameter hasil parsing adalah 2
23.if (count($parse) == 2)
24.{
25.// baca keyword hasil parsing
26.$keyword = strtoupper($parse[0]);
27.// baca status hasil parsing
28.$status = $parse[1];
29.// jika keyword adalah 'TWITTER' maka jalankan proses update status
30.if ($keyword == 'TWITTER')
31.{
32.include 'twitter.php';
33.$twitter = new Twitter('<consumer-key>', '<consumer-secret>');
34.$twitter->setOAuthToken('<access-token>');
35.$twitter->setOAuthTokenSecret('<access-token-secret>');
36.$twitter->statusesUpdate($status);
37.$reply = 'Update status Twitter sukses';
38.}
39.else $reply = 'Keyword salah';
40.}
41.else $reply = 'Format SMS Salah';
42. 
43.// menandai SMS di INBOX Gammu bahwa sudah diproses
44.$query = "UPDATE inbox SET Processed = 'true' WHERE ID = '$id'";
45.mysql_query($query);
46. 
47.// mengirim pesan SMS balasan ke nomor pengirim
48.$query = "INSERT INTO outbox(DestinationNumber, TextDecoded, CreatorID)
49.VALUES ('$sender', '$reply', 'Gammu')";
50.mysql_query($query);
51.?>
 
Keterangan:
  • Pastikan Anda sudah mendownload script twitter.php dan meletakkannya di dalam folder yang sama dengan script di atas.
  • Isikan , , dan pada bagian yang sudah ditentukan di atas. Untuk keterangan lebih detil, silakan pelajari lagi artikel sebelumnya.
Nah… script untuk memproses SMS yang masuk kemudian mengupdate status Twitter sudah dibuat, selanjutnya kita buat script AJAX supaya script di atas bisa berjalan terus menerus di SMS center nya. Kurang lebih, script AJAX nya seperti di bawah ini.
index.html
01.<html>
02.<head>
03.<script type="text/javascript">
04.function proses()
05.{
06.if (window.XMLHttpRequest)
07.{
08.xmlhttp=new XMLHttpRequest();
09.}
10.else
11.{
12.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
13.}
14. 
15.xmlhttp.onreadystatechange=function()
16.{
17.if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
18.{
19.}
20.}
21. 
22.xmlhttp.open("GET","update-twitter.php");
23.xmlhttp.send();
24.setTimeout("proses()", 5000);
25.}
26.</head>
27.<body onload="proses();">
28.<h1>SMS Center Twitter</h1>
29.</body>
30.</html>
Keterangan:
Script AJAX di atas senantiasa akan menjalankan script update-twitter.php setiap interval 5 detik (5000 ms), perhatikan setTimeout("proses()", 5000); Jika dalam setiap interval 5 detik itu ada SMS yang masuk ke INBOX dan memuat keyword TWITTER maka akan langsung melakukan update Twitter nya.
Script yang perlu Anda jalankan dibrowser hanyalah index.html saja, sedangkan untuk script update-twitter.php tidak perlu dibuka di browser karena sudah otomatis dijalankan oleh AJAX yang ada di index.html tadi.
OK… selamat mencoba ya, and… selamat menge-twit via SMS 
Oya.. script di atas belum saya coba sih.. tapi harusnya bisa jalan, soalnya coding nya langsung di blog ini, tanpa trial dulu.

Apa yang tidak mungkin jika dengan PHP, mengapa script PHP untuk mengirim email yang Anda buat tidak bisa berjalan di localhost? Sedangkan apabila script tersebut diupload di web hosting, maka script tersebut bisa berjalan dengan baik alias bisa berfungsi untuk mengirim email. Nah.. dalam artikel kali ini, akan saya paparkan cara mengirim email dengan script PHP yang dijalankan melalui localhost menggunakan XAMPP.
Di dalam PHP, terdapat sebuah function yang digunakan untuk mengirim email yaitu mail(); Supaya function tersebut bisa berjalan dengan baik, Anda membutuhkan sebuah module lain di luar PHP yang bertugas untuk mengirim pesan melalui email. Dengan kata lain, penggunaan perintah mail() ini tidak bisa berdiri sendiri hanya di PHP melainkan butuh module lain untuk melakukan tugas pengiriman email. Module yang bisa digunakan adalah untuk pengiriman email ini adalah ‘Sendmail’. Module ‘Sendmail’ ini sudah ada di software-software paket web development seperti XAMPP atau WAMP. Anda bisa cek module ini melalui direktori C:\XAMPP\SENDMAIL. Untuk di WAMP, silakan dicari sendiri ya… 
Nah.. selanjutnya akan saya paparkan bagaimana cara memanfaatkan module ‘Sendmail’ tersebut untuk proses pengiriman email melalui script PHP yang dijalankan melalui localhost.
Langkah pertama, kita harus memodifikasi file php.ini terlebih dahulu untuk mengaktifkan module ‘Sendmail’. Silakan buka file php.ini yang terletak di C:\XAMPP\PHP, kemudian cari baris berikut ini
01.[mail function]
02.; For Win32 only.
03.; http://php.net/smtp
04.; SMTP = localhost
05.; http://php.net/smtp-port
06.; smtp_port = 25
07. 
08.; For Win32 only.
09.; http://php.net/sendmail-from
10.; sendmail_from = postmaster@localhost
11. 
12.; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
13.; http://php.net/sendmail-path
14.sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
Pastikan untuk baris
1.sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
tidak ada tanda semicolon (;) di depannya, sedangkan untuk baris yang lain, tambahkan semicolon di depannya seperti tampilan di atas. Setelah file php.ini selesai diedit, simpan kembali dan kemudian lakukan restart Apache.
Selanjutnya, kita memodifikasi file konfigurasi dari module ‘Sendmail’ ini yaitu ‘sendmail.ini’. File ini terletak di dalam direktori C:\XAMPP\SENDMAIL.
Trus… apa yang harus diisikan di dalam file sendmail.ini tersebut?? yang diisikan adalah server SMTP yang akan digunakan untuk pengiriman email. Jika Anda mempunyai account GMAIL, maka silakan isikan
01.defaults
02.logfile "C:\xampp\sendmail\sendmail.log"
03. 
04.# SMTP Gmail
05.account Gmail
06.tls on
07.port 465
08.tls_starttls off
09.tls_certcheck off
10.host smtp.gmail.com
11.from xxx@gmail.com
12.auth on
13.user xxx@gmail.com
14.password xxx
15. 
16.account default : Gmail
Keterangan: pada parameter ‘from’ isikan alamat Gmail Anda, begitu pula untuk parameter ‘user’. Sedangkan pada parameter ‘password’ isikan password Gmail Anda.
Nah… proses setting module ‘Sendmail’ sudah dilakukan, selanjutnya Anda tinggal bikin script untuk kirim emailnya. Sebagai contoh misalkan diberikan script kirim email sederhana berikut ini
1.<?php
2.$tujuan = "rosihanari@gmail.com";
3.$subject = "Contoh Email";
4.$pesan = "Ini hanya contoh email saja";
5.mail($tujuan, $subject, $pesan);
6.?>
Oya… sebelum Anda menjalankan script kirim email, pastikan PC Anda sudah terkoneksi ke internet supaya bisa terhubung dengan SMTP nya Gmail.
Lantas, bagaimana bila Anda tidak punya account di Gmail melainkan punya di Yahoo Mail? Untuk Yahoo Mail, Anda bisa menggunakan SMTP dari Yahoo Mail dengan konfigurasi sbb:
01.defaults
02.logfile "C:\xampp\sendmail\sendmail.log"
03. 
04.# SMTP Yahoo
05.account Yahoo
06.tls on
07.port 465
08.tls_certcheck off
09.tls_starttls off
10.host smtp.mail.yahoo.com
11.from xxx@yahoo.com
12.auth on
13.user xxx@yahoo.com
14.password xxx
15. 
16.# Set a default account
17.account default : Yahoo
atau jika Anda memiliki SMTP server sendiri di web hosting, maka Anda bisa menggunakannya. Untuk detilnya silakan hubungi admin hosting Anda guna mendapatkan alamat SMTP servernya, nomor port dsb.
OK… selamat mencoba ya…

The markets are higher once again in early trading. Yesterday the market paused and gave back some ground, but it wasn't a big down day by historical standards. The market seems to be consolidating its recent gains in more of a sideways fashion as opposed to a meaningful pullback.

Today's news out of Moody's about potential downgrades in the financial sector are being shrugged off by the market. In recent months, this sort of news would have hit stocks and dragged down the financials. This goes to show how forgiving investor sentiment is currently.

In economic news, jobless claims came in better than expected for another week. And the Philly Fed survey was also better than expected coming in at 10.2 for February from 7.3 last month.

Earnings reports are a big of a mixed back this morning. While most folks focus on which companies beat or missed estimates, I like to also look at how stocks are reacting to earnings. This can give investors a good sense of how much of the prior quarter was already priced into stock prices.

Stocks rallying after reporting earnings include: GM, DUK, ASPS, and VFC. Stocks declining on earnings are: CBS, APA, MAR, CF, and WM to name a handful.

Asian markets were lower overnight, and Europe is lower today on continued concerns about Greek debt talks. The euro is also slightly lower today relative to the dollar.

Commodities are mostly lower as well. Oil prices are flattish near $101.75; gold prices are down near $1720; silver and copper prices are also lower on the day.

The 10-year yield is getting a bounce to the 1.97% level. And the VIX is down fractionally to 21.0 after a big rise in volatility yesterday.

Trading comment: Yesterday's action was completely colored by the action in AAPL. The stock is down further today, but it is now keeping the overall market down. Industrials are leading the early action, while healthcare stocks are lagging. Sector rotation continues and I still would look to add to stocks that recently gapped higher after reporting earnings if you can buy them on a dip. Those stocks should continue to lead the market.

KAM Advisors has long positions in AAPL



kali ini saya menshare Sebuah  Tutorial Photoshop  Mengubah warna rambut yang sebenarnya 
sudah banyak beredar di Inertnet.


Langsung aja kita praktekkan!



buka gambar model saya menggunakan gambar dibawah ini sebagai bahan praktek, bisa kamu download disini


klik icon Adjustment Layer lalu pilih Hue / Saturation


atur settingan seperti gambar dibahwa ini



dengan menggunakan eraser tool (gunakan mode Soft Brush, Sesuaikan ukuran brush untuk bagian yang akan kamu hapus) hapus bagian gambar kecuali bagian rambut






Hasilnya


Untuk mengganti warnanya, kamu klik icon layer adjustment layernya trus 
setting Hue nya sesuai keinginan kamu


Hasil akhirnya



The markets are nicely higher this morning after a big rally late in the day yesterday reversed the earlier losses from the session.

Asian markets were higher overnight after comments from a China official that hinted at the country looking to increase its investment in the eurozone. This also appears to be helping European markets this morning, even as the euro is lagging. A couple of GDP reports out of Europe showed that Q4 GDP declined -0.2% in Germany but rose +0.2% in France. Both were a little better than expected.

In the past Chinese officials have said they are not looking to increase their investment in the troubled eurozone. So this would be a bit of a change, although we would still have to see what any involvement looked like. My guess would be they are more inclined to invest directly in companies over there, especially natural resource companies, as opposed to simply lending to over-indebted governments.

In earnings news, positive reactions to earnings reports continue to trump negative ones. The list of stocks rallying after earnings includes: CMCSA, TEVA, MET, WCG, ANF, DF, DVN, and VMI. The only major stock trading down after earnings is Deere (DE).

In economic news, the Empire Manufacturing index for Feb. rose to 19.5 from 13.5 the prior month. The Housing Market index also improved in Feb. to 29 from 25 in January. These are small datapoints that continue to line up on the side of the ledger that supports a continued improving economic outlook in the U.S.

Commodities are mostly higher today. Oil prices are higher again near $101.70; gold prices are higher to $1733; silver prices are also higher, while copper prices are lower so far.

The 10-year yield is up just slightly to 1.94%; and the VIX is up +5% right now to 20.56. The higher VIX today is a bit odd given the gains in the market, and could be related to positioning ahead of this Friday's options expiration.

Trading comment: The action in stocks continues to be very positive. The list of those looking for a correction continues to grow. I even had a client call me yesterday and ask if we should be looking for a correction. Alas, it's never that easy, is it? AAPL just crossed the $500 mark on Monday and its already testing $525 today. The list of market leading growth stocks also continues to broaden, which is a marked change from 2011 when defensive stocks like utilities and consumer staples fared the best.

KAM Advisors has long positions in AAPL and DE
Diberdayakan oleh Blogger.