Tuesday, December 15, 2009

How To Make A Pellet Trap

Some tips developer PL / SQL - Latest Some tips

Most tend to fall into routines, in almost every aspect of our lives. People are creatures of habit: learn to write code in a way, you assume certain limitations on the product, leave aside possible solutions without serious revision because you know you can not do. Developers become even openly biased with their own programs, and often not so positive. They are often heard saying things like:


"I can not run faster, it sucks" "I can not function as the user wants, will have to wait until the next version
  • "If I used X or Y or that product, would instantly. But with this, only battle"
  • In reality your program almost always runs a little faster. And that may, in fact, run
  • just the way the user wants. And while each product has its limitations, strengths and weaknesses, should never have to wait until the next version. Is not it more rewarding to be able to tell your therapist that you entered the problem head on, do not put excuses, and when you put together a solution?
How do you do? Pull down the barrier of the same solutions as usual and give a fresh look at world (or maybe just to your cubicle). Revalora your coding habits. Be creative, get out of the routine methods of mechanical and limited approaches that are constantly reinforced in our workplaces. try something new, experiment with what appears to be a radical change to business as usual. You'll be surprised how much you learn and grow as a programmer and troubleshooter. A Over the years, "says Steven," I am surprised again and again to where you can get when they suddenly say, "That can not be done!" instead of just nodding and murmuring, "Now, if I do it this way ..."



Tuesday, December 1, 2009

London Fruit And Herb Tea, Canada

Starting with the use of schemas, users and permissions with Postgres. ScreenCast

Hi all, in recent days we have been developing postgres and play with us to create the basis for the system, due to the complexity represented using multiple tables and the administration of them decided to organize them into patterns, dividing the logical basis using common tables found in a scheme that is visible to all here present a small introduction to the schemes.


To create a schema, just use the command: CREATE SCHEMA

esquema1;

schemes are used in separate databases for giving us a logical choice to take one time running a real system and a test within the same base but separated by a diagram, we also have two different schemas same table names that represent us without fail.


If we create a table in our new scheme we will:

CREATE TABLE esquema1.tabla1 (id_tabla1 integer, name text);

Now to create postgres users will be used: CREATE USER daniel

;

Thus we already have a schema and a user within our database, with which we can practice the use of privileges.
You can assign users to various types of authorization for different parts of the database. For example:


* The authorization of reading.

* push authorization.

* The authorization to upgrade.

* The permit deletion.

Each of these types of authorization is called privilege. You can give each user all these types of privileges, none of them or a combination thereof on specific parts of the database, such as a relationship table view or a schema. The standard includes the privileges SQL select, insert, update and delete.


The SQL data language includes commands to grant and remove privileges. The instruction is used to grant authorizations. The basic form of this command is:


privileges grant-list-on-behalf of relationship or view-to-list or role-

the list of privileges allows the granting of various privileges with a single command, the following statement grants the user daniel grant authorization on the relationship table1 select

esquema1.tabla1 to grant select on daniel

authorization may be granted update on all attributes of the relationship or only on some. If authorization is included in an update education grant, the list of attributes on which the authorization is given in brackets can update just after the update keyword, if you omit the attribute list, the update privilege is granted on all the attributes of the relationship.

The following statement grants the user daniel grant authorization attribute update on the amount of the loan relationship:

grant update (name) on esquema1.tabla1 to daniel

privilege insert can also specify a list of attributes, any inclusion in the list must specify only those attributes and the system assigns the rest of the defaults (if any for them) or set to zero.

public user name refers to all current and future users of the system. Therefore, the privileges granted to public implicitly granted to all current and future users.
now to remove authorization revoke statement is used. grant is very similar to the syntax is:


revoke privileges-list-on-behalf of the relationship and name of the view-from-user list or role-

therefore to remove the previous privileges would be as follows:


esquema1.tabla1 to revoke select on daniel



revoke update (name) on esquema1.tabla1 to daniel



far this introductory article, there is much to even try, I hope to these items on the users, schemas and privileges.

Greetings!


Sources:

Database Fundamentals. fifth edition Silberschatz, Korth, Sudarshan

Official List of postgres

http://www.postgresql.org/

Monday, November 2, 2009

Netflix To Router Settings

part developer PL / SQL - 2nd Some tips

Chances are, if you are a software professional, you're a very intelligent person. You studied hard, perfect your skills and now you see the good life writing code. Solve almost any problem that you play and you proud. Unfortunately, success can also become a selfish, arrogant, and unwilling to ask for help when you get stuck. This dynamic is one the most dangerous and destructive aspects of software development.
The software is written by humans, and therefore, it is important to recognize that human psychology plays an important role in software development. An example is the following.




Joe, an old developer with a team of six, has a problem with your code. Reviewing it for hours, increasing their frustration and can not find where the bug. Can not think of even thinking about asking for help to their peers because none of them has the experience of it. Finally, his head does not give you more and ends up "giving up". Sighing, he lifted his phone and dials an extension: "Sandra, could you come and give a look to my code?" I have a problem which can not find where it can be. " Sandra goes for his place and a quick Joe revised code says what it should have been obvious for a long time. Hooray! The code works, and Joe thanks him, but actually feels sorry inside. Thoughts like "How come I did not see before?" and "If I had spent five minutes doing my tests I had found" go through the mind of Joe. It is understandable but also very stupid. The point here is that they often fail to see our problems because estamos muy metidos en nuestro propio código. Algunas veces todo lo que necesitamos es una nueva perspectiva, la visión relativamente objetiva de alguien sin nada en juego. No tiene nada que ver con la antigüedad, pericia o competencia.
Steven recomienda fuertemente establecer dentro de la organización los siguientes lineamientos:


Retribuye admisiones de ignorancia

Ocultar lo que no sabes acerca de una aplicación o su código es muy peligroso. Desarrolla una cultura de preguntas y peticiones de ayuda.
Pide ayuda

Si no puedes encontrar la causa de un bug en 30 minutos, pide ayuda inmediata. Puedes incluso idear un "sistema amigo", de tal manera que everyone has someone assigned to the group who is expected
prompted support. Do not let yourself (or others in your group) spend hours hitting you against the wall in a fruitless search for answers.
process establishes a code review by a fellow
Let no rise to production code without having read and criticized (in a positive and constructive manner) by one or more developers in your team

Saturday, October 31, 2009

Shingles And Swimming

part developer PL / SQL - 1st part

did not develop the rush! Almost always we are working with tight delivery times, or catching up on the odd setback. We have no time to lose and a lot of code to write. So get to work, right?

False. If we get well soon and fully converting the code to build exactly the requirements in the hundreds, thousands or even hundreds of thousands of lines of code, we'll end up with total chaos that is almost impossible to debug and maintain.




should not panic before deadlines, it is likely to be met if you do careful planning. Steven recommended to resist the pressure of delivery and to ensure the following before starting a new application or even a specific part of the application: Building

cases and test scripts before writing the code must

determine how you will ensure a successful implementation before writing a single line of program code. Doing so is more likely that the interface of your program is correct, and fully identify what your program needs to do.
Establish clear rules for how developers write SQL statements in the application

In general, Steven does not recommend that every developer to write lots of SQL. Instead, the queries that return a single record, inserts and updates should be "hidden" in procedures and functions pre-built and well tested (called
information encapsulation). These programs can test, optimize and maintain a more effective way than just SQL statements (some of them redundant) scattered throughout the code.
clear rules on how the developers handle the exceptions in
team All developers should launch, manage and log errors in the same way. To achieve this, it's best to create a single package error-handling that hides the details of how to record these, setting out as exceptions thrown and spread upward through nested blocks, and to avoid hard coding specific exceptions-de-la-application. Ensure that all use that package and
not write their own error handling code complicated, time consuming and error prone.
Use the refinement step by step "(also called top-down design) to limit the complexity of the requirements to face at any given time
If you use this approach, you will see that run parts of your modules are short and easy to understand, which makes the code easier to maintain and improve it over time. Local or nested modules play a key role in monitoring this design principle.
These are just a few important things to take into account
before starting to write all that code. Just remember: the software development world, haste not only makes things fragile, almost guaranteed a generous offer of bugs and lost weekends.

Tuesday, October 13, 2009

If I'm Due October 4 When Did I Conceive

Spanish Poker

Recently I found a sister websites where you can learn, play and read the latest poker news.
These sites are:


On this page you can download and play FREE poker. Continually updated and made drawings and style events that benefit the user. Also you can make deposits quickly, efficiently and safely. An important part is that the site is regulated and approved to work with money online. By downloading the poker client and install it you can play against anyone around the world, but if you can not play then:


In this site with a simple interface and Intuitively, one can learn to play poker for free, as well as teach you some tricks and other game tips. Of the most entertaining is that there are levels of learning: Diploma, Bachelor and Master. The most basic is being first and as you go along is more complicated techniques being taught. This page stands out because even though it got a pass a long time, always You can learn more about the game and excel as a player.
This page offers the following:

" Poker is 100% skill and 50% luck "

tick Become a professional poker player in weeks
tick Exclusive materials and practices for free
tick Start your banking from 0 € and reap the rewards
tick Learn how to earn thousands of euros from home

move through the world of online poker will probably be interested to be aware of the poker news:


One of the best sites to be informed of the latest in the most popular card game online. Updated daily with the latest news and information about the wonderful world of poker. The site has a useful function to calculate your chances to play a hand of someone discover, in addition to a calendar to organize your tournament, so when they move into the world of poker . The only annoying Site, are your ads, although they are not focused and are less obtrusive, they try to block them because they are GIIFS that bother to change constantly.

Poker Online: Poker ALL about

page Online Poker provide us with information, news, downloads, instructions, tips, trivia and more about poker. This is a mashup of several poker themed to incorporate both put into practice how to explain. Although the content has much potential, the graphical interface is very friendly and you can change it and make it more user friendly.

Wednesday, October 7, 2009

Complex Hemorrhagic Ovarian Cysts



JCodeCollector is a cross-platform application written in Java, we assistance will be gathering those snippets (snippet) that may be useful later.

With JCodeCollector can store your code, add tags and comments. Also You can add words to be highlighted as part of the syntax of the language. Link



Wednesday, September 30, 2009

Calculating Interest With Recurring Deposit

.- Recording jCodeCollector digital output of the computer screen

Hi everyone this is my first contribution, we present a tool useful, we may need at any time. I especially have taken the decision that all my contributions will be using this tool.

Who has not gone through anything recorded by on-screen for example the most difficult part of a game, making a record with your computer, or may have simple needs, like making more practical tutorials that do not include a ton of long, dense text, as ScreenToaster does all that, but very simple and line.

With ScreenToaster can create screencasts from the web application, with a very impressive image quality and the ability to add subtitles to audio and even videos. And everything is limited to the environment of your website, making it very accessible and easy to use.



To do this, you must register on the site. ScreenToaster currently is in private Beta, so you will require an invitation code to register and then start making screencasts. For the high demand for access to test the beta.

Once you register, you can record your movie just by clicking the giant button on the home page. You just have to install an applet to start the recorder, and the rest is history. Use some simple commands to record (Alt + S) and stop recording (of Again, Alt + S), and you can even record anything more than one area and not the entire screen (Alt + Shift + S). When you've finished the video, you can add some subtitles (which are not very conventional) and record your voice on the video or any audio you want. You can then choose to publish the video or keep it private. In either mode, your video can always be seen from a URL or html code inserting it into another web.

Pd. I apologize for the video recording of that happened to me that the tool was in English, sorry I did not realize. Greetings.




Saturday, September 26, 2009

Im Jobless Need Money

Slide to unlock ... the door!

Wednesday, September 23, 2009

Swelling Ankles After Drinking Alcohol

OpenGoo: A cheaper alternative to the online office automation

Hi, well as you have noticed my companion July been posting about what is extjs, yesterday reading some things on the Internet I came across OpenGoo, a solution to what is called online office automation, among which GoogleDocs, Zoho, ThinkFree among some more.

What caught my attention is that OpenGoo extjs is designed to use as an engine of MySQL database, php and Apache, among the little things it brings are: calendar, task management, word processing, presentation creator leaves, because beta is not implemented spreadsheets, it is noteworthy that the project goes beyond just offering online office automation but seeks to manage properly document and encourage collaboration at a distance.

the project is hosted on sourceforge and is in full development but you can download a trial version (which is pretty decent).

Sources:

http://linux.softpedia.com/progDownload/OpenGoo-Download-40218.html
http://www.carlosleopoldo.com/post/opengoo/
http:// es.wikipedia.org / wiki / OpenGoo

Saturday, September 12, 2009

Jelly Bracelets Color Meanings 2011

Registration Systems (I).

continue to move and this time, I plan to develop a small application that manages registration, to address actual cases and begin to see which parts can be difficult when you start with the study of this framework We will be playing double duty as the server-side language is PHP, which I know a fraction. But hey, you should always take a first step in starting to walk. In this first part will show only the login interface (login.js) and then see its functionality in php.

Login.js

Login, is based on a FormPanel , which is configured by default with layout: 'form', which correctly renderisa labels and text fields.

In line 4 we Ext.QuickTips.init instruction (), it enables the use of the tooltips, and Ext.form.Field.prototype.msgTarget = 'side' (line 6), means that when there validation fails, display a red icon in the side, in this case, the text field.


DefaultType (line 9) indicates that items (child objects) will post such ( xtype), in this case will be 'textfield', in can see link xtype all available.

On line 13 we find the sentence monitorValid: true, this property enables or disables the monitoring of the buttons that are configured (reported) in accordance buttons, provided these in turn are configured with the property formBind: true. The monitoring is to enable or disable the buttons according to the state of form, in other words, if the form is valid, the buttons are enabled, and if the form is not, disabled.

line 14 through 27, we have the items array of objects, which declares two components FormPanel children of type 'textfield'. In line 19 and 23, is set to be validated to not be left empty fields (allowBlank: false), if this happens, the monitorValid detects it and showing the red side with their corresponding error tooltip.

on lines 29 to 36, declaring the array of buttons, here there is only one setting:
  • monitoring this button (line 31)
  • an icon (line 33)
  • its label (line 34 )
of lines 39 through 54 is the instance of an object of type Ext.Window, which will be the window containing the FormPanel previously created, the configuration of their properties are clear:
  • layout: will use the type 'fit'.
  • width: 317 pixels wide.
  • height: 148 pixels high.
  • title: title of the window.
  • closeAction: 'hide', closing the window will only light, so that may be invoked again without instantiated.
  • closable: Draw the button on the "x" to close the window.
  • draggable: false set-up a window to be fixed, not floating.
  • border: false, does not draw its border.
  • defaults: Their behavior is similar to DefaultType, all set in this property will be taken by the child components in accordance declarandos items.
  • items: has a son, the component called panel. Finally in
Line 56 shows the window. Test

example.

Thursday, September 3, 2009

How Much Hcl And Nahco3 For One Liter

Software Performance Basics - Quick Reference

of the terms that we should keep in mind when something does not work efficiently. Glossary


efficiency is a measure of how much resources is consuming the execution of a task. Efficiency is the inverse of how much of the total service time of the execution of the task can be eliminated without sacrificing capacity or increase their business function.

occupation is the value of using a resource whose transfer rate is maximized with minimal impact on response times. The value of occupancy for a given number of service channels is less than or equal to the value shown below:



# service channels load Competition for a resource induced by concurrent execution of tasks, as measured by utilization.
1 2 4 8 16 32 64 128 Occupation
50% 57% 66% 74% 81% 86% 89% 92%

execution speed performance of the task, measured either as a transfer rate or response time.

Decomposition tabular profile of response time, usually listed in descending order of the response time contribution of the component.

delay in queue length that a task spends glued on a given resource, waiting for their opportunity to consume, as measured by task execution time: click

seconds. response time duration of execution of a task, measured in time per task: click

seconds. The response time is the sum of the delay in the queue and service time. sequence diagram is a diagram specified in the Modeling Language Unified (UML), used to show interactions between objects in the sequential order in which they occur. This diagram is useful to visualize the response time.

service channel A sub-resource sharing a single queue with other sub-resources, a toll booth in a mall or a CPU in an SMP computer.

service time duration that a task passes a given resource consuming, as measured by task execution time: click

seconds. task-oriented work unit business. These can be nested:
print invoices
is a task, print an invoice -subtask- is also a task. Count transfer rate of executions completed the task within a specific time interval:

clicks per second. Using resource use divided by capacity for a specific time interval, a quantitative measure of load.


Principles 1. A
sequence diagram is a useful tool to conceptualize the response time, however, for tasks that run thousands of invocacioes (even dozens), it is more useful

profile. 2. The transfer rate is the reciprocal of the time response. If you add load to create high transfer rates change the response time as you add

waiting in line. 3. The difference between the response time of a task that has a resource with light load and response time under heavy load is waiting in the queue. 4. The duration of a task in the queue for a resource depends on the number of service channels

of this resource in addition to its load

: Add service channels reduces the wait in line for a given load. However, the benefit decreases when the add.
    Reduce the load decreases in the queue waiting for a given architecture. There is no limit to reduce the load scalability
  1. 5. The occupation is the use value that defines the threshold between light and heavy load on a resource.
  2. In an action under heavy loads, response times are degraded when the load grows exponentially.

    In an action under heavy loads, improve response times when the load decreases exponentially
  1. 6. For systems with service requests random time, allowing sustained heavy expenditure of resources to the value of occupancy results in severely degraded response times and transfer rates that fluctuate constantly with microscopic changes in the load.
  2. 7. For a set of resources of a computer, you can improve performance by making the code run fast
, you can improve performance only

eliminating unnecessary instructions in the code or code that competes against your code to seize resources. 8. Improve your code approach efficiently reduces the time and service charge, which improves response time, which improve performance exponentially resources too heavy.

9. Can not optimize the transfer rate of a task ineffective. To analyze the efficiency of a task, you must analyze its response time. Hence, to optimize the transfer rate must first analyze the response time. 10. Do not guess the first in which a program is time consuming, and ineffective attempt to optimize anything you see. Analyze their behavior helps to write code that is faster.



Go

Wednesday, September 2, 2009

Aloha Sign Pinkie And Thumb Sign

style OOP in JavaScript prototypes to schedule

Dear colleagues, in these few lines I will make my contribution to our blog. Sorry for the tardiness, and I hope they serve something.

for days experiencing a bit of a script based language (javascript), try implementing the OOP paradigm, following the general rules by creating classes with their properties and methods.

class Person {

/ / attributes

public Person () {}

/ / methods public

method1 () {}




} Surprise

javascript is a object-oriented language but uses a special style of this paradigm, and by that I mean the prototypes, that if you refer to the same ideas of OOP, such as code reuse, inheritance, polymorphism, encapsulation, hiding among others.

Programming based prototypes is a style of object-oriented programming in which "classes" are not present, and re-use of processes (known as inheritance in class-based languages) is obtained through cloning existing objects that serve as prototypes, extending its functionality. This model is known as prototypes oriented or instance-based programming .

http://en.wikipedia.org/wiki/Prototype-based_programming .


Being

This topic of interest try to explain this in code.

The following case wanted to get the next number multiple of 6 earlier of a number X.

create our archive lies the POO.

clases.js



html file


An example simple and easy to make I give you some link for if they want to implement some other stronger features such as inheritance and polymorphism.

Greetings to all and take care.

The clearer.

Examples

one more

a good
PDF


Saturday, August 29, 2009

Can You Use An Interim License To Get Into A Bar?

Editor

Hello!, well this time I want to talk about multipurpose editor jEdit developed in java which is platform, among the curiosities for my taste very helpful to a programmer is its support of plugins with that account and that since there can be extensible, also allows more than one code in the foreground (such as in the example) in the configuration options you can go and find more curiosities itching like changing the LookAndFeel etc; One of the things that we can blame is being developed in java virtual machine depends on ... but good is a cheaper option.






and other publishers you know?.

sources:

http://www.esdebian.org/wiki/jedit-instalacion-debian
http://www.vivaserver.com.ar/blog/2007/09/21/jedit-el -TextMate-of-the-poor

Wednesday, August 26, 2009

Indian Wedding Invitations In Brampton

Starting with PHP and some AJAX

Starting with PHP and Ajax, and n this article we will see the use of scripting language PHP as client-server applications using Apache as the web server some html and javascript, are going to keep everything in a simple reaching

AJAX Introduction

Well first of all let's see php, like other tools we use, apache
, html, javascript AJAX, and MySQL famosillos but this makes sense when technologies come together:

In this way the web server (Apache) allows us to interact with the motor Database (MySQL) using a script language (php) returning customer requests according to an information or other thus forming dynamic pages based on client requests and server responses. The client is nothing more than your web browser (Firefox) that gives us support for HTML and JavaScript.

Installation

Within the installer what is windows quick and recommend that we avoid a lot of hand to put him an example configuration is Appserv there is another package that We provide those tools together already configured and ready to work , now that if we are in Linux can download them separately each tool, this series just for the installation command:

apt-get install apache2 apt-get

install php5 apt-get install mysql-server-5.0
apt-get install php5-mysql
apt-get install libapache2-mod-php5

apt-get install phpmyadmin


In the first three lines are the basic tools for our web server, the other two are what we are linked together and the last is a frontend of our base manager data (this is also found in Appserv), if all went well until now we can type in your web browser as follows:
localhost / phpmyadmin from here we can manage our MySQL, create users, databases data, etc.

Interaction tools

Now let's start with a small example in php:





this small example will print 10 times the word synergy, for more details on programming in php can view this league.

now see an example of connection to a MySQL database, but first we will create our base

Snipplr


and now the code to interact with it:




As we connect the procedure involves using a source (the local host in this case), user (login1), and password (password1) if no successful connection to exit the script with an error message, if the connection is achieved chose to base we connect (test), then perform a query and display each field on the page , to finish closing the flow to the connection, to dig deeper into the php-mysql functions please see the following page .


now see an example of using AJAX, but to not go cold on the subject say that AJAX is the combination of several technologies that allow us to recharge so that asynchronous dynamics is not full page refresh if not just part of it, an example is email GMail and many more.

The first code submitted is responsible for displaying the initial screen using HTML code, we see that within the code HTML code is php from here we see to be interpetado after the browser as the php code never see but only the result of this, we create an element called div javascript pass through to the inside of this div servior see there is a text field and off the see a button that links to a javascript function, note that the code can be mixed with HTML as long as they do for separation by using tag.



The second code is the one that creates the interface between the client and the server, find the start nuevoAjax function we create the XMLHTTPRequest element, the second function is the function name where using the DOM make use of HTML elements and get their values; the Open method of our object gives us the pattern ajax of how to bind asynchronously, to file and that will lead you step method parameters it will, in this case POST, and you specify with the true that it is an asynchronous call, we have also the onreadystatechange event listener which was shot in the asynchronous call is done, so that "we will stick" the HTML that we send our server to our div (div noted previously that the way to the variable results) and the number 4 indicates that the transfer is completed successfully, with the method setRequestHeader send Content-type attribute indicating the contents of the file, finally use the send method to send as a parameter to the value of the textfield to the server, if will send non-null parameters.



Now we have the last file is the one side of the server this file is called by us. Js file using the open method is charged with the send method is called, this file contains HTML code that is sent through php creates a table and are created rows and columns using two nested for the second for use within the predefined variable $ _POST ["variable"] variable that we serve to capture the information previously sent from our js code and all that we throw (to throw everything I mean to send echo) this file is sent to the js file and sticking to the div object (remember the event handler onreadystatechange ).

and there you have it, our first example using AJAX, I hope you have been at least somewhat clear.

Conclusion:

As we have seen the use of scripting languages \u200b\u200bare increasing and how they are interacting we can navigate a bit at the beginning and if we add the management of the database from one of them it becomes a bit tangled, but After entering this, just a matter of practice.

Links:
http://www.tufuncion.com/tutorial_basico_ajax
http://www.cristalab.com/tutoriales/introduccion-a-ajax-con-php-y-formularios-c165l/
http://www.librosweb.es/ajax/capitulo7/interaccion_con_el_servidor.html
http://www.lugmen.org.ar/pipermail/lug-list/2005-May/035613.html
http://www.webestilo.com/php/php09b.phtml



Monday, August 24, 2009

Dermapet Lime Sulfur Dip For Cats

Ext.Viewport object. ASIMO

This object is a special container within the core of Ext Js (much like Ext.Panel), which represents the visible area of \u200b\u200bthe application.
its class hierarchy is:


say it is special because:
  • automatically renders the HTML document body (document.body).
  • Adjust the size of the window as this will be resized. (Try resizing the window in the demo ).
  • can only be one object per page Ext.Viewport.
  • displacement does not support (Scrolling), if needed, it must be implemented by child components, such as a Ext.Panel.
Well enough is enough, give me something to do, show me some code ...
Example:


Explaining a little:

Ext.onReady (); This function runs when DOM is ready and can be referenced, it is like the body onLoad event, but the difference is not expected onReady loading the images, styles, JavaScript and the DOM, so this ready before the onLoad event. (Have a look the ExtJS API . )

All objects have something called "Configuration options" that come to be the first choices of each object, and here items is precisely one of the options Ext.Viewport. Some other options are:
  • anchor: This option should be used when the container has been configured with a content management AnchorLayout.
  • disabled: Enable or disable the component, the default value is false.
  • hidden : This property sets the object to determine whether it should be shown or not.
  • HideBorders : Indicates whether or not to be painted the borders, default value false
  • layout: Indicate the size and position to take the objects inside the container.
  • items: May be an object or an array of objects. This is one of the ways in which we can add child components inside another object, in this case the container Ext.Viewport. Example
;
  • a single object: items
  • :{...}
  • several objects: items_ [{...}, {...}]
These objects (items) can be any class-based object Ext.Component which we find expressed in two ways:
  • A complete instance :
TextField


being: items: {name}
  • U n object literal (literal object , dynamic object) that contains a set of properties and values \u200b\u200bthat:
1 .- It has specified the type of object using xtype, which must be one the list falls within Ext.Component.
2 .- If xtype is not specified, the value of the container DefaultType (Contein) will be used and this 'panel'.
being:

Code snippet - items on Snipplr

The result is the following:


View demo: Viewport
know it sounds a little thing anything, but I hope to move forward, to see examples useful.

Conclusion:
Well as we create an object Ext.Viewport, is very simple and we all have the bases on the concepts of object-oriented programming, and as I said earlier it is much like programming in Java, (remember when you change the color .... my first panel; -)), in addition to the way objects are added is very clear, thanks to JSON, I hope I can explain a little about this notation.

Links:
Ext JS API
Material support.

Saturday, August 22, 2009

Green, Pink, Blue, Yellow, Orange, Purple?

Gamer Gamer + Tape = Aero

This player, as he had no seat and had to stick to the roof to play! haha

Saturday, August 15, 2009

Lacquer Thinner Primer Type



He is Asimo is the most advanced robot in existence.
Now is the star of the Honda company (creative the robot) and no wonder.

Tuesday, August 11, 2009

Optimax Rough Idle Cold Start Troubleshooting

"bend spoons with his mind?

do not know why but somehow I'm familiar with this situation (click for larger version):

"Any resemblance to reality, is pure coincidence "

Sunday, August 9, 2009

Kidney Stone Stuck Infection



In this post, we will have a simple example of PyQt , with the following order:
  1. Design QtDesigner graphical interface.
  2. code generation in Python pyuic4 with the tool.
  3. Create a class to contain object with the window and manage their events, as well as entry point (main) for our program.
But what is this? Let the Wikipedia enlighten us, because all is said and life is short, and now, in the absence of the corresponding article, I can tell you QtDesigner is an application for designing graphical interfaces Qt, storing the description and layout of components in an XML file for later use from multiple programming languages.

Requirements.

The system used in the development and testing of this example is Debian Sid, for I will mention the name of the distribution's own package. However, the tools used are cross-platform.
  • python (we use version 2.4 onwards).
  • The Qt4 libraries, which will automatically install dependencies to python-qt4.
  • python-qt4 (the interface between the Qt4 libraries, programmed in C + +, and the language we will be using).
  • qt4-designer.
  • PyQt4-dev-tools (this package provides the command pyuic4).

Introduction to Python.

Python is very easy to learn, so even if we have not used ever, with a little reading and practice can begin with our first programs, a basic, but functional.

I recommend you read this tutorial to a quick start. To easily understand the example on this post, you must know the structure of a program in Python, data types, functions, and to a lesser extent, inheritance, modules and packages.

Moving on.

Our example is based on this material , still highly recommended reading, and from the slide 41 begins to use QtDesigner. They should be something like:

The buttons for the four operations we have the names: sum, res, mul and div, on the other hand, the text fields will be named num1, num2, and result, and finally to the window we called calc. Well, we will keep this form with the name calc.ui and now comes the magic: with the command pyuic4 take that file. Ui and generate the code in Python. The command is:
 calc.ui-o calc_ui.py pyuic4 

The result is illustrated below:

calc_ui.py
File Code snippet - pyuic4 generated code on Snipplr

Noten QtDesigner that we have done all the dirty work, have modified added more properties or more components, write, test and maintain the code manually would be an unwelcome activity.

Here's an important point to treat, and every time we change our interface (. Ui) we have to regenerate the code in Python, so it is not advisable to make changes to the latter, as they will be overwritten without mercy .

To supplement the form with the code for the events and some other actions at runtime, we can write a new class and then create a class based object originated from QtDesigner, or that this new class inherits from the first. On this occasion we will Finally.

calc.py

One difference we see between the code above and shown on slide 57 of presentation, is that in our class have not controlled event clicked () on the exit button . Instead, we defined a handler for this event from the same QtDesigner, redirecting the method close () of the form. In slide 44 we can see where is the editor of signals. Here is a screenshot of this tool:

This what we do because close () is part of the class QWidget, and is what is called a slot , which is nothing more than a method designed to receive signals (events) and a defined behavior. Do not forget that since we can not add code QtDesigner, so our methods to respond to clicks on the buttons have to be implemented and "plugged in" externally. Commenting

more about the code, lines 13 through 16 we see how we link to a specific signal buttons, with four different methods located in the same class (line 18 to 28). The block from line 30 onwards is outside the definition of the class, and will be executed when the module is invoked as an entry point for the application.

To run the program: python
 calc.py 


Well, that we and our powerful calculator running. In a later entry we see the changes or problems that arise in doing this in windows, and more important things, we will use another method of communication between QtDesigner and Python, which is charged directly to the. Ui at runtime, ie without pre-generate the code with pyuic4.

links and attachments.

Python for all
Presentation
PyQt PyQt-calculadora.zip

Saturday, August 8, 2009

How Much Does Menchies Cost ?

PyQt graphical interfaces with Ext JS What?

Today there are many tools for developing applications Rich Internet as (RIA ) , one of them are JavaScript frameworks, and within these, is where it is located Ext JS , which allows us to develop applications with a speed considerable and looks very nice ( look and feel), it is noteworthy that there are already many "look and feel" to give a different look than conventional . His pronunciation (x'D) may be found in this official forum thread (Here) .

This library was initially developed as an extension of the library Yahoo! User Interface (YUI ) , and thanks to its good structure can now interact with jQuery, Prototype and YUI also Ext JS has its own library which is called Ext -base.

When programming with this library will which is very similar to use Java, because they can create windows, panels, grids , layouts, tooltips, tabs, control forms, menus , check box, radio button , trees, toolbar, combobox, date fields and many widget more, which is well documented.

There are three types of licenses:

Commercial

  • : If want to develop proprietary software that is the choice , its price ranges from $ 329 to $ 16.449, depending on the number of licenses desired.
  • Open Source : This means your a explanation must be released under license GNU GPL V3 .
  • Reseller: This type of license is required when you want to make a purchase framework or library based on Ext JS . To find the cost is necessary to contact the team Ext JS . Currently

Ext JS this in version 3.0 and can be downloaded from their official site here .

Installation:

To start using it you just have to be imported, the following files:
  • ext-3.0.0/resources/css/ext-all.css
  • Ext-3.0.0/adapter/ext/ext-base.js
  • ext-3.0.0/ext-all.js


Result:


Conclusion
:

This framework is something very novel and to my taste one of the best structured and has great scope thanks to adapters which allows you to interact with other libraries . With it you can make applications very showy and especially operational environment web, and data flow like a desktop application.

This library is currently being used by various entities of which we can cite some examples: Adobe , Amazon. Com , Boeing, Borland , Cisco, CNN , Down Jones & Co , HP, IBM ...


NOTES: also exists version to work with Google Web Toolkit (GWT ). Http://www.extjs.com/products/gxt/

Links:
Examples:
http://www.quizzpot.com/ (Course with videos, examples and materials. Very illustrative)
http://extjs.com/deploy/dev/examples/samples.html
http://extjsmexico. com / demos / modulo_usuarios / modulo_usuarios.php
http://www.sdsimple.es/app/ Username: passer password: passer HOT !
http://es.wikipedia.org/wiki/ExtJS
http://extjsmexico.com/