June 29, 2013

Visual Basic 6.0 : Exercise 2 " Pizza Order"

     by    Phaitoon  Yaemprasuan          

             Special Experienced Teacher
             
Information and Communication Technology Strand
 
           



Pizza Order Application

 We had just learned about programming with Microsoft Visual Basic 6.0 and tried to create two Windows applications (using Visual Basic 6.0), the first one was "Stop Watch" and the second was "Calendar/Time".  Some people have told me, the teacher, that it is interesting and challenging, while some other people have never said any word but have just thought that it is boring. Yes, the teacher realizes that programming is so valuable because it can develop anyone both systematic thinking and solving. Well, the teacher knows  that anybody can never hand on it if he is not interested in programming. But, now the teaching is not over, the show must go on! 
วกเราได้เรียนรู้เกี่ยวกับการโปรแกรมด้วยภาษาวิชวลเบสิก 6.0  และได้ลองพัฒนาแอ็ปปลิเคชันที่ทำงานในระบบวินโดวส์ 2 แอ็ป ด้วยกัน  โดยแอ็ปแรกเป็นนาฬิกาจับเวลา แอ็ปที่สองเป็นแอ็ปบอกวันเวลา  นักเรียนหลายคนก็บอกกับครูว่า "น่าสนใจและท้าทายมาก"  ขณะที่นักเรียนอีกหลายคนไม่พูดอะไรสักแอ่ะ...คิดอยู่อย่างเดียวว่า "มันน่าเบื่อ"   ใช่เลย..ครูตระหนักดีอยู่เสมอว่า ความจริงแล้วนะ.. การเรียนรู้เรื่องการโปรแกรมมันมีคุณค่าในตัวของมันเองอยู่แล้ว  เพราะมันเป็นการพัฒนาผู้เรียนให้รู้จักการคิด/การแก้ปัญหาอย่างเป็นระบบ  ครู..ทราบดีว่า.. นักเรียนคนไหนก็ตามที่รู้สึกว่าตนเองไม่สนใจในเรื่องของการโปรแกรมแล้วละก็ คงยากนะที่จะเอาดีในเรื่องนี้ได้ ... แต่ช้าก่อน... การเรียนการสอนก็คงหยุดไม่ได้ ... ก็ต้องว่ากันต่อไป..





  "Pizza Order" Application
แอ็ปปลิเคชัน "สั่งพิซซ่า"

     SOURCE  :   www.kidwares.com

June 28, 2013

Visual Basic 6.0 : Exercise

แบบฝึกหัด วิชวลเบสิก 6.0                                          
                                                                                   
       by    Phaitoon  Yaemprasuan           

             Special Experienced Teacher
             
Information and Communication Technology Strand             

1.  (What is Visual Basic?)     
2.  (VB-programming :  Exercise 1. Calendar/Time) 
3.  (VB-programming :  Exercise 2. Pizza Order) 


Exercise 1

Calendar/Time Display

   SOURCE  :   www.kidwares.com

1 Design a window application that displays the current month, day, and year.  Also, display the current time, updating it every second (look into the Timer control).  Make the window look something like a calendar page.  Play with object properties to make it pretty.

ให้นักเรียนออกแบบหน้าต่างแอ็ปปลิเคชัน ที่แสดงเดือนปัจจุบัน วันที่ และปี  และยังแสดงเวลา ณ ปัจจุบัน ที่จะอัปเดตทุกวินาทีอีกด้วย (เหมือนกับนาฬิกาจับเวลา)  หน้าต่างแอ็ปปลิเคชันนี้จะคล้ายเหมือนใบปฏิทิน  และให้นักเรียนตกแต่งอ็อบเจ็กต์ต่างๆ ให้ดูดี





June 26, 2013

Programming with Visual Basic 6.0

การโปรแกรม 
                                           
               

     by    Phaitoon  Yaemprasuan           
           Special Experienced Teacher
           
Information and Communication Technology Strand 
           


1.  (What is Visual Basic?)     
2.  (VB-programming :  Exercise 1. Calendar/Time) 
3.  (VB-programming :  Exercise 2. Pizza Order) 
                                                                                         

What is Visual Basic? 

วิชวลเบสิกคืออะไร


Visual Basic is a tool that allows us to develop Windows (Graphic User Interface - GUI) applications.  The applications have a familiar appearance to the user.
วิชวลเบสิก เป็นเครื่องมือของเราในการสร้างแอ็ปปลิเคชัน (โปรแกรมประยุกต์) ที่ทำงานภายใต้ระบบปฏิบัติการ Windows ซึ่งแอ็ปปลิเคชันที่ได้จะมีรูปแบบการติดต่อกับผู้ใช้เป็นกราฟิก (GUI : Graphic User Interface)

 Visual Basic is event-driven, meaning code remains idle until it is called upon to respond to some event (e.g. mouse clicking, button pressing, menu selection, ...).  Nothing happens until an event is detected.  Once an event is detected, the code corresponding to that event (event procedure) is executed.  

วิชวลเบสิก จะใช้ Event (เหตุการณ์) เป็นตัวขับเคลื่อนคำสั่ง (event-driven)  หมายความว่า โค้ดของโปรแกรม จะยังไม่ทำอะไร (idle) จนกว่ามันจะถูกเรียกให้ตอบสนองต่อ event  (เช่น การคลิกเมาส์  การกดปุ่ม  การเลือกเมนู  ฯลฯ)  นั่นคือ จะไม่มีอะไรเกิดขึ้นจนกว่า event จะถูกตรวจพบ  เมื่อนั้นแหละ code ของโปรแกรมก็จะตอบสนองต่อ event นั้นๆ  ในลักษณะของโปรแกรมย่อยๆ หรือโมดุล (event procedure)

 How to program with Visual Basic?
จะโปรแกรมด้วยวิชวลเบสิกอย่างไร
 

Steps in Developing Application 
ขั้นตอนการพัฒนาแอ็ปปลิเคชัน

There are three primary steps involved in building a Visual Basic application:
มีขั้นตอนหลักๆ 3 ขั้นตอน ที่เกี่ยวข้องกับการสร้างแอ็ปปลิเคชันด้วยวิชวลเบสิก
1.    Draw the user interface  ออกแบบส่วนติดต่อกับผู้ใช้
2.    Assign propertiesto controls  กำหนดคุณสมบัติให้กับคอนโทรล
3.    Attach codeto controls  ผูกติด code เข้ากับคอนโทรล



June 23, 2013

Supermoon-2013 ซูเปอร์มูน

เดือนเต็มดวงใหญ่-2556


         
          TEACHER  PHAITOON  YAEMPRASUAN
          PICTA55@GMAIL.COM
          OCCUPATION AND TECHNOLOGY GROUP
          June 22-23, 2013
       
        SOURCE  :     HTTP://WWW.BOSTON.COM/BIGPICTURE

Photographers around the world looked up to the sky this past weekend to capture the "supermoon." This is the phenomenon when the moon makes its closest approach to Earth, appearing 30 percent brighter and about 14 percent larger than a typical full moon. It occurs about once every 14 months and is technically called a perigee full moon. At 221,823 miles from Earth, the supermoon was a feast for the eyes.-Leanne Burden Seidel 
ช่างภาพจากทั่วโลก แหงนหน้ามองท้องฟ้า แล้วทำการจับภาพ ดวงจันทร์ดวงโต (ซุเปอร์มูน)  เพราะดวงจันทร์ได้โคจรเข้ามาใกล้โลกมากที่สุด (วงโคจรเป็นวงรี)  ดวงจันทร์จะสว่างขึ้น 30%  และมีขนาดโตกว่าปกติ 14%  ปรากฏการณ์แบบนี้จะเกิดขึ้นทุกๆ 14 เดือน เรียกว่า เพอริจี (perigee)


A cotton candy vendor walks in from of the moon during the Los Angeles Angels' baseball game against the Pittsburgh Pirates, June 22 in Anaheim, Calif. (Mark J. Terrill/Associated Press)
พ่อค้าขายขนมน้ำตาลปุยฝ่าย บนอัฒจันท์ชมเบสบอล ขณะเกิดซูเปอร์มูล  มลรัฐลอสแอนเจลิส

June 18, 2013

Walls ฝาผนัง

    from :  http://www.boston.com/bigpicture/2013/06/walls.html



They keep things out or enclose them within. They're symbols of power, and a means of control. They're canvases for art, backdrops for street theater, and placards for political messages. They're just waiting for when nobody's looking to receive graffiti. Walls of all kinds demarcate our lives. -- Lane Turner (41 photos total).
Note: You can now follow @bigpicture on the social network App.net, where you own your own data. If you'd like to try it out, we've also got some free invites for our readers.


Workers clean the curtain wall of the 40-story National Bank of Economic Social Development in Rio de Janeiro on December 12, 2012. (Vanderlei Almeida/AFP/Getty Images)

2
Maintenance workers are silhouetted by bright morning sunshine reflecting off the windows on a wall of the Shard building in London on April 30, 2013. (Andrew Winning/Reuters) #

3
A young boy jumps through a hole as others peer through the wall of a cell at Muzenze prison on November 21, 2012 in Goma, Congo. Almost all inmates of Goma's main prison managed to break out after prison warders abandoned their positions to flee from advancing M23 rebels. (Tony Karumba/AFP/Getty Images) #

4
A worker toils outside a broken cement wall in the collapsed garment factory building in search for bodies on May 2, 2013 in Savar, Bangladesh. (Wong Maye-E/Associated Press) #

5
"Por Una Cabeza" by artist Pelado covers a wall in the Palermo neighborhood of Buenos Aires on March 5, 2013. Buenos Aires has become one of the world's top capitals for international street art. (Natacha Pisarenko/Associated Press) #

6
People cast shadows on a wall covered in graffiti in Rio de Janeiro, May 11, 2013. Street art and graffiti are legal if done with the consent of building owners. (Pilar Olivares/Reuters) #

7
A woman walks along the East Side Gallery, part of the remains of the former Wall in Berlin on March 17, 2013. (Odd Andersen/AFP/Getty Images) #

8
Pedestrians walk past a wall of soccer balls displayed at a soccer equipment shop in Tokyo on February 21, 2013. (Kimimasa Mayama/EPA) #

9
Chinese artist Liu Bolin stands painted in front of a wall of magazines in the Kunstverein (art association) in Ludwigsburg, Germany on May 15, 2013. In his art works he blends himself with the background. (Bernd Weissbrod/EPA) #

A man checks an apartment with the walls blown off at the site of a blast in Reyhanli, Syria on May 13, 2013. (Umit Bektas/Reuters) #

An employee works in front of a wall of monitors in the central control room of the No.5 reactor at Chubu Electric Power Co.'s Hamaoka Nuclear Power Station in Omaezaki, Japan on May 17, 2013. (Toru Hanai/Reuters) #

A US Forestry fire fighter confronts a wall of flames during an out of control wildfire on May 2, 2013 in Camarillo, Calif. (Kevork Djansezian/Getty Images) #

A demonstrator lights up a spray can before a wall of riot police in Mexico City on December 1, 2012 during a post-election protest. (Eduardo Verdugo/Associated Press) #

Protesters move blocks of cement as they dismantle a wall in front of the presidential palace during a demonstration against President Mohammed Morsi in Cairo on December 11, 2012. (Hassan Ammar/Associated Press) #

Guests admire the west wall of the The Old Royal Naval College's Painted Hall following its first restoration in 50 years on May 2, 2013 in Greenwich, England. (Oli Scarff/Getty Images) #

People hang out on the beach next to the border fence separating Mexico from the US as the day comes to an end in Tijuana, Mexico on September 22, 2012. (Dario Lopez-Mills/Associated Press) #

A dog walks past the steel bars of the Berlin Wall memorial on November 21, 2012 at Bernauer Strasse in Berlin. (Britta Pedersen/AFP/Getty Images) #

Shin-Soo Choo of the Cincinnati Reds hits the outfield wall trying to make a catch at Wrigley Field on May 5, 2013 in Chicago. (Jonathan Daniel/Getty Images) #

Competitors at the Gladiator Rock N' Run maneuver the "beast," a wall they must scale to make it to the finish of the race in Irvine, Calif. (Mindy Schauer/The Orange County Register/Associated Press) #

A section of a half-mile long concrete wall, six feet tall and a foot or so thick, now covered with murals, built in the 1940s divides yards in Detroit on March 28, 2013. The wall was built with a simple aim: separate homes planned for middle-class whites from blacks who had already built small houses or owned land with plans to build in the neighborhood. It couldn't separate people on its own, people and policies would see to that, but it was enough to satisfy the Federal Housing Administration to approve and back loans. (Paul Sancya/Associated Press) #

The back of a Volkswagen Golf sticks out of the wall of a family home in Meissenheim, Germany on June 2, 2013. A drunk novice driver lost control of the vehicle. (NOTE: this photograph has been digitally altered to obscure the licence plate. The European Pressphoto Agency reports that the German press agency dpa provided the image, and must obscure the licence plate per German law.) (Wolfgang Kuenstle/EPA) #

An Afghan man takes a shortcut by climbing a wall at a hilltop in Kabul on May 11, 2012. (Danish Siddiqui/Reuters) #

Members of the 18th Street gang attend a mass at the prison of Izalco in El Salvador on April 13, 2012. (Ulises Rodriguez/Reuters) #

A child plays on a sticky wall on International Children's Day at Children's Palace in the Dongcheng district in Beijing on June 1, 2013. (Andy Wong/Associated Press) #

Cosmo Sarson's mural of Jesus breakdancing on the wall beside The Canteen is reflected in a window on June 11, 2012 in Bristol, England. The artist was commissioned by The Canteen to paint the wall, which is directly opposite Banksy's Mild Mild West. The controversial 'Breakdancing Jesus' was inspired by an actual event in the Vatican where breakdancers performed to an applauding Pope John Paul II in 2004, is likely to be the latest attraction for graffiti tourists visiting Bristol, often seen as the spiritual home of underground artist Banksy. (Matt Cardy/Getty Images) #

A child runs over a wall of sandbags near the flooding river Elbe in Dresden, Germany on June 6, 2013. (Jens Meyer/Associated Press) #

Girls play on a trampoline near a home blasted from a rock wall at the Rockland Ranch community outside Moab, Utah on November 2, 2012. (Jim Urquhart/Reuters) #

A competitor reacts after he performs at the Climbing Wall competition during the 2013 X-Games at Jiangwan Stadium in Shanghai on June 10, 2013. (Carlos Barria/Reuters) #

Soldiers rappel down a wall during a military graduation parade for trainees from the Libyan Army "Thunderbolt" Special Forces unit in Benghazi on May 16, 2013. (Esam Al-Fetori/Reuters) #

Liron Sitrek rappels down the wall of a hotel in La Paz on February 27, 2013. (Aizar Raldes/AFP/Getty Images) #

A woman looks from behind a brick wall of her house in the old quarters of Delhi on May 15, 2013. (Mansi Thapliyal/Reuters) #

Ivy crawls over a portrait of the Virgin Mary on a wall of a house in Madrid on March 22, 2013. (Juan Medina/Reuters) #

The Oppidans team huddle during the Eton Wall Game at Eton college in Eton on November 17, 2012. Originating in 1766, the game is played on a narrow strip 110 meters long up against a wall. The idea is to move the ball along the wall with your feet and score a goal at the far end. Goals are very rare, the last one scored was a hundred years ago in 1909. (Eddie Keogh/Reuters) #

Stone walls partition a hillside on the Dingle Peninsula in County Kerry, Ireland on May 29, 2012. (Jake Coyle/Associated Press) #

Tourists climb the Great Wall after a snow in Luanping, China on December 14, 2012. (Alexander F. Yuan/Associated Press) #

Waves crash against the sea wall at Seaham Harbour as successive bands of heavy rain moved across the British Isles on December 20, 2012. (Owen Humphreys/PA/Associated Press) #

Kyle Larson slides along the wall as Eric McClure goes low after the cars were involved in a multi-car crash on the final lap of a NASCAR auto race at Daytona International Speedway on February 23, 2013, in Daytona Beach, Fla. (John Raoux/Associated Press)#

A man is reflected in the electronic board on the wall of a securities firm in Tokyo on May 16, 2013. (Koji Sasahara/Associated Press)#

Graffiti artist Chimere paints a mural next to a highway in Dakar on May 9, 2013. (Joe Penney/Reuters)#

Sona Nakarmi, 7, writes on a wall at the Saraswati Temple during the Shreepanchami festival in Kathmandu on February 15, 2013. Children are given their first writing and reading lessons at the temple during this festival in the belief that the goddess of education, Saraswati, will help them excel in education. (Navesh Chitrakar/Reuters)#

An Indian devotee rests his forehead in respect on the wall of the Banke Bihari temple during Holi celebrations in Vrindavan, India on March 27, 2013. (Altaf Qadri/Associated Press)#

June 2, 2013

gMail2Teacher-1

Those Who Sent Mails To Occupatech@gmail.com



by    Phaitoon  Yaemprasuan           
Special Experienced Teacher
of 
Information and Technology Strand


 
The students had been assigned to send any message to Teacher's "occupatech@gmail.com" and he received those mails. Teacher observed that the energetic students did immediately while the inertia students did nothing. How does he do for the no-action people?
ครูผู้สอนมอบหมายให้นักเรียนส่ง message มายัง occupatech@gmail.com  ครูผู้สอนสังเกตว่า นักเรียนที่มีความกระตือรือร้นก็ทำในทันที ขณะที่นักเรียนที่เฉื่อยชาก็หาทำอะไรไม่  แล้วครูผู้สอนจะทำอย่างไรกับคนที่ไม่ทำอะไรเลย

June 1, 2013

gMail2Teacher

Those Who Sent Mails To Occupatech@gmail.com


by    Phaitoon  Yaemprasuan           
Special Experienced Teacher
of 
Information and Technology Strand



Teacher had reviewed his Gmail inbox, picta55@gmail.com, then captured the names of those who had sent their e-mails to this mail box. The list has been sorted by ascending from earlier date. On the day after Teacher is going to delete all of these received mails, please do not send any message of yours to this mailbox anymore. Because the time to send is over.
ครูผู้สอนได้ไปดูเมล์ picta55@gmail.com และทำการจับภาพรายชื่อนักเรียนที่ส่งเมล์มาหา โดยเรียงลำดับส่งก่อน/ส่งหลัง  หลังจากวันนี้ไปแล้วครูผู้สอนจะลบเมล์ทั้งหลายออก กรุณาอย่างส่ง message มาอีก เพราะหมดเวลาให้ส่งแล้ว

page 1


May 14-15