joomla 1.6 logout ไม่ได้
เพิ่มบรรทัด
<?php echo JHtml::_(‘form.token’); ?>
ก่อนหน้าบรรทัด
<input type=”submit” name=”Submit” value=”<?php echo JText::_(‘JLOGOUT’); ?>” />
ผมทำแล้ว work
อ้างถึง
http://forum.joomla.org/viewtopic.php?f=625&t=601015
กลัวหาย NXC (1)
/*
A simple line following program.
You will need 2 light sensors attached to inputs 1 and 3.
Place the bot on the test pad, with the wheels
on the start line facing forward.
Then start the program.
author: Jan-Klaas Kollhof
last changed by: $LastChangedBy$
last changed date: $Date$
revision: $Revision$
*/
#define LightThreshold 50
#define Fast 75
#define Slow 20
task main(){
SetSensorLight(IN_3);
SetSensorLight(IN_1);
//lets turn 90 deg left
RotateMotorEx(OUT_BC, Fast, 180,-100, true, false);
//now follow the line
OnFwd(OUT_BC, Fast);
while(1){
if(SENSOR_3 < LightThreshold){
//sensor 3 just detected a black line
//so lets go a bit slower on it's side
OnFwd(OUT_B, Fast);
OnFwd(OUT_C, Slow);
}else if (SENSOR_1 < LightThreshold){
//sensor 1 just detected a black line
//so lets go a bit slower on it's side
OnFwd(OUT_B, Slow);
OnFwd(OUT_C, Fast);
}else{
//either it is all black or all light
//lets just go forward
OnFwd(OUT_BC, Fast);
}
}
}
———————————————
/*
A simple line following program.
It works with the standard NXT bot.
Place the bot on the test pad, with the wheels
on the start line facing forward.
Then start the program.
author: Jan-Klaas Kollhof
last changed by: $LastChangedBy$
last changed date: $Date$
revision: $Revision$
*/
#define LightThreshold 50
#define Fast 75
#define Slow 30
task main(){
SetSensorLight(IN_3);
//lets turn 90 deg left
RotateMotorEx(OUT_BC, Fast, 180,-100, true, false);
//now follow the line
OnFwd(OUT_BC, Fast);
while(1){
if(Sensor(IN_3) > LightThreshold){
//we just went off of the black line
//so lets slow down on the right
OnFwd(OUT_B, Slow);
}else{
OnFwd(OUT_B, Fast);
}
}
}
———————————————
/*
A simple programm for avoiding
obstacles using the sonic sensor.
It works with the standard NXT bot.
author: Jan-Klaas Kollhof
last changed by: $LastChangedBy$
last changed date: $Date$
revision: $Revision$
*/
#define VeryClose 20
#define Close 40
#define Slow 30
#define Fast 70
task main(){
SetSensorLowspeed(IN_4);
while(1){
TextOut(0, LCD_LINE1, “sonic”, true);
NumOut(70, LCD_LINE1, SensorUS(IN_4));
int dist = SensorUS(IN_4);
if(dist < VeryClose){
//lets spin 45 deg in a random direction
if(Random(2) == 0){
RotateMotorEx(OUT_BC, Fast, 180, -100, true, false);
}else{
RotateMotorEx(OUT_BC, Fast, 180, 100, true, false);
}
}else{
OnFwd(OUT_BC, Fast);
}
Wait(100);
}
}
อ้างถึง
http://jan.kollhof.net
ถึงครูคอมพิวเตอร์โรงเรียนประถมศึกษาครับ
มาร่วมแลกเปลี่ยนความรู้ ประสบการณ์ที่ท่านได้พบมาได้ที่นี่ครับ
ผมเคยเผยแพร่แนวคิดของผมกับครูหลายๆ ท่านในการจัดการเรียนการสอนคอมพิวเตอร์ ไว้ ๓ ระดับดังนี้
ระดับที่ ๑ คอมพิวเตอร์เพื่อชีวิตประจำวัน เรียนเกี่ยวกับการใช้งานโปรแกรมประมวลผลคำ โปรแกรมคำนวณ โปรแกรมนำเสนอ
ระดับที่ ๒ คอมพิวเตอร์เพื่องานอาชีพ เรียนเกี่ยวกับการใช้งานโปรแกรมตกแต่งภาพ วาดภาพ การวัดต่อวิดีทัศน์ การสร้างเว็บไซต์ ฯลฯ
ระดับที่ ๓ คอมพิวเตอร์โปรแกรมเมอร์ เรียนเกี่ยวกับการเขียนโปรแกรมสำหรับเด็กๆ เช่น โปรแกรมภาษาโลโกต่างๆ Microwolrds Scratch LogoBlock โปรแกรมเหล่านี้มีกิจกรรมการเรียน ได้แก่ การสร้างภาพเคลื่อนไหวหรือการควบคุมหุ่นยนต์ ให้นักเรียนได้ทำกิจกรรม
หวังว่าคงได้รับแนวร่วมเพิ่มขึ้นน่ะครับ
เสียงเบาๆ ที่อยู่ในสังคม
ผมไม่ชอบทุนนิยม และก็ไม่ใช่พวกซ้าย ผมอยู่ที่บ้านผม ที่มีต้นไม้ ที่ที่รถไม่ติด มีข้าวที่พ่อปลูกประมาณ 5 ไร่ที่เรากินได้ตลอดปี มีปลาในสระในที่นาของเรา มีผลไม้ในสวนของเรา มีผักที่เราปลูกและมันเกิดขึ้นเอง
Why teach Robotics?
Robotics is fast becoming an integral part of the school curriculum with it’s ability to integrate across a broad range of topics, most notably the Technology, Science and Math Key Learning Areas.
Robotics encourages kids to think creatively, analyse situations and apply critical thinking and problem solving skills to real world problems. Teamwork and co-operation are a cornerstone of any robotics project. Students learn it is acceptable to make mistakes, especially if it leads them to better solutions.
Robotics is a fun and engaging way to teach fundamental technology, maths and science concepts. There are several key facets that the teaching of robotics promotes:
* Problem Analysis: Robotics encourages students to take a broad look at a situation and identify exactly what problem needs to be solved. Real world applications are easily found, giving students context for their project. Before any construction can begin, students must identify “what need will this robot fulfill?”. With this in mind, how should the robot be designed to meet these need?
* Real World Design: With an application in mind and an idea of implementation, students can now begin the design process. This stage provides great rewards for students as the as they produce physical realisations of conceptual ideas. There is plenty of opportunity for refinement and improvement as they discover errors in their plans and issues they would never have considered during the design stage. Prototypes are quickly built and just as quickly discarded with lessons learnt as students progress towards an optimal solution. Resources must be managed and compromise made between form, function and cost.
* Programming: There are a variety of programming languages available for robotics, from graphical development environments to text based languages. Programming skills teach students to think logically and to consider multiple situations, as they learn a robot will do exactly as it is told, no more and no less. Information from a variety of sensors must be processed and dealt with logically and as with the design stage, there is ample opportunity for trial and error as students fine tune their robots to perform at their best.
อ้างอึง http://www.domabotics.com














