Why must be Tableau for create the best report dashboard for BI?





If you ever tried powerbi I would like to suggestion you try to use tableau some then you may change your mind to pick up tableau instead BI tools as you are using now.

Why I have said that? YES PowerBI that very simple and easy, it's good for the end of user to build some simple dashboard and tableau also have best quality as powerbi but the one of main thing of tableau is got my heart cause it's very fast while you are running report.

If you have any question or problem of tableau and powerbi, ETL I would like to help you for this scope of your job. I a consultant of tableau and powerbi also including ETL as well.

Welcome to my page.

Robot Framework RIDE ติดตั้ง เริ่มเขียน - For Beginner

Robot Framework คืออะไร
เอาสั้นๆง่ายๆ คือโปรแกรมเอาไว้เขียนให้ระบบมันทำงานของตัวมันเอง ไม่ต้องไปทำซ้ำๆ เช่น เอาไว้แก้ Bug เวลาทำเว็บหรือระบบอะไรก็แล้วแต่ เริ่มกันเลย อย่ามัวเสียเวลา

การติดตั้ง ขอบอกว่าโคตรเยอะ จะมีปุ่มให้คลิกทีเดียวแล้วติดตั้งให้หมดเลยไม่ได้ ต้องมาติดตั้งทีละตัว และการ Download มาแต่ละโปรแกรมก็แสนจะเยอะ เจ้เลยรวมทุกอย่างไว้ที่นี่ ที่เดียวจบปะ

1. จง Download โปรแกรมดังต่อไปนี้ (คือ download มาให้ครบทีเดียวจะได้ไม่งง หรือใครจะงงก็ว่าไป)
     1.1 Python 2.7.x ไปที่ 
            https://www.python.org
     1.2 wxPython2.8-win64-unicode-2.8.12.1-py27 
          ไปที่ https://sourceforge.net/projects/wxpython/files/wxPython/2.8.12.1/
     1.3 Chrome Driver ไปที่
          
https://chromedriver.storage.googleapis.com/index.html?path=2.37/
           ตัวนี้ไม่ต้องก็ได้ หากใครไม่ได้ Test Script ผ่านทาง Browser

2. ลง Python ดับเบิ้ลคลิกที่ exe เลือกไปไว้ที่ C:\ หลังจากนั้นคลิก next อย่างเดียวหลังจากเปลี่ยน path ที่จะลงแล้ว

3. ไปที่ windows พิมพ์ cmd เพื่อเปิด command line (คงไม่ต้องบอกนะว่าอยู่ที่ไหน ถ้าหาไม่เจอก็ตรงซ้ายมือเมนูที่เราจะคลิกเข้าโปรแกรมนั้นแหล่ะ มีรูปแว่นขยายอยู่ หรือถ้า Windows เก่าหน่อยก็จะเป็นช่องให้ค้นหา พิมพ์เข้าไปเลย cmd แล้วกด enter)


4. จากนั้นให้พร้อมไปที่ Folder ที่เราเพิ่งลง Python ไปตามภาพ
5. ติดตั้งเครื่องมืือดังต่อไปนี้ ไม่ต้องถามว่ามันคืออะไร เพราะเจ้เองก็ไม่รู้อิๆ หลักง่ายๆคือ copy คำสั่งแล้วว่างที่ Command line หลัง C:\Python27> นะจ้ะ ขอย้ำว่าทุกคำสั่ง เพราะเจ้รวบรัดตัดตอน แต่ถ้าใครชอบแบบมีคำอธิบายเยอะ ลองคลิกเข้าไปที่นี่ คำเตือน ฝรั่งล้วนๆนะ แต่พอเดาได้
https://www.swtestacademy.com/getting-started-robotframework/

pip install robotframework กด Enter
python -m pip install -U pip กด Enter
robot --version กด Enter
rebot --version กด Enter


pip install --upgrade robotframework  กด Enter
pip install robotframework==2.9.2  กด Enter

ทำทีละคำสั่งหละ มันมีให้ กด Enter คั้นอยู่นะ


** ถ้า command line มันยาว ก็ปิดแล้วเข้าใหม่ ก็ทำต่อขั้นตอนถัดไปได้นะคะ

และจากนั้นให้ลง wxPython แล้วทำดังนี้ กด Next ดังภาพอย่างเดียว



ลงต่อหลังจากลง wxPython เสร็จ ยังทำที่ command line อยู่นะ ถ้าหลุดให้เข้าไปใหม่

pip install robotframework-ride   กด Enter
pip install robotframework-selenium2library    กด Enter
pip install --upgrade robotframework-selenium2library    กด Enter

pip install robotframework-selenium2library==1.4.1    กด Enter
pip install --upgrade selenium    กด Enter
pip install selenium==2.34    กด Enter

6. สุดท้ายละ ให้ลองพิมพ์คำว่า ride.py ใน command line แล้ว enter จะมีหน้าจอแสดงให้เราเขียนโค้ดแบบเก๋ๆดังภาพคะ

ทีนี้ก็โซโล่กันเลย ครั้งหน้าจะมาสอนการเปิด Browser แล้ว login เข้า facebook โดยใช้ Robot Framework หรือถ้าใครรอไม่ไหวเข้าไปที่นี่คะ
https://youtu.be/cmwCi1TGPC4




SSIS ตัวแปรวันที่ปัจจุบัน date_now

การสร้างตัวแปรวันที่เพื่อกำหนดขอบเขตในการดึงข้อมูล


สร้างตัวแปรดังนี้
date_start
(ตัวแปรหลักวันเริ่มต้น หากไม่ได้ใส่ค่าอะไร ตัวแปรนี้จะดึงค่ามาจากตัวแปร fix_date_start)

fix_date_start 
(ตัวแปรวันที่เริ่มต้น Default ไว้)

date_end 
(ตัวแปรหลักวันสิ้นสุด หากไม่ได้ใส่ค่าอะไร ตัวแปรนี้จะดึงค่ามาจากตัวแปร fix_date_end)

fix_date_end 
(ตัวแปรวันที่สิ้นสุด Default ไว้)

จากนั้นใส่ Function เพื่อกำหนดค่าให้วันที่เริ่มต้น
@[User::date_start] =="" ? (DT_STR, 4, 1252) DATEPART("yy" ,DATEADD("dd",-1,GETDATE()))+ "-01"
+ "-01":@[User::fix_date_start]


จากนั้นใส่ Function เพื่อกำหนดค่าให้วันที่สิ้นสุด
@[User::date_end] =="" ?
 (DT_STR, 4, 1252) DATEPART("yy" ,DATEADD("dd",-1,GETDATE()))+"-"+(DT_STR, 4, 1252) DATEPART("mm" ,DATEADD("dd",-1,GETDATE()))
+"-"+(DT_STR, 4, 1252) DATEPART("dd" ,DATEADD("dd",-1,GETDATE())):@[User::fix_date_end]

ปล.
เวลาเรียกใช้ ให้เรียกใช้ตัวแปรชื่อ date_start, date_end

How to change URL or Folder in WordPress

Why can not just change folder name of website in Wordpress but it did't work


If you not programmer you can search this keyword on google and follow them step "wordpress change page url"

but if you are any expert, I hope just look at this image then you will can get it how to do. Just change to name of myurl to the new domain name or new folder as you want.

good luck.


My knowledge will be here forever



Have you ever forgot some function name of program or some step to do some thing? ME! often ^_^ and The way I have tried to searching on google, sometime it fast and easy to get some answer but some time I have take long time to get some solution.

And if I have to asked some one in my office, some time they help and some time they were busy, I do not want to disturb them often and some of them were really help me but some of them were not happy when I asked them often and often T_T, YES! I understand that my brain have limited for memory and an other one may upset when they have to answer same question again and again then I have the way for me to help to remember and keep all knowledge as I ever had and will have in the future in here ^__^, If you afraid of your recognize, This way can help you. Happy and Enjoin!.

PHP Send Mail with Attached File






$filename_localfile="myfile.csv";
$mailContent="My content";
$mail_boundary = md5(uniqid(time()));
$mailSubject="My subject will appear on mail title";

$mail_headers .= "MIME-Version: 1.0\r\n";
$mail_headers .= "Content-type: multipart/mixed;boundary=\"$mail_boundary \"";
$mail_headers .= "\r\n\r\n";
$mail_headers .= "This is a multi-part message in MIME format.";
$mail_headers .= "From:soly K <mymail@gmail.com>\r\n";

$mail_headers .= "\r\n\r\n";
$fp = fopen($filename_localfile, "r");
$file = fread($fp, filesize($filename_localfile));

$file = chunk_split(base64_encode($file));

$mail_body = "--$mail_boundary\n";
$mail_body .= "Content-type: text/plain; charset=euc-kr\r\n";
$mail_body .= "Content-transfer-encoding: 8bit\r\n\r\n";
$mail_body .= $mailContent."\r\n";
$mail_body .= "--$mail_boundary\r\n";
$filename = basename($filename_localfile);

$mail_body .= "Content-type: application/msword; name=$filename\r\n";
$mail_body .= "Content-transfer-encoding:base64\r\n\r\n";
$mail_body .= $file. "\r\n\r\n";

$mail_body .= " --$mail_boundary--";

mail("tomailsomeone@gmail.com",$mailSubject, $mail_body, $mail_headers);

Import Data from Excel to Create Dashboard on QlikView - 2


Import Data from Excel for create dashboard in QlikView





You can import data from excel to QlikView on dashboard and I can say that it's such a very simple, However this way it was not flexible for user to flush data to keep present every time but it's simple way to create dashboard for short terms.

OKEY!
Let's see my VDO
https://youtu.be/iamSi7H_AO0