Excel-like Javascript Grid Editors

Posted on: Jan 19, 2010 by wenbert

Here is quick quote:

A short list of my favorite JavaScript grid components.
How many times did you hear users asking you: “something simple, a grid like excel”?

When I was a VB programmer, oh yes, I have this dark spot on my career, and it is not the only one… this request threw me in panic. Usually what your “killer” is asking you is not what you, programmer, are thinking of (namely the power of cell functions, programmability, graph etc., that probably your “killer” does not even imagine): what they are thinking about is the editor flexibility, the ability to add columns, rows, move cells blocks, copy and paste from different sources.

After the ritual pointing-out that your application is NOT Excel, the VB solution was to adopt the standard flexGrid or the mythical TrueDbGrid that made happy both the killer-user and the victim-programmer.

The source here: roberto.open-lab.com

Zend Framework: Accessing configuration data in application.ini

Posted on: Dec 29, 2009 by wenbert

Lately, I haven’t been doing any Zend Framework related things. Although currently tied up with other stuff, I check the community from time to time. Today, I found this quick and useful tip from Akrabat.

Akra talks about how you can access your configuration that you have set in your application.ini file – your configuration file.

Since it is a short post, I will copy-paste everything here.

Zend_Application will read the data in your application.ini and make it available from your bootstrap’s getOptions() method. It then sets the bootstrap as a parameter in the front controller. Note that the top level keys are all normalised to lowercase too.

You can then retrieve the options in a number of ways.

In the controller you can do this:

    public function someAction()
    {
        $bootstrap = $this->getInvokeArg('bootstrap'); 
        $options = $bootstrap->getOptions();
    }

Outside of the controller you can do this:

    $bootstrap = Zend_Controller_Front::getInstance()->getParam('bootstrap');
    $options = $bootstrap->getOptions();

One downside is that $options is a nested array, and not a Zend_Config object. If you prefer to work with a Zend_Config object you need to create it yourself as Zend_Application discards the one it creates. The easiest way to do this is to create a new method in your bootstrap to create the Zend_Config object and store to the registry.

    protected function _initConfig()
    {
        $config = new Zend_Config($this->getOptions());
        Zend_Registry::set('config', $config);
        return $config;
    }

You can then get at your config data wherever you need it. Try not to depend too much on Zend_Registry keys though, as it can make testing harder.

Of course, the source is found here with all the comments from Akrabat’s readers.

My free Wordpress Theme: Warmth

Posted on: Dec 16, 2009 by wenbert

I got bored and spent a few days creating a theme in Wordpress. This is a quick release of the theme and I tested this in Firefox and Chrome. screenshot

You can download it here.

Nothing special except that I spent about 4 hours creating the header image for it. LOL :P

Also, I have not validated the HTML and CSS for this theme. I got tired and I need to do something else – um like play CounterStrike: Source (?). But seriously, I am starting to get busy and thought that I should finish and release this now.

And oh, by the way, Eddie Vedder is in the theme. Just wanted to share. Thanks!

I’m giving away 20 Google Wave invites!

Posted on: Dec 01, 2009 by wenbert

I have 20 available Google Invites. Leave your email below. Format it to something like youremail[AT]gmail.com or something to avoid getting spammed. Just leave your email in the Email textbox when commenting :P

First 20 legit emails will get the invites.

UPDATE:
I still have around 10 or so invites left.

CSS Buttons: Simply Buttons V2

Posted on: Nov 24, 2009 by wenbert

Thanks to Jack for posintg this.

buttons-2

And from the official Simply-Buttons V2 site:

Benefits

How it works
The markup is pretty simple, as you can see below. The thing to notice here is that both the button and link tags each have a nested-nested span tag.

<button>
  <span><span>Button</span></span>
</button> 
<a class="button">
  <span><span>Button</span></span>
</a>

Grab it here.

Ekini Edit: A gEdit Scheme that is dark and suitable for low-light conditions

Posted on: Nov 19, 2009 by wenbert

A dark scheme with reduced glare and improved readability. The scheme is called Ekini Edit, it is based on the Zendburn and Thankful Eyes.

UPDATE: Wow, this post has recently been getting a lot of attention from StumbleUpon. Please keep the fire burning by Stumbling/sharing this post. Thanks everyone!


ekini_edit

Click here to download.

How to install:

  1. Edit
  2. Preferences
  3. Fonts & Colors
  4. Add ekini_edit.xml

fonts_colors

Meet my new text editor, Gedit (like Textmate for Linux)

Posted on: Nov 19, 2009 by wenbert

I have new text editor for my Ubuntu box. Meet Gedit. For Ubuntu users, you can use your Synaptic Package Manager to install it.

Gedit itself at start is very basic and bare. So, I have come up with the best (*SEO-thingy* :P) and most useful plugins that I am using right now:

  1. Advanced Bookmarks Useful for long code. Allows you to have a Bookmark Manager.
  2. Bracket Completion
  3. Code Comment
  4. Color Picker
  5. Edit Shortcuts
  6. Embedded Termimal
  7. File Browser Pane Very sweet. You can create a “Bookmark” to your FTP server and browse your remote directories with gedit.
  8. FTP Browser
  9. Line Tools Allows you to duplicate lines, remove a line, etc.
  10. CMYK Project Manager Useful for local projects. But this one does not allow you to create a project using an FTP Bookmark. Textmate-like.

To install the plugins, just extract the files in this directory:

/home/[username]/.gnome2/gedit/plugins
OR
~/.gnome2/gedit/plugins

Gedit also has very nice themes. Here is what my gedit looks like:

Now that looks very sweet for a free editor.

* To create a “Bookmark” go to “Places > Connect to server…”, then enter the host and location of your remote directories.

Zend Framework: Creating your own RESTful Services

Posted on: Nov 11, 2009 by wenbert

Matthew Weier O’Phinney has a very useful post for the latest release (1.9) of Zend Framework.

As a followup to my previous post, I now turn to RESTful web services. I originally encountered the term when attending php|tropics in 2005, where George Schlossnaggle likened it to simple GET and POST requests. Since then, the architectural style — and developer understanding of the architectural style — has improved a bit, and a more solid definition can be made.
At its heart, REST simply dictates that a given resource have a unique address, and that you interact with that resource using HTTP verbs. The standard verbs utilized are:

GET: retrieve a list of resources, or, if an identifier is present, view a single resource
POST: create a new resource with the data provided in the POST
PUT: update an existing resource as specified by an identifier, using the PUT data
DELETE: delete an existing resource as specified by an identifier

The standard URL structure used is as follows:

“/resource” – GET (list) and POST operations
“/resource/{identifier}” – GET (view), PUT, and DELETE operations

What the REST paradigm provides you is a simple, standard way to structure your CRUD (Create-Read-Update-Delete) applications. Due to the large number of REST clients available, it also means that if you follow the rules, you get a ton of interoperability with those clients.

As of Zend Framework 1.9.0, it’s trivially easy to create RESTful routes for your MVC application, as well as to handle the various REST actions via action controllers.

The full article is here: http://weierophinney.net/matthew/archives/228-Building-RESTful-Services-with-Zend-Framework.html.

I am pretty sure that this post will come in handy for me.

Zend Framework 1.8 Web Application Development from Packt Publishing

Posted on: Nov 09, 2009 by wenbert

A few months back, I participated in reviewing Zend Framework 1.8 Web Application Development written by Keith Pope.

The book is now published and released. You can get it here: http://www.packtpub.com/zend-framework-1-8-web-application-development

This book is for PHP web developers who want to get started with Zend Framework. If you are already using this framework, you will learn how to use it in the best way and produce better applications.

Basic knowledge of Object Oriented design will be helpful.

I haven’t got the chance to read the printed version but hopefully I will be able to within the coming weeks.

Zend Framework: Handling file uploads with Zend_File_Transfer

Posted on: Nov 09, 2009 by wenbert

Here is a tutorial on how to handle file uploads with Zend_File_Transfer.

Like so many of the other powerful components made available through the Zend Framework, the Zend_File_Transfer component is intended to make your life much easier when it comes to the task of uploading files from a user’s computer to a Web server. In actuality, this component is much more flexible than merely handling uploads; it can also be used to transfer files using protocols such as FTP and WebDAV, however for the purposes of this tutorial we’ll stick to its initially stated purpose. Let’s begin by creating the simplest process possible in the upload action which is nonetheless capable of accepting and processing an uploaded file

The post is by Jason Gilmore from EasyPHPWebsites.com


© Copyright 2007 eKini Web Developer Blog . Thanks for visiting!