Showing posts with label mini. Show all posts
Showing posts with label mini. Show all posts

Wednesday, May 10, 2017

Mini PyCon Malaysia 2014

Mini PyCon Malaysia 2014



Website at http://www.pycon.my/mini-pycon-my-2014


Python on Google App Engine

Speaker: Desmond Lua

<to be done> see https://plus.google.com/115982009673713015482/posts/GSvHDNUaEY4 for now


Boosting Productivity with IPython
Speaker: Boey Pak Cheong

Get iPython from http://ipython.org/ or at Github repository.

When first start off with Python and used the Python shell, you may feel it is severely limited compared to other environments. Then came the interactive shell that is QT-based, and finally the arrival of the Web Notebook.




Whats interesting is decoupled evaluation from the REPL environment, into its own kernel process. This allows several clients to connect simultaneously to the kernel.

You get features such as

  • ? gives you overview
  • tab completion
  • object introspection

Any sufficiently advanced technology is indistinguishable from magic - Arthur C Clarke

And so we have magic functions in iPython.

Similar to vi, the !<cmd> gives you a shell escape. You can capture the output by using var = !<cmd>. For debugging purposes, run %debug to activate post-mortem debugging. 

Heres another nifty feature: loading code from URL %load http://matplotlib.org/mpl_examples/showcase/integral_demo.py

You dont even have to install IPython, run it online at  http://nbviewer.ipython.org/. See some examples at http://nbviewer.ipython.org/github/ipython/ipython/blob/master/examples/notebooks/Part%201%20-%20Running%20Code.ipynb#

Learn More

All you need to know about IPython is available at http://ipython.org/ Want more? Go through IPython in depth via this self-paced course https://github.com/ipython/ipython-in-depth


Python Powered Cloud 

Speaker: Joe Ziegler
Time: 1400

Joe is giving an interesting introduction to Amazon Web Services Elastic Beanstalk with Python.


You can use Elastic Beanstalk for free. You only pay for the underlying resources - see the Elastic Beanstalk pricing page.

Joe is giving a live demonstration of writing Python code, deploying it to AWS and using Elastic Beanstalk. Since I cannot share it here, try watching these videos instead.


Detailed introduction to Elastic Beanstalk


Deploy and scale Python apps with Elastic Beanstalk


Python in Robotics Development 

Speaker: Yap Wen Jiun
Time: 1450

Next up, someone who is constantly pushing the edge of programmable robotics with plenty of experience in Arduino, is going to show us Python in robotics environment.

Did you miss out the Micro Python at Kickstarter? Well according to the speaker this may have limited use - think about the low level sensors and LEDs that you are controlling using Python, a high level language.



Introducing you to the Robot Operating System, a meta OS for robotics applications. You get:

  • hardware abstraction
  • low-level device control
  • etc
If you are a commercial user, good news, ROS is BSD-licensed: i.e. you can do anything with the code, including modify and sell it, without sharing your modification. Simply acknowledge the author in the copyright section. 

Try to cut up your robotics systems to as many Nodes as possible. So that it is modular and easy to use. The Node is the core entity in ROS
  • Small program written in Python or C++
  • Executes relatively simple task
  • Every node can be started and stopped independently of each other
You have to imagine your ROS application as a graph of nodes. Nodes get to know each another via rosmaster, and they can communicate via Topics and Services. These small programs can be written in C++ or Python. 

Some examples:
Asus Xtion Pro / OpenNI camera
iRobot Create


Heres a code snippet of a publisher in Python

Loading https://gist.github.com/9563032....


For the explanation and the Subscriber part of the code, head over to http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber%28python%29


Creating Powerful RESTful API Services with Django Tastypie

Speaker: Leong Seh Hui
Time: 1520

First of all, lets take a look at what Tastypie is. Seems even the worlds most powerful person loves Tastypie.



N-O-P-E. We are talking about this Tastypie. In programmers slang: Tastypie is a fuckin awesome API framework for Django for creating REST interfaces (and sod off if you need to say lily-livered stuff like REST-ful or REST-style).

Being an Asian, I am naturally gifted at regurgitating content, so these are the features plucked right from the website:


  • Full GET/POST/PUT/DELETE/PATCH support
  • Reasonable defaults
  • Designed to be extended at every turn
  • Includes a variety of serialization formats (JSON/XML/YAML/bplist)
  • HATEOAS by default
  • Well-tested & well-documented

I can do no justice to Seh Huis comprehensive demonstration, so take a look at the code at https://github.com/felixleong/pyconmy2014-tastypie


Concurrency in Python

Speaker: Farzad Ghanei
Time: 1600

Does the word "concurrency" scares you? It scares me. So heres the gist of concurrency in Python by Farzad. The whole idea is to break up a big chunk of processing into smaller chunks. The important question is - in what order are the chunks processed? One of the biggest problem has always been unpredictable execution path.

GIL (Global Interpreter Lock)  is not going to help you if your application is CPU Bound only. At the moment there is no solution yet.

Threads are:
  • Good for user interactivity
  • Not good for CPU bound tasks
Coroutines brings co-operating concurrency, with predictable execution. Think yield. See also PEP 380 and greenlet. Imagine three persons holding hands and walking together - explaining greenlets.

Whilst explaining Twisted, Farzad said

I can see how your faces look like. That is exactly why this library is named Twisted.

His own experience of using 200 processes performed much better than threads, process and gevent.

Take note that each frameworks website will claim their solution performs better than other alternatives. Performance varies according to the nature of the task (CPU-bound or IO-bound), and you have to test it out yourself before concluding which framework is the most suitable.


Lightning Talk Breakout

Pycons in East Asia

Speaker: Victor Neo

Pycon Singapore - 18th - 20th June 2014
Pycon India (Bangalore) - 26th - 28th September 2014
Pycon Japan (Tokyo) - 13th - 15th September 2014


MorePath

Speaker: kagesenshi

Morepath is a micro web framework that is flexible yet expressive. Read more at http://morepath.readthedocs.org/en/latest/

Pycon Malaysia 2015

Speaker: Ng Swee Meng


Manage, test and monitor infrastructure with Salt and Python 

Speaker: Bruno Clermont 


For alerts and errors, sentry is a great option with excellent integration with Django, etc.
Logging - GrayPy. Does anyone know a good centralized logging fully implemented in Python?

Statistics on server side - Carbon for the web UI and Graphite.

For statistics producers, Diamond is a daemon that run collectors (network interface I/O to RabbitMQ) at specific frequency, and send them to Carbon.

Here is what it looks like with StatsD/Graphite.


On the monitoring side, use Shinken - because it scales better than Nagios.

You can write Nagios plugins easily via https://pypi.python.org/pypi/nagiosplugin/

For backup, tarfile and subprocess to create archives, boto to upload to AWS S3.

The 2 most popular Puppet replacements are Ansible and Salt. This talk will focus on Salt. Some important concepts:


  • formulas are what you want to be on the server, not execution scripts
  • grains are static client information
  • pillars are configuration applied to formula (stored on server)


Enhanced by Zemanta

Go to link Download

Read more »

Saturday, January 7, 2017

Add Mini Sliding Facebook Like Box For Blogger Blog By Masti Computer

Add Mini Sliding Facebook Like Box For Blogger Blog By Masti Computer


       
Add Mini Sliding Facebook Like Box For Blogger Bog By Masti Computer

Are you looking for a way to promote your Facebook fan page received?Today I give you one piece to increase your Facebook likes.Statistics add Facebook like box perched on your blog or website.Widget remain in a constant on the right side of your website mode.When you hover over the blue s Facebook like box will then dragAnd be using jQuery. As you know, required social media back contactTo increase page rank and maintain the health of the site. So keep in mind that I put thisPiece and Im sure it will increase Facebook likes. Ive shared a floatingFacebook like Facebook fund such as Popup Fund and widgets for blogger swamp,but I flattererSharing a miniature version of Facebook, such as a floating box. Im sure you will like it!.Add Mini Sliding Facebook Like Box For Blogger Blog By Masti Computer.





Add Mini Sliding Facebook Like Box For Blogger Blog?

Follows Steps.





1 : Login to Blogger Account.

2 :Go to Layout Tab.

Step -1:

3 : Click on Add a Gadget.
Step-2:


4 : Then Scroll down and select widget type as HTML/JavaScript.


Step-3:
5 :Paste the following Code inside it.




<script type="text/javascript">
//<!--
$(document).ready(function() {$(".bbtmini").hover(function() {$(this).stop().animate({right: "0"}, "medium");}, function() {$(this).stop().animate({right: "-250"}, "medium");}, 500);});
//-->
</script>
<style type="text/css">
.bbtmini{background: url("https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjvX38Sf2gv3jFc_GrqG5xW_cnGlT09sTQ_jIvvni3nwxrYL1cwJxQd13FBMbnUzpeVU9I6CDfDeG04-HWyclLBh6xFaiCgMxb5KwZAniyU2k2vPvakeiInWSiDIfrQzmx6F5DejhvyzUtm/s1600/FB-sliding-widgets-HTD-100px.png") no-repeat scroll left center transparent !important;display: block;float: right;height: 100px;padding: 0 5px 0 30px;width: 245px;z-index: 99999;position:fixed;right:-250px;top:20%;}
.bbtmini div{border:none;position:relative;display:block;}
.bbtmini span{bottom: 12px;font: 8px "lucida grande",tahoma,verdana,arial,sans-serif;position: absolute;right: 6px;text-align: right;z-index: 99999;}
.bbtmini span a{color: #808080;text-decoration:none;}
.bbtmini span a:hover{text-decoration:underline;}
</style>
<div class="bbtmini" style="right: -250px;">
<div>
<iframe src="http://www.facebook.com/plugins/likebox.php?href=http%3A%2F%2Ffacebook.com%2FMastiComputer&amp;width=230&amp;colorscheme=light&amp;show_faces=true&amp; connections=9&amp;stream=false&amp;header=false&amp;height=100" scrolling="no" frameborder="0" style="border: medium none; overflow: hidden; height: 100px; width: 230px;background:#fff;"></iframe>
</div>
</div>



6 :Just replace MastiComputer with your Facebook username.
7:Hit Save Button and View Blog.

Go to link Download

Read more »

Friday, September 30, 2016

ROBOTIS Mini Dance Contest Rules for the KC Area Schools Pilot Competition Spring 2016

ROBOTIS Mini Dance Contest Rules for the KC Area Schools Pilot Competition Spring 2016



Dancing with the Robots

How to Enter:

For a school to enter into the contest a team must be formed based on the following:

á         Four our more students being overseen by a teacher

á         Team must show variety of interests in the Science, Technology, Engineering, Arts, and Mathematics (STEAM) fields


This team must then make a video answering the following questions:

1.       What is unique about your team?

2.       Which category of STEAM is each member interested in the most?

3.       What will be unique about your teamÕs robot?

4.       What theme and song choice is your team considering for the routine?


The video will need to be submitted onto ROBOTIS INC Youtube channel before March 25th. The teams will be decided and announced by March 27th.


Contest Guidelines:

The teams that are selected will be provided with a DARWIN-MINI kit to build, program, and choreograph for their routine. The performance must follow the guidelines below:

á         There must be at least one student on stage with the robot for majority of the performance

á         There can be up to 5 robots in the routine, but they all must utilize ROBOTIS Dynamixel actuators and one robot must be a DARWIN-MINI

á         All robots must be fully autonomous

á         No dancer is allowed to come into physical contact with a robot, but the robots themselves may interact

á         Routine should stay within 2-5 minute timeframe

á         Props, costumes, staging, and original music are highly encouraged


When a team feels that they are ready, they will need to record, edit, and submit their performance to the ROBOTIS Inc. contest website before July 30th.The video will then be forwarded to the companyÕs Youtube channel which is where the teams will need to promote their videos among their contacts to receive the most amount of ÒlikesÓ beforeAugust 13th.



After the promotional deadline, the voting process will cease and reviewed to be tallied into their initial score. Then a process for designated judges will determine the winning team. The winner will receive an award for their school and a trophy.



Below is more detail about the Dance video competition: 

Dancing with the Robots


Summary

ROBOTIS, Inc. is accepting proposals from local schools to enter ROBOTISÕ robot dancing competition, ÒDancing with the Robots.Ó The purpose of this RFP is to establish the necessity of ÒDancing with the Robots,Ó to establish competition eligibility requirements, and to provide schools with the evaluation criteria against which they will be judged.


Purpose

To address the lack educational materials and solutions to cultivate future mathematicians, scientists, and engineers in the United States, ROBOTIS Inc. is willing to host a robot dancing competition called ÒDancing with the Robots.Ó This competition encourages the utilization of robots to entice students to enter into the Science, Technology, Engineering, and Mathematics (STEM) fields and cultivates comradery among the students from other specialized areas, such as Drama, Music, and Arts, to create a creative and fun dance routine utilizing a ROBOTIS Mini kit.


Description

ROBOTIS will be supporting up to 5 schools to participate in this competition. To qualify, each schoolÕs team, composing of at least 4 students and an overseeing teacher, will need to make a video stating why they should be selected to participate based off a set of standards that will be asked from every candidate. The video will then need to be submitted to ROBOTIS to decide if they will compete.


Each team will be provided with a ROBOTIS MINI robot kit to program and choreograph a dance based on a theme and song that lasts at least 2 minutes and does not exceed 5 minutes.  When the team feels they are ready, they will then need to record their performance and post it on ROBOTIS Inc. channel.


Guidelines

What the teams will need to do until the final deadline of determining a winner, each team will need to promote their videos within their connections to have their video to receive Youtube Òlikes.Ó The team that receives the most number of ÒlikesÓ and earns the most number of points based on evaluation criteria, ROBOTIS will award their school with a prize.


Evaluation Criteria

Each team can earn a maximum of 200 points. Contestants are judged in 5 categories:

¥         Teamwork (30 points) - Team Composition

-          Team Chemistry

-          Team Spirit and Enthusiasm

¥         Performance (30 points)

-          Creativity

-          Utilization of Props, Scenery, Light and Sound Effects, and Costumes

-          Interaction

¥         Choreography (40 points) - Theme and Flow

-          Rhythm

-          Utilization of Dance Floor

-          Difficulty

¥         Robot Design (40 points) - Durability

-          Mechanization

-          Effective Utilization of Sensors

-          Design Originality

¥         Programming (60 points)

¤  Efficiency

¤  Automation/Navigation


ROBOTISÕs rubric is based on LegoÕs First Lego League Rubric (2013) and RoboCup JuniorÕs Dance Interview and Dance Performance Score Sheets (2014).3, 4, 5.






Go to link Download

Read more »