2023년 8월 31일 목요일

한게임머니상.010 9331 6906

 010-9331-6906 한게임머니상


한게임머니상 카톡: m6906 / 전화: 010-9331-6906 Hangame is an online community of gamers, who enjoy playing and competing against each other in tournaments and mini-games for cash prizes. The Hangame Money Awards are given out to gamers who show exceptional skill in their chosen game or tournament. These awards come in the form of real money, which can be used to purchase items from the online shop or withdrawn as cash.

Creating Python Google App with Aptana and Pydev

This document is focus on setup a development environment and start a web application based on Google App Engine (GAE) on Python SDK using Aptana IDE.


Google App Engine currently support create applications on three different languages: Java, GO and Python.  Many developers like to work their projects with a good text editor (Gedit, Notepad++, JEdit, TextMate, MCedit, Vim, etc.) but others go for a sophisticated IDE (Integrated Development Environment). Currently Google  gives a plugin for develop Java applications on Eclipse IDE, but not for Python and GO. Lets focus on start a whole project based on Python.

First than all let's start by setting the all environment by downloading the Python SDK from code.google.com. For Windows just install the ".msi" executable and for Linux just extract the ".zip" in your "home" folder. Don't forget to install Python on Windows.

Now let's go to get the Aptana IDE at aptana.com. For Windows just execute the installer and for Linux unpack the ".zip" file and make sure of install Sun Java JDK or JRE (Please not Open JDK). Aptana comes with PHP, HTML, CSS, Javascript, YAML, SQL and more editors. The most I like is the Django Template editor, but we'll get there. Aptana comes by default with a Git client but if you work with SVN take a look at plugin Subclipse.

Aptana is based on the Eclipse framework and therefore is possible to install many Eclipse plugins on it. The plugin that allow coding Python on Aptana (and Eclipse) is Pydev. Once you open Aptana for the first time select the Pydev perspective.



Let's specify the version of Python to Pydev in Aptana. Select "Window -> Preferences -> Pydev -> Intrepeter - Python". Click on the "Auto Config" button or select the path of your Python interpreter on the "New ..." button.


Lets start by creating a new Pydev Google App Engine Project. Select "File -> New -> Project -> Pydev -> Pydev Google App Engine Project".


Make sure to select the correct version of Python for the project and the path for the Google SDK. Look at the images below.







Now we have the development environment complete. I will assume that you have created an application on https://appengine.google.com/. For the next example I will use my own app called djangoabdel (I called like this because I like Django a lot!)


When I started reading the documentation of GAE it was evident that there is a lot of freedom for create your own framework. So I will show my way but you can innovate or use any pure Python framework (Django?). Lets take a look at this image:


Here I have:
  • main.py - This is the start point of the whole application.
  • appengine_config.py - At the top level of your project is automatically imported bygoogle.appengine.ext.webapp.util.run_wsgi_app() to add middlewear to webapp applications. This is how I specify Django version (1.0, 1.1 or 1.2). Take a look at.
  •  app.yaml - The heart of the app configuration.
  • templates - folder that will contain static files like images, css files, javascript files, etc. This is the UI of your application.
  • controllers - python package that contains all the controllers or business scripts of our application.
  • models - python package that contains all the models or  Entities of our application.
  • libs - python package that contains all the third party libraries.
I will create a post for explain more detailed the different parts.

One thing that happened to me while creating this way of development was a problem trying to import the controllers, libs, models to the main.py file. The solution is pretty simple, just add this to the __init__.py file in the package folder:


import os, sys

path = os.path.abspath(".")

sys.path.append(os.path.join(path, __name__))



Even if sometimes you have trouble trying to import a package just restart the test server. Just keep this in mind (Oh, you will!).

Now lets create a "Run" configuration so we can run our development server. Go for "Run -> Run Configurations...". Here double click on "Pydev Google App Run" and set a name to this configuration and the at "Main Module" point to "dev_appserver.py" file. This file is in the SDK installation files.


The last of the configuration is click on the "Arguments" tab and on "Program Arguments" add the path to your application folder.


Now click on "Apply" button and then on "Run" button for run the app. Now all the messages of the application will appear on the 'Console" tab. Here you can stop the development server too.


Now that the "Run" configuration is created, the "Debug" configuration is created automatically. Take a look at the short-cut buttons. 


Just remember that for debugging set your break points.


While you will be coding you'll enjoy the auto-complete behaviour of Pydev (Ctrl + Space Bar). But the most I like is the Django Template Editor for the GAE template files. When opening a html file from the "Pydev Package Explorer" do a right click "Open with ->" and select "HTML.Templates Django Editor (Aptana)". GAE takes advantage of the Django template tags and filters, so lets  do the same on this editor.

The last part is upload our app to Google so that's easy as do a right click on our project "Pydev: Google App Engine -> Upload".



Thank you for your time.

4 comments:

  1. This was the best description of setting up Aptana for App Engine development that I've found, but I have one question: I don't get a "Pydev: Google App Engine -> Upload" (or in fact any "Pydev: Google App Engine" options). Any idea what I'm missing?

    Reply
    Replies
    1. Hi Derek!
      I am glad that I have helped someone with this small tutorial. First than all the project must be created as a Pydev Google App Engine project. Take a closer look at image #4 where the project is created (File -> New -> Project -> Pydev -> Pydev Google App Engine Project). After this when the project is created just right click on the project folder in the view "Pydev Package Explorer"(penultimate image).

  2. Hello Abdel:

    Thanks for the tutorial.
    Issuue#1:
    I was able to create a "hello webapp world" sample for Google App engine, and ran it with no errors with dev_appserver.py, but it does not stop at the breakpoint.

    I set the break point in the class method like so:

    class MainPage(webapp.RequestHandler):

    def get(self):
    self.response.headers['Content-Type'] = 'text/plain'
    self.response.out.write('Hello, webapp World !') # <<== Break point is here.


    I was able to see the response using localhost:8080 on Firefox.
    So the sample code is working, but breakpoint is not working.


    Issue#2:
    I did not see ay short cuts for displaying different views like package Explorer.

    I have the latest Aptana studio (3.4) download on for Linux.
    Please advice.
    thanks.

    Reply

한게임머니상,피망머니상,피망포커칩판매 카톡:m6906 국민:010-9331-6906

 한게임머니상-010 9331 6906


한게임머니상-국민-010 9331 6906,카톡 m6906 피망포커 머니상 010 9331 6906 3d animation motion graphics ui 피망머니상 피망

A brief history of engineering | origin of word 'engineering' | what is engineering


 What is engineering? 
Engineering is the application of scientific and technical knowledge to solve human problems. Engineers use imagination, judgment, reasoning and experience to apply science, technology, mathematics, and practical experience. The result is the designproduction, and operation of useful objects or processes.






The history of engineering can be divided into four major areas of development: the pre-scientific revolution, the industrial revolution, the second industrial revolution, and the information age.


Coliseum
Pyramid
The pre-scientific revolution would include construction the pyramids of the Egyptians, the famous structures of the ancient Greek culture such as the Parthenon and Acropolis, and the ancient Roman structures such as the Coliseum, Circus Maximus, Hadrian’s Wall and aqueducts for water transportation. These structures were built using simple machines and tools. They also used a very important geometric formula a squared + b squared = c squared (Pythagorean theorem) developed by the Greek Pythagoras, as the basis for getting structures to be square and true. The ancient civilizations built these structures but did not understand the physics or scientific theory that allowed the structures to stand or for all of the equipment the used to build these structures.

           The forerunners of engineers, practical artists and craftsmen, had to proceed mainly by trial and error.  Yet tinkering combined with imagination produced many marvelous inventions of consequence.  Many ancient monuments are something we should admire for the ability of ancient man to overcome and improvise to create the monuments we view today.  The admiration is embodied in the name “engineer” itself.  The term engineer began to be used in the eleventh century was derived from the Latin ingeniator, meaning one with ingenium, the ingenious one.  Leonardo da Vinci bore the official title of Ingegnere Generale for the ideas he possessed  His notebooks reveal that some Renaissance engineers had begun to ask the question about how to systematically evaluate what works and why.

Steam engine machine



 


Industrial revolution
“The first phase of modern engineering emerged in the Scientific Revolution.  Galileo’s Two New Sciences, which seeks systematic explanations and adopts a scientific approach to practical problems, is a landmark regarded by many engineer historians as the beginning of structural analysis, the mathematical representation and design of building structures. This phase of engineering lasted through the First Industrial Revolution, when machines, increasingly powered by steam engines, started to replace muscles in most production. When Watt improved the steam, people knew what the engine could do, but no one really understood thermodynamic thrust or how it worked, just that it did work. The understanding of the principle would be at least fifty years behind the steam engines use. The skilled people who built these machines were artisans and their skills were paramount to creating the industrial

         While pulling off the revolution, traditional artisans transformed themselves to modern professionals. The French, more rationalistic oriented, spearheaded the development of civil engineering with emphasis on mathematics and developed university engineering education under the sponsorship of their government.  The British, more empirically oriented, pioneered mechanical engineering and autonomous professional societies under the laissez-faire attitude of their government.  Gradually, practical thinking became scientific in addition to intuitive, as engineers developed mathematical analysis and controlled experiments.  Technical training shifted from apprenticeship to university education.  Information flowed more quickly in organized meetings and journal publications as professional engineering societies emerged.” http://www.creatingtechnology.org/history.htm

A factory


The military academy at West Point was a direct result of George Washington’s recommendation to Congress. The first schools in the United States to offer an engineering education were the United States Military Academy (West Point) in 1817, an institution now known as Norwich Univ. in 1819, and Rensselaer Polytechnic Institute in 1825. An engineering education is based on a strong foundation in mathematics and science; this is followed by courses emphasizing the application of this knowledge to a specific field and studies in the social sciences and humanities to give the engineer a broader education. The broader based education helps the engineer to understand how what he does affects the world around him or her. http://www.answers.com/topic/engineering
Military engineers

Until the Industrial Revolution there were only two kinds of engineers. The military engineers built such things as fortifications, catapults, and, later, cannons. The civil engineers built bridges, harbors, aqueducts, buildings, and other structures. During the early 19th century in England mechanical engineering developed as a separate field to provide manufacturing machines and the engines to power them. The first British professional society of civil engineers was formed in 1818; that for mechanical engineers followed in 1847. In the United States, the order of growth of the different branches of engineering, measured by the date a professional society was formed, is civil engineering (1852), mining and metallurgical engineering (1871), mechanical engineering (1880), electrical engineering (1884), and chemical engineering (1908). Aeronautical engineering, industrial engineering, and genetic engineering are more modern developments having their development in the Twentieth Century.
The second industrial revolution occurred during the historical period from the 1840’s to the 1930’s when the science base engineering fields came into existence. The areas of chemical engineering, electrical engineering, and other science-based fields of engineering developed electricity, telecommunications, airplanes, and mass production causing many changes in the world as the engineer knew it. The changes also changed the product people used and the way technological advancement was perceived.

Modern electronics




 
Burj Khalif
The information age has produced many more changes in the fields of engineering. The field of engineering has matured as telecommunications, microelectronics and computers have caused us to forge ahead into the field of information technology. Today the field of engineering is second only in size to teaching.  The field that in the 1700’s had two major fields today had listed on one website over eighty different majors for the field of engineering (http://www.answers.com/topic/fields-of-engineering). The fields ranged from the traditional civil and mechanical fields to nano-engineering and environmental engineering. The changes have occurred since the rapid changes in technology have caused a need for engineers to create products to handle a wide range of different problems in these new technologies. The fields of engineering are growing as the technology of society changes to meet the needs of society.






 






14 comments:

August 14, 2020 at 7:01 AMReply

Thanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts.

python training in chennai

python course in chennai

python online training in chennai

python training in bangalore

python training in hyderabad

python online training

python training

python flask training

python flask online training

python training in coimbatore

August 15, 2020 at 11:22 PMReply
August 27, 2020 at 8:06 AMReply

I simply want to mention I am just all new to blogging and site-building and truly loved you’re web page. Almost certainly I’m planning to bookmark your site . You really have outstanding stories. Many thanks for revealing your webpage.…
Azure Training in Chennai

Azure Training in Bangalore

Azure Training in Hyderabad

Azure Training in Pune

Azure Training | microsoft azure certification | Azure Online Training Course

Azure Online Training

January 12, 2021 at 6:59 AMReply

Excellent blog thanks for sharing the valuable information..it becomes easy to read and easily understand the information.
Useful article which was very helpful. also interesting and contains good information.
to know about python training course , use the below link.

Python Training in chennai

Python Course in chennai

May 7, 2021 at 11:38 PMReply

Thank you for your post, I look for such article along time, today i find it finally. this post give me lots of advise it is very useful for me.
Amazon Web Services Training in Chennai

September 20, 2021 at 12:22 PMReply

Ucuz, kaliteli ve organik sosyal medya hizmetleri satın almak için Ravje Medyayı tercih edebilir ve sosyal medya hesaplarını hızla büyütebilirsin. Ravje Medya ile sosyal medya hesaplarını organik ve gerçek kişiler ile geliştirebilir, kişisel ya da ticari hesapların için Ravje Medyayı tercih edebilirsin. Ravje Medya internet sitesine giriş yapmak için hemen tıkla: ravje.com

İnstagram takipçi satın almak için Ravje Medya hizmetlerini tercih edebilir, güvenilir ve gerçek takipçilere Ravje Medya ile ulaşabilirsin. İnstagram takipçi satın almak artık Ravje Medya ile oldukça güvenilir. Hemen instagram takipçi satın almak için Ravje Medyanın ilgili sayfasını ziyaret et: instagram takipçi satın al

Tiktok takipçi satın al istiyorsan tercihini Ravje Medya yap! Ravje Medya uzman kadrosu ve profesyonel ekibi ile sizlere Tiktok takipçi satın alma hizmetide sunmaktadır. Tiktok takipçi satın almak için hemen tıkla: tiktok takipçi satın al

İnstagram beğeni satın almak için Ravje medya instagram beğeni satın al sayfasına giriş yap, hızlı ve kaliteli instagram beğeni satın al: instagram beğeni satın al

Youtube izlenme satın al sayfası ile hemen youtube izlenme satın al! Ravje medya kalitesi ile hemen youtube izlenme satın almak için tıklayın: youtube izlenme satın al

Twitter takipçi satın almak istiyorsan Ravje medya twitter takipçi satın al sayfasına tıkla, Ravje medya güvencesi ile organik twitter takipçi satın al: twitter takipçi satın al