Monday, October 25, 2010

Barby Paragas, not Barbie Palagos: Pnoy’s mystery date?

It was Barby Paragas (not Barbie Palagos) which President Noy (P-noy) , the country’s most eligible bachelor, dated last Saturday at the Nuvo Restaurant in Greenbelt, Makati City. The mystery date became fodder of much speculation because it came on the heels of a rumored split between the President and his girlfriend of two years, lovely Councilor Shalani Soledad of Valenzuela City.
Insiders said the 31-year old Barby is as pretty as Shalani. If she is the same Barby Paragas that shows up in an internet search of the professional network LinkedIn, indications are she is very brainy as well.

There is no Facebook profile of Ms. Paragas, but her LinkedIn resume puts her as having a civil engineering degree from Dela Salle University (Class of 2001) and a Masters in Civil Engineering (Major in Transportation Engineering) from the University of the Philippines. Her work deals with human resource management and she is the general manager of her own company, HRSolutions Global Inc. Those who know her describe her as simple and down-to-earth and yes, very private.
Could this be the woman who turned down seeing the high-profile President another time? Confirm please! Remember, you read it here first .

thanks Ajay for sharing!

Extjs 3.3 Final Released

Download  from Sencha!

200+ Enhancements and Fixes

In addition to the new components above, we have addressed well over 200 feature requests and bug reports since Ext JS 3.2. While a full list is included in the Ext JS 3.3 changelog, the highlights include:
  • Forms: findField now searches inside radio and check groups
  • Forms: trackLabels now defaults to true on FormLayout
  • Component: Moved bubble from Container to Component
  • Grids: Fixed a bug where the ‘selectionchange’ event would sometimes fire when sorting
  • Stores: Multiple records inserted into a Store now respect the order specified
  • DnD: no longer automatically enables tooltips on document click
  • Util: Added an AbstractManager class for managing sets of instances (e.g. stores, components, etc)

Air Updates

As part of the upgrade to Ext JS 3.3, we’ve upgraded the Air Pack to support all of the new components and features found in Ext JS 3.3. If you’re using Ext JS with Adobe Air, download the Air Pack now from the Downloads page to take advantage of the upgrades.
Ext JS 3.3 API Docs

API Docs Refresh

Ext JS 3.3 sees a small refresh to the API documentation, including a few tweaks to the theme and convenient links to the online examples. We’ve also updated the documentation on many of the classes to give a better introduction to what the class does (see the PivotGrid docs as an example).

The Future

Ext JS 3.3 is the most comprehensive release we’ve ever made and we are proud of its features, community and stability. I’d like to thank everyone who uses it to create awesome new applications, and we hope you love this new release.

Thursday, October 21, 2010

New Windows Live SkyDrive

New Apps from window.SkyDrive can Store, access, and share thousands of documents, photos, and Microsoft Office files on Windows Live SkyDrive. SkyDrive password-protects your files so you control who has access to them.

you must sign up in windows live to use this product for free.

Windows live SkyDrive

Wednesday, October 20, 2010

Extjs Submitting a form using Ajax


Hi guys today I will discuss how to use ajax in extjs before we start run your text editor of choice mine is dreamweaver cs4. I will focus on mysql  I want you to work on it. Just basic php code and mysql query.
We will now dive in to the real world.

DOWNLOAD SOURCE FILE:  http://www.4shared.com/file/_RjrDyEb/demo.html
Step 1: make a index.php page this is were we call the extjs.
1 <html>
2 <head>
3 <title>Easydownload</title>
4
5 <link rel="stylesheet" href="ext-3.3/resources/css/ext-all.css" />
6
7 <script type="type/javascript" src="ext-3.3/adapter/ext/ext-base.js"></script>
8 <script type="type/javascript" src="ext-3.3/ext-all.js"></script>
9 <script type="type/javascript" login.js"></script>
10
11 </head>
12 <body>
13
14
15 </body>
16 </html>
Step2:  In login.js file this we will be inserted our forms and ajax.  Cool.
1 var loginwindow = new Ext.window({
2 layout: 'fit',
3 id:'loginwindow',
4 width: 520,
5 autoheight: true,
6 draggable: false,
7 title: '',
8 resizable: false,
9 items: [regForm],
10 closable: false,
11 modal: true,
12 });
13 loginwindow.show(Ext.getBody());
14 loginwindow.afterRender(Ext.getCmp('username').focus(true,500));
15 });
16
17
18 var username = new Ext.Form.TextField({
19 allowBlank: false,
20 fieldLabel:'Username',
21 msgTarget: 'side',
22 blankText: 'Enter Username',
23 id:'username',
24 name:'username',
25 });
26
27 var password = new Ext.Form.TextField({
28 allowBlank: false,
29 fieldLabel:'Password',
30 blankText: 'Enter Password',
31 msgTarget: 'side',
32 id:'password',
33 name:'password',
34 });

and the ajax request will responsible to submit the form and getting the value of the textfield ajax will pass the value to php and insert into the databse.

1 Ext.Ajax.request({
2 method: 'POST',
3 url: 'scripts/ajax/login.php',
4 params: {u:username.getValue(),p:password.getValue()},
5 success: function(result){
6 var response = Ext.util.JSON.decode(result.responseText);
7
8 if(!response.success){
9 Ext.messageBox.show({
10 title: 'TIMS',
11 msg:'',
12 buttons: Ext.messageBox.OK,
13 icon: Ext.messageBox.warning,
14 animEl: 'regForm_id',
15 });
16 }else{
17 window.location = response.page.redirect;
18 }
 

Tuesday, October 19, 2010

IE9 beta release

Now you can download Internet Explorer 9 Beta from here:

http://windows.microsoft.com/en-US/internet-explorer/download/ie-9/worldwide

Internet Explorer 9 Beta is available in many languages. You can download Internet Explorer 9 Beta in the language that matches your version of  Windows  or choose the English version, which works with all versions of Windows Vista and Windows 7. 
 

Microsoft: IE9's Graphics Acceleration Better Than Chrome and Firefox

Since November of last year, one of Microsoft's big themes for Internet Explorer 9 has been "graphics hardware acceleration" using Windows DirectX. Just last week, Mozilla's Firefox 4 beta turned on graphics hardware acceleration by default. And last March, the Google Chrome team announced its ANGLE project to do something similar, while just last week a Google engineer blogged about Chrome 7 including graphics acceleration.

In response, Microsoft's Program Manager Lead for Web Graphics, Ted Johnson, has just posted on the IEblog, claiming that while other browser may be starting to implement graphics hardware acceleration, only IE9's is "full."

In the blog post, Johnson claims that IE9 graphics hardware acceleration works with "everything on every Web page—text, images, backgrounds, borders, SVG content, HTML5 video and audio—using the Windows DirectX graphics APIs. With Platform Preview 3 in July, IE9 introduced a hardware-accelerated HTML5 canvas." The competing API for web graphics, WebGL, only accelerates that last, and Google's ANGLE (Almost Native Graphics Layer Engine) project is only concerned with translating some WebGL code to display using Windows DirectX, which enjoys far more support on today's PC hardware.

Why is using graphics hardware so important? Because the graphics processor and memory are much faster at manipulating images like those the browser has to display on-screen. Microsoft has demonstrated this on its IE9 Test Drive site site with several test pages showing spinning logos and animated fish-tank visuals. The tests report frames-per-second, a common measure of graphics performance, especially for 3D games. In my quick test of the new Firefox 4 beta 5, I found that it's graphics acceleration indeed bumped its performance on the fish demo slightly above that of the IE9 Platform Preview, but the spinning logo's demo still trailed significantly.

Mozilla, too, has provided a demo that tests graphics acceleration, and running this in Google Chrome 6 shows that browser's potential Achilles heel: It delivered 4 frames per second. Firefox 4 beta 5 came in at 91, while the IE9 platform preview showed 67 frames per second. IE Test Drive's Psychedelic Browsing demo showed a similar skew: Chrome 6 clocked 50 revolutions per minute, compared with Firefox's 1774 and IE9 Platform Preview's 1810. Another test showing an animated font enlargement performed smoothly in IE9, nearly as smoothly in Firefox 4 beta, but jerkily in Chrome 6.

Why is that?

Microsoft claims it's because their nascent browser is using graphics hardware to accelerate page composition and the final desktop window composition as well as just content rendering. According to Johnson, "Based on their blog posts, the hardware-accelerated implementations of other browsers generally accelerate one phase or the other, but not yet both."

Another reason is that Chrome and Firefox also have to support multiple platforms — Mac and Linux — in addition to Windows, so they require a translation layer (such as Chrome's ANGLE) before the content can get to DirectX. IE9, claims Johnson, uses native DirectX code, with any intervening layers.

Not only can graphics-hardware support speed up web graphics and game-type pages, but it's ideal for making video — in particular HD video — play smoothly. To someone who likes to view web TV content on a big-screen TV, this is pretty important.

Microsoft has announced the availability of the first actual beta of Internet Explorer for next Wednesday. For those how prefer to avoid the earlier Platform Preview's bare bones interface, it will be a good chance to play with the next version of Internet Explorer. And at that time, not only will we be able to see its graphics-hardware-enhanced speed, but also what's up Microsoft's sleeve in terms of a new user interface. Meanwhile, you can already head to the IE9 Test Drive site to download the Platform Preview and try out your own speed tests.

Sunday, October 17, 2010

Extjs: Delete function in Grid Panel

In this Tutorial will dicuss how to use the Grid panel properties store the data using Json Store.

Step 1:  Create a database for our tutorial name it fish. then, create now the table and name it tuna.

CREATE TABLE IF NOT EXISTS `tuna` (
  `id` tinyint(4) NOT NULL auto_increment,
  `name` varchar(25) NOT NULL,
  `position` varchar(25) NOT NULL,
  `ambition` text NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=6 ;


INSERT INTO `tuna` (`id`, `name`, `position`, `ambition`) VALUES
(1, 'Monkey D Luffy', 'Captain', 'I Will become the pirate king'),
(2, 'Roronoa zoro', 'Swordman', 'Become greatet swordman'),
(3, 'Sanji', 'Cook', 'Find all blue'),
(4, 'Nami', 'Navigator', 'Draw map of the world'),
(5, 'Usopp', 'Sniper', 'Become greatest warrior');

Step 2: Create the index.php this will display the form panel. dont forget to download the javascript famework.
extjs > http://www.sencha.com/products/js/download.php
<html>
    <head>
        <title>DB GRID SAMPLE</title>
        <!-- include ext-all.css -->
        <link rel="stylesheet" href="ext-3.3/resources/css/ext-all.css" />
        
        <!-- include ext-base.js -->
        <script type="text/javascript" src="ext-3.3/adapter/ext/ext-base.js"></script>
        
        <!-- include ext-all.js -->
        <script type="text/javascript" src="ext-3.3/ext-all.js"></script>    
        
        <!-- include db-grid.js -->
        <script type="text/javascript" src="db-grid.js"></script>
    </head>    
    <body>
    
        <!-- grid will render to this element -->
        <div id="db-grid"></div>
    
    </body>
</html>

Step 3: Now we will build the db-grid.js this will generate the grid panel.
Ext.onReady(function(){

    // create the data store
    var store = new Ext.data.JsonStore({        
        url: 'data.php',             
        fields: [
           {name: 'id', type: 'int'},
           'name', 'position', 'ambition'
        ]
    });        

    // load data
    store.load();
    
    // create the Grid
    var grid = new Ext.grid.GridPanel({
        store: store,
        columns: [
            {id:'id',header: "ID", width: 30, sortable: true, dataIndex: 'id'},
            {header: 'Name', width: 100, sortable: true, dataIndex: 'name'},
            {header: 'Position', width: 100, sortable: true, dataIndex: 'position'},
            {header: 'Ambition', width: 250, sortable: true, dataIndex: 'ambition'}            
        ],
        stripeRows: true,
        height:250,
        width:500,
        title:'DB Grid',
        
        // add a delete button on a grid toolbar
        
        tbar : ['->', {
            text: 'Delete',
            icon: 'b_drop.png',
            handler: function() {
                var selected_rows = grid.getSelectionModel().getSelections();
                if(selected_rows.length > 0) {                                        

                    // make all id from data selected become 1,2,3,4,5,.....
                                    
                    var id = '';
                    
                    var i = 0;
                    for(i=0; i<selected_rows.length; i++) {
                        id += selected_rows[i].get('id');
                        if(i < (selected_rows.length - 1)) {
                            id += ',';    
                        }
                    }
                        
                    Ext.MessageBox.confirm('Confirm', 'Are you sure you want to delete the data?', function (btn, text) {
                        if (btn=='yes') {
                            Ext.MessageBox.show({
                               msg: 'Info..',
                               progressText: 'Deleting...',
                               width:300,
                               wait:true,
                               waitConfig: {interval:200}
                            });                                                    
                            Ext.Ajax.request({                            
                                url : 'delete.php' , 
                                params : {
                                    id: id
                                },
                                method: 'POST',
                                success: function ( result, request ) {                                                    
                                    // hide the progress window
                                    Ext.MessageBox.hide();    
                                    
                                    // reload grid
                                    grid.getStore().reload();    
                                } 
                            });
                        }
                    });
                    
                } else {
                    Ext.MessageBox.alert('Info', 'No row(s) selected. Select row(s) you want to delete first.');
                }
            }
        }]
        
    });

    grid.render('db-grid');
    
});

Step 4: The Json data store. the Json store will responsible for communicating to the database because were using javascript. this is one of  many data store in the extjs framework.

var store = new Ext.data.JsonStore({        
        url: 'data.php',             
        fields: [
           {name: 'id', type: 'int'},
           'name', 'position', 'ambition'
        ]
    });

build now data.php where the sql query takes place.

<?php
    $conn = mysql_connect("localhost", "root", "root") or die (mysql_error ());
    $db = mysql_select_db ("fish") or die (mysql_error ());
    
    $result=mysql_query ("SELECT * FROM tuna") or die (mysql_error ());
    
    $data = array();
    
    while ($row=mysql_fetch_object($result))
    {
        $data [] = $row;
    }
    
    echo json_encode($data);
?>

Step 5: Delete selected data. when doing a process it is good to use Ajax Request.


Ext.Ajax.request({                            
                                url : 'delete.php' , 
                                params : {
                                    id: id
                                },
                                method: 'POST',
                                success: function ( result, request ) {                                                    
                                    // hide the progress window
                                    Ext.MessageBox.hide();    
                                    
                                    // reload grid
                                    grid.getStore().reload();    
                                } 
                            });
                        }

delete.php

<?php

    mysql_connect("localhost", "root", "root");
    mysql_select_db("fish");
    
    $sql = "
        DELETE FROM tuna WHERE id in (". $_POST['id'] .")
    ";
    
    mysql_query($sql);

?>



Download Source: SOURCE