At the dawn of year 2011, I wish you all (readers of All about Linux blog) a very happy and prosperous year :-).
Friday, 31 December 2010
Sunday, 26 December 2010
Google Launches Open Source YouTube Channel
Google has launched an open source channel on YouTube. The aim is to collect and organize all the videos related to Google and open source projects in one location.
Read more »
Read more »
Wednesday, 15 December 2010
Richard Stallman Says Chrome OS is Bad for Users
Richard Stallman founder of the GNU Project and the Free Software Foundation (FSF) has reiterated his stand against Chrome OS and Cloud computing in general.
Read more »
Read more »
Tuesday, 14 December 2010
Google Demonstrates The Advantages Of Using Google Notebook
Google is pulling in all stops to win over all skeptics to the Google Chrome OS way of computing.
The prominent feature being - "You just cannot lose your data on a Google Chrome notebook". Google has gone to great lengths to convince us about this - so much so that it destroys 25 computers to create this stupefying video.
Read more »
The prominent feature being - "You just cannot lose your data on a Google Chrome notebook". Google has gone to great lengths to convince us about this - so much so that it destroys 25 computers to create this stupefying video.
Read more »
Wednesday, 8 December 2010
Get A Free Chrome Notebook From Google
Google is actively looking for volunteers to test drive its Chrome OS loaded notebooks and provide feedback.
What is in it for you
Read more »Tuesday, 7 December 2010
Google Unveils Chrome OS - A Browser Based Operating System
Google unwraps its much awaited Chrome OS - a browser based operating system, which the Google CEO Eric Schmidt has termed "a viable third choice" over the popular traditional OSes Microsoft Windows and Apple OS X.
Chrome OS which runs on a customized Linux kernel banks heavily on the concept of Cloud computing. All your data and the applications reside on a remote server and not on your machine.
Read more »
Chrome OS which runs on a customized Linux kernel banks heavily on the concept of Cloud computing. All your data and the applications reside on a remote server and not on your machine.
Read more »
Sunday, 5 December 2010
Atlassian JIRA Configuration Tutorial: JIRA Schemes (Part 3)
In the first part of this tutorial we learnt the importance of JIRA schemes and how to configure some of them:
- Issue type scheme.
- Issue type screen scheme.
- Field configuration scheme.
- Screen scheme.
In the second part of this tutorial we'll discover other types of schemes that JIRA provides to fine tune our projects:
- Permission scheme.
- Issue security scheme.
In this part we'll discover what workflow schemes and notification schemes are and how to use them.
Workflow Scheme
A workflow scheme let an administrator establish a relation between an issue type and a workflow and it has got a special entry to assign a workflow to all unmapped issue types as well.What A Workflow Is
The concept of workflow is central in JIRA and it's where most of JIRA power resides in. Let's start with an example: in your project you define a couple of custom issue type called risk and documentation. So far they're just a name: a moniker that helps you categorize your projects issues into named sets but with no additional value. The next thing you'd probably do is to define custom fields for the new issue types of your projects to store the additional data you might need (such as a document author, a document title and so forth.)
As soon as you start using the new issue types in your project you'll realize (or your users will do) that it's not very intuitive to open, resolve and close a document (or a risk). Moreover, users will start complain that some operations are missing: reviewing a documentation, escalating a risk, etc.
JIRA workflows solve this problem: they let you define the process which an issue (of a specific type) will go through. The process is modeled as a finite state machine with transitions between state where you can even hook security policies and business rules (conditions and validators).
Additionally, JIRA will let you specify other information that will let you glue together the features that JIRA offers (such as screens) to fine tune your project and provide your users the interface they expect.
An Use Case
For the sake of simplicity we'll start with a very simple example. Let's suppose that you've got a dependency with a third party that, sometimes, takes charge of an issue for part of its lifetime: it might be, for example, the software quality assurance department of your organization to which your code changes are submitted for validation. Then, you might want to put issues in a waiting state to explicitly reflect this fact.A goot starting point to implement this custom workflow is copying the default JIRA workflow and using it as a starting point. The modifications you'll need to apply to the default state machine are:
- Create a new state: Waiting for feedback.
- Create new transitions to the new state:
- Ask feedback transition from the In Progress state to the Waiting for feedback state.
- Create new transitions from the new state:
- Continue transition from the Waiting for feedback state to the In Progress state.
- Resolve Issue transition from the Waiting for feedback state to the Resolved state.
- Close Issue transition from the Waiting for feedback state to the Closed state.
The resulting steps are shown in the following picture.
Screens for Transition Views
When you toggle the state of an issue, you can assign the transition a screen that will be presented to the user. You can choose one of the bundled JIRA screens or create a screen of your own. If during a transition you want the user to input some additional data, a transition screen is the place where you can ask the user to do so.
For the new Resolve Issue transition, for example, I replicate the settings in the default JIRA workflow Resolve Issue transition, that is using the Resolve Issue Screen during the transition.
Conditions
Conditions are propositions that must hold for the transition to complete successfully. Conditions, for example, are often used to create a security policy for a workflow transition. Some of the conditions that JIRA offers are:
- Only assignee
- Only reporter
- Permission
- User is in group
- User is in project role
- User is in group custom field
In this use case, for example, we want the Ask feedback and Continue transitions to be initiated only by the current assignee of an issue:
In the case of the Close Issue and Resolve Issue transitions, we replicated the conditions on the corresponding default JIRA workflow transitions, that is, check if the user has got the Close Issue permission or the Resolve Issue permission.
How To Create a Workflow
To create a workflow you've got to:
- Define the state machine for you workflow.
- Create a new workflow or copy an existing workflow that could be used as a starting point.
- Implement the state machine adding all the states you defined and all the possible transitions between the states.
- Optionally define and assign the screens you need to display during the workflow transitions.
- Define the conditions that must hold for a each transition to complete: pay attention to take into account JIRA standard permissions (such as the Close Issue and Resolve Issue) in the conditions for your transitions.
How To Create a Workflow Scheme
Before creating a workflow scheme, all of the required workflows for the issue types you're going to manage in a specific project must have been prepared. To create a workflow scheme, you've got to:
- Create a new workflow scheme.
- Assign the default workflow to be used for unmapped issue types.
- Assign a workflow to every issue type whose state machine you want to modify in the current scheme.
Apply the workflow to a project and the modification will take effect.
Please note that changing the workflows that are used in a project with existing issues is a potentially disruptive task that must be performed with care. Changing the workflow for an issue type might require mapping existing issues that find themselves in states that are no longer valid to valid states of the new workflow. JIRA will detect such conflicts and will ask the administrator to establish these mappings when changing a workflow or a workflow scheme for a project.
Best Practices
Hopefully, JIRA won't even let you modify the default system workflow (unless you hack it). Different projects usually mean different users and, although the words we use might be the same, the meaning we give them might differ a lot so the recommendation is the same: always create a custom scheme for your project when in doubt. It's easier to consolidate multiple equivalent schemes into one than decoupling projects that share schemes that were supposed to never change. JIRA lets you copy many of the objects it manages including workflow and workflow schemes.
Notification Schemes
JIRA can notify users when some event has happened. The notification scheme establishes a relation between the type of event and the users who will receive a notification.
Event Types
Some of the types of event that JIRA offers are:
- Issue Created.
- Issue Resolved.
- Issue Closed.
- Work Logged On Issue.
The complete list can be checked in the official JIRA documentation. JIRA also offers a Generic Event that can be fired, for example, from a workflow transition, that can be used to extend the set of JIRA events should you need a new one.
Users Who Can Receive Notifications
The identities whom JIRA lets you send notification to are:
- Current Assignee.
- Reporter.
- Current User.
- Project Lead.
- Component Lead.
- Single User (chosen from a list).
- Group (chosen from a list).
- Project role (chosen from a list).
- Single email address (input by the user).
- All Watchers.
- User from a custom field.
- Group from a custom field.
An Use Case
Let's suppose that you're a project or a component leader and you want to receive a notification every time an issue is resolved or closed: it will be sufficient to create a custom scheme, for example by copying JIRA default notification scheme, and adding a notification for the desired event to the appropriate receiving identity.
How To Create a Notification Scheme
To create a notification scheme it's necessary to perform the following operations:
- Create a new notification scheme or copy an existing one to use it as a starting point.
- For every event you wish to handle, add a notification and assign the set of receiving identities.
A notification scheme can be associated to a project and it will take effect immediately.
Friday, 19 November 2010
Google Releases A Free, Interactive Book On Browsers and The Web
Google, in its pursuit of bringing awareness about Internet among the masses has executed a unique project in the form of an interactive book on web browsers and the Internet.
Read more »
Read more »
Tuesday, 16 November 2010
Atlassian JIRA Configuration Tutorial: JIRA Schemes (Part 2)
In the first part of this tutorial we learnt the importance of JIRA schemes and how to configure some of them:
- Issue type scheme.
- Issue type screen scheme.
- Field configuration scheme.
- Screen scheme.
In the second part of this tutorial we'll discover other types of schemes that JIRA provides to fine tune our projects:
- Permission scheme.
- Issue security scheme.
These schemes are used to tune the security policies you may want to establish over your JIRA instance, your projects and the issues they manage.
Before You Start
If you haven't done it yet, please read: Atlassian JIRA Configuration Tutorial: Overview of JIRA Security.
Permission Scheme
An introductory discussion about JIRA security and JIRA permissions is the subject of another blog post.
A permission scheme defines a the set of permissions to apply to a project.
An Use Case
The default JIRA permission scheme distinguishes between the following project roles:- Administrators
- Users
- Developers
Users are granted the right of submitting issues into project (Create issues, Create comments, etc.) while developers are granted the right of working on issues and take them into completion (Edit issues, Close issues, etc.).
This is a starting point for refining your security policies adding actors (a project role) in your process and assigning them permissions. A first refinement might be requiring a project manager to check the developers' work on an issue before transitioning into the Closed state and letting developers transition an issue only up to the Resolved state.
How To Setup a Permission Scheme for Your Project
To setup a permission scheme for your project:
- Define the project roles your project needs: this is an optional step, since you can assign permissions to users and groups, but it's desirable to clearly organize JIRA users in sets (project roles) according to their status in each project.
- Assign users and groups to your project roles.
- Create a permission scheme for your project (possibly copying an existing permission scheme).
- Assign permissions to users, groups and project roles in the permission scheme.
- Assign the permission scheme to your project.
Issue Security Scheme
As we've seen in another post of this series, issue security scheme let administrators establish security policies to protect issues in a project. An issue security scheme defines a set of security levels and grants permissions to a set of identities to access issues in a given security level.An Use Case
Issues in your projects could be organized in security level so that the visibility of certain issues is reduced to a subset of the users that can access a project.
In another scenario you could be sharing a project with some of your clients and would not like a client of yours having visibility of all of the issues managed in that project for confidentiality reasons.
An issue may be changing security level according to the workflow transitions it performed: just after creation, an issue could be transitioned to another security level so that a subset of users (such as a group of developers) might asses the issue and decide what to do with it. In a later time, the issue can be transitioned to another security level to be available to a wider audience.
How to Setup an Issue Security Level for Your Project
To setup an issue security scheme for a project of yours you have to:
- Create a new issue security scheme.
- Define the number of security level your project needs and create them in the issue security scheme.
- Grant permissions to a set of users for every security level in your scheme
- Assign the issue security scheme to your project.
Next Steps
In the following part of this series we'll explore the last two kinds of schemes that JIRA provides: the workflow scheme and the notification scheme.
Monday, 15 November 2010
Upgrading OpenSolaris to Oracle Solaris 11 Express
Today Oracle released Solaris 11 Express and, as described in the Getting Started Guide, there's plenty of installation options:
- An interactive GUI installer in a LiveCD.
- A text installer.
- An automated installer.
- An upgrade path from OpenSolaris.
Yes. If you're running some OpenSolaris machines while waiting for the release that never came, here's the option for you. The upgrade instructions are detailed in the Solaris 11 Express Release Notes:
- If your preferred publisher is not opensolaris.org (release), set it:
# pkg set-publisher -P -O http://pkg.opensolaris.org/release/ opensolaris.org
- Perform an image-update:
# pkg image-update
- Reboot into the new boot environment.
- Set the new publishers:
# pkg set-publisher --non-sticky opensolaris.org
# pkg set-publisher --non-sticky extra
# pkg set-publisher -P -g http://pkg.oracle.com/solaris/release/ solaris
- Read the license:
# pkg image-update 2>&1 | less
- If you accept the license, perform the last image-update:
# pkg image-update --accept
- Reboot into your brand new Oracle Solaris 11 Express boot environment
Oracle Releases Oracle Solaris 11 Express (2010.11)
More than one year after the latest and last OpenSolaris build (2009.06) was released Oracle has finally released a new snapshot of the next generation Solaris 11 Operating System: Solaris 11 Express (snv_151a).
Solaris Express is now available as:
- A text installer: this installer does not install any window manager but it can be easily installed using the Solaris package manager (pkg).
- A LiveCD with a GUI installer (does install the GNOME Desktop Environment).
- An automated installer for network deployments.
- USB install images.
If you want to discover what's new in this release, have a look at this presentation. The most important features I was waiting for are:
- Boot Environments.
- Fast Reboot.
- IPS packaging system.
- Boot Environments for Zones.
- ZFS as the default file system.
- ZFS deduplication.
- ZFS diff.
- ZFS dataset encryption.
- Network virtualization (Project Crossbow).
Sunday, 14 November 2010
CDE - An Innovative Way Of Running Programs On Diverse Linux Machines
CDE (not to be mistaken for the Common Desktop Environment in UNIX) is a packaging tool which allows you to identically replicate the execution of a program running on one Linux machine, on to another.
It does this by packaging up the Code, Data, and Environment (including all the dependencies - libraries, auxiliary programs etc) together, which can then be transferred and executed flawlessly on a different Linux machine.
Read more »
It does this by packaging up the Code, Data, and Environment (including all the dependencies - libraries, auxiliary programs etc) together, which can then be transferred and executed flawlessly on a different Linux machine.
Read more »
Atlassian JIRA Configuration Tutorial: Overview of JIRA Security
JIRA flexibility is notorious and its security features are no exception. This blog post is an overview of JIRA security features and how to configure permissions to secure JIRA, your projects and all of your issues.
Users, Groups and Project Roles
At the global level, JIRA organizes users into groups and project roles. Groups are named sets of users and project roles are named sets of users and groups:
The administrator can create, edit an delete any number of users, groups and project roles.
Although, at first, the existence of both groups and project roles might seem redundant, project roles are important since they provide an additional level of indirection to decouple permissions from user accounts in a project. JIRA permissions at the global level (Global Permissions) can only be granted to groups. JIRA permissions at the project level can be granted at any combination of users, groups and project roles. An effective organization of your users (and groups) into project roles will help you create and maintain clean security policies in your project by:
- Defining the project roles you need.
- Assigning permissions to your project roles in a permission scheme.
- Assign a permission scheme to a project.
At the global level, to ease administration of a great number of projects, JIRA lets you define a project role's default members.
Global JIRA Permissions
Global JIRA permissions are (as of JIRA 4.2):
- JIRA System Administrators.
- JIRA Administrators.
- JIRA Users.
- Browse Users.
- Create Shared Objects.
- Manage Group Filter Subscriptions.
- Bulk Change.
Most of them are self-explanatory and further information about each of them can be found in the official JIRA documentation.
JIRA Users
This permission is required for users to be able to log in into JIRA. By default, groups that are granted this permissions will be assigned to any newly created user.
Disabling an User
Revoking this permission to an user, that is removing the users from every group that is granted the JIRA Users permission, will effectively disable the user and it won't count against your JIRA license limit.
Project Permissions
Project permissions are defined by JIRA and can be granted to an identity in a permission scheme. Assigning a permission scheme to a project will make those permissions effective in that project context.
Examples of most commonly used permissions are:
- Administer project
- Browse project
- Create issue
- Edit issue
- Resolve issue
- Close issue
- Add comment
- Delete comment
- Work on issues
For the complete list of permissions for a given JIRA version please check JIRA documentation or navigate to the Edit Permissions window of your JIRA installation accessible at the following URL:
http://your.jira/secure/admin/EditPermissions!default.jspa?schemeId=0
Further information about assigning project permissions to users, please check out this blog post.
Securing Workflow Transitions
The permissions seen so far make no mention of workflows and workflow transitions. Obviously, workflows are a fundamental part of JIRA functionality and it's essential for an administrator to be able to establish security policies at the workflow transition level.
Permission requirements can be associated to workflow transition using Conditions.
Conditions
Conditions essentially are validation rules that must be satisfied for a workflow transition to be executed. JIRA ships many built in conditions and many of them can be used to establish fine tuned security policies at a workflow transition level. The available security-related workflow transition conditions are (as of JIRA 4.2):
- Only assignee.
- Only reporter.
- Permission.
- User in group.
- User in group custom field.
- User in project role.
These conditions can be used to build security policies using any kind of identity seen so far: group and project role. Moreover, other identities related to a specific issue are available such as assignee and reporter.
Conditions are basic JIRA-provided parametrizable propositions that can be used to build more complex statements using the JIRA administration console as shown in the following picture:
Validators
Validators are similar to conditions with the difference that validators are executed against input parameters. As far as it concerns security policies, conditions is the way to go. Anyway, a Permission validator is available to check if the current user has a specific permission.Securing Issues in a Project
We've seen many ways an administrator can secure its JIRA installation so far: at the global level, at the project level and at the workflow transaction level. There's case we haven't considered yet, though: applying distinct security policies to issues inside a project.To achieve this goal in a flexible way, JIRA provides the ability to categorize a project's issues in the so-called security levels. A security level is an attribute of an issue that can be set in the usual ways:
- By using a screen that configured to edit such a field.
- By a workflow transaction.
An issue in a security level can be accessed only by identities (users, groups or project roles) that are granted permissions. The link between a security level and the identities that are granted access is established by means of an issue security scheme.
As usual, as soon as a project is associated to a security scheme, the scheme security policies are enforced. You can now create as many security level as your project needs and grant permissions to the corresponding users for every security level.
The available identities to grant permissions to in a security level are:
- Reporter.
- Group.
- Single User.
- Project Lead.
- Assignee.
- User custom field value.
- Project role.
- Group custom field value.
Next Steps
In this blog post we've introduced the facilities that JIRA provides to secure the operations it offers and the object it manages with flexible security policies.
In the next part of this series we'll examine what JIRA schemes are and how they can be used to decouple configurations from the context in which they are applied.
OpenSolaris (and OpenIndiana) Spends 50% of CPU Time in Kernel
A couple of days ago my client decided to prepare some new Java EE development environments and, when asked about which OS to choose, I suggested that he gave Solaris a try: since my client production servers run Solaris 10, he would benefit from a more homogeneous set of environments.
We installed a couple of test machines, one with Solaris 10 and another with OpenSolaris 2009.06, and we began installing the development environments and the required runtime components. The installation packages were SVR4: installation went straightforward on Solaris 10 while on OpenSolaris we had to resolve a couple of glitches. After a couple of day, test users were inclined towards OpenSolaris mostly because of its newer desktop environment: we started installing the remaining machines and started upgrading OpenSolaris to the latest dev release (b134).
Reduced Performance: CPU Time in Kernel When Idle
The latest OpenSolaris dev release (b134) has got some known issues I wasn't concerned with since I already fought with in the past and can easily be resolved.
The surprise was discovering that all of the upgraded machines were affected by another problem: as soon as users rebooted into their b134 boot environment, the performance of the machine seemed to be pretty worse than when using the oldest (b111) boot environment.
prstat was showing no misbehaving process while vmstat indicated that the system was spending a constant 50% of the time in the kernel. With a quick search I easily pointed out this bug:
Repeating the steps outlined in the bug discussion confirmed me that we were hitting the same bug. We thus disabled cpupm in /etc/power.conf and the problem disappeared.
Upgrading to OpenIndiana
Although the bug is still listed as ACCEPTED, we decided to give OpenIndiana a try and upgrade a machine following the upgrade path from OpenSolaris b134. The upgrade went smooth and in no time we were rebooting into OpenIndiana b147.
The cpupm bug is still there, though. Nevertheless, it's a great opportunity for my client to test drive OpenIndiana and decide if it fits its needs. Nowadays, users will appreciate almost no differences between OpenSolaris and OpenIndiana (except for the branding.) As time goes by, we'll discover if and when Oracle will put back sources into OpenSolaris or if OpenIndiana is destined to diverge from its step-brother.
Thursday, 11 November 2010
Atlassian JIRA Configuration Tutorial: JIRA Schemes (Part 1)
Atlassian JIRA is an extremely flexible piece of software that can be easily customized by a casual administrator. Nonetheless, to take full advantage of all of its power, it's necessary to understand how it works and how are organized the concepts that it manages.
This series of blog posts is an overview of JIRA and a quick tutorial about configuring a JIRA project by taking advantage of JIRA configuration schemes.
If you're a Solaris user you may be interested to other posts I wrote about setting up and managing JIRA on a Solaris installation (some of them might be useful to users of other UNIX and UNIX-like operating as well):
- Installing JIRA on Solaris
- Registering JIRA as a Solaris SMF-Managed Service
- Backing Up JIRA and Confluence Taking Advantage of ZFS Snapshots
- JIRA: Creating Issues from TLS-Encrypted Email
- Adding Google Analytics Code To JIRA
Basic Concepts
Whenever you use JIRA, you're creating and updating issues in a project. Issues may be of specific types, may have custom fields and a security level. An user with appropriate permissions may act on an issue by applying a workflow transition.Although it might seem otherwise, a project is not "just" an issue container with project roles and a set of security policies:
A project is a logical partition inside JIRA where a set of configuration rules are applied.
A project is a logical partition inside JIRA where a set of configuration rules are applied.
What a JIRA Scheme Is
This is when the JIRA scheme concept comes in. Inside JIRA almost everything can be configured:
- Workflows.
- Issue types.
- Custom fields.
- Field configurations.
- Screens.
- Notification.
- Permissions.
For each one of the above-mentioned concepts, user configurations and customizations are defined at the JIRA (global) level. The relation between a set of specific configuration rules for such concepts and one (or more) project is established by a set of schemes. In some conditions, a scheme might establish a relation between a scheme and another scheme.
This model is pretty flexible: the same issue type, for example, might be reused in different projects with different workflows, different field configurations and even different management screens. Conceptually, then, these concepts are organized as in the following picture:
The semantics and the behavior of a concept can then be configured, customized and fine tuned at the project level by means of schemes.
The Importance of Schemes
Schemes probably are the biggest source of confusion for a novice JIRA administrator. At the beginning things may seem to work without the need of bothering with them. When the number of projects starts to grow, the possibility of configuration clashes grows too and that's when an administrator realizes that the lack of a proper scheme partitioning is the source of all evil. Redesigning a JIRA configuration for a great number of projects is not easy and having projects polluted by configurations specific to other projects will make your users complain.
In this series of posts we'll explore every kind of scheme, their relation between the project and the concepts they configure, and how they can be used.
Schemes insulate projects from one another: a proper JIRA schemes' configuration guarantees that every manager can have its project configured with its own requirements without affecting other projects, even in the case in which they might be sharing some common concepts (such as an issue type defined at a corporate level.)
If in doubt, always create a scheme. If in the future apparently similar project configurations starts to diverge, schemes will enable you to independently manage different project.
JIRA Makes It Easy
Abstraction, decoupling and flexibility all come with a price: the administrator has to define configurations, schemes and associate them with a project. Fortunately, JIRA makes it easy since configuration and scheme can usually be copied: instead of starting from scratch, you can copy a scheme or a configuration and using it as a starting point for your new setups.
Types of Schemes
A JIRA scheme exists to map a project to almost any kind of concepts managed by JIRA:
- Workflow schemes.
- Issue type scheme.
- Issue type screen scheme.
- Issue security scheme.
- Field configuration scheme.
- Screen scheme.
- Notification scheme.
- Permission scheme.
In this series of posts we'll explore every kind of scheme, their relation between the project and the concepts they configure, and how they can be used.
In this part we'll explore the following types of JIRA schemes:
- Issue type scheme.
- Issue type screen scheme.
- Field configuration scheme.
- Screen scheme.
Issue Type Scheme
The first scheme you'll probably start with during the configuration of your JIRA project is the Issue type scheme. The issue type scheme establishes the relation between a project and the available issue types.
An Use Case
An issue type scheme is necessary when the default JIRA issue types are not sufficient for your project. Let's suppose your project will need additional issue types such as:
- Risk.
- Deliverable.
- Payment.
To safely add these new issue types with your project, you have to create the required issue types and associate them to the issue type scheme used by your project.
How to Setup Issues for Your Project
To setup the issue types you'd like to use in your project, you must perform the following operations:
- Define the issue types you need (if they do not exist yet).
- Create an issue type scheme for your project.
- Configure the issue type scheme to contain all the issue types to use in your project.
- Associate the issue type scheme with your project.
At this level, the selected issue types for your project are just names. During the configuration of the next schemes we'll give these names some meaningful behavior.
What If I Use The Default Issue Type Scheme?
Since all issue types are implicitly associated to the default issue type scheme, if you modify it every project that is not associated with a custom scheme will see such modifications. If you're asked to setup a new JIRA project that will need a new issue type, that issue type will show up in every other project that is using the default scheme: that will probably make no sense to your users.
Field Configuration Scheme
The field configuration scheme establishes a relation between issue types and field configurations:
A field configuration scheme has a special default entry to map a field configuration to any unmapped issue type.
Field Configurations
A field configuration defines a field's behavior and is commonly used to tell JIRA:
- Whether a field is required.
- Whether a field is visible or hidden.
- How a field is rendered.
An Use Case
Field configurations and field configuration schemes are necessary whenever your issue fields behavior have to be customized. By default, every new field is visible and optional. If you need a field to be required or to be hidden for a given issue type, a field configuration scheme is required to map the affected issue types to the desired field configurations. A new Amount field, for example, might be required and visible only for the Payment issue type. Any screen for every other issue types should not require nor show the amount field.
How to Setup a Field Configuration Scheme for Your Project
With a field configuration scheme you can setup the behavior of every field, for every issue types it applies to:- If applicable, define a field configuration that will apply to any unmapped issue types. A good starting point might be a copy of the default JIRA field configuration.
- Define a field configuration for every issue type that needs one. Many issue types can share the same field configuration.
- Create a field configuration scheme and associate the field configurations you created to the target issue types.
- Optionally, define the default field configuration for all of the unmapped issue types.
- Associate the field configuration scheme to your project.
What If I Use The Default Field Configuration Scheme?
Using the default JIRA field configuration scheme and the default field configuration may lead to configuration clashes such as the following:
- If a project requests a field to be hidden, every other project that might still require it will see the field disappear from its screens.
- If a project requests a field to be marked as required, every other project will be forced to set a value for such a field in its screens.
Screen Scheme
JIRA lets the user easily define new windows, called screens, that may be used during a workflow transaction or during an issue type operation such as create, edit and view.
A screen scheme establishes a relation between an issue operation and a screen. A screen scheme has a special default entry to map a screen to any unmapped issue operation.
Screens
A screen is just an ordered list of fields easily configurable with the JIRA administration console. The field rendering and behavior, such as its format or whether it's required or visible, is configured by a field configuration.
An Use Case
A custom screen it's necessary, for example, when you want to control which fields are visible or editable during an issue operation and when you need a brand new screen for a transition in a workflow of yours.For a Payment issue type, for example, it might be desirable that some fields (such as Amount) should not be visible or editable during the edit operation. In this case, it's necessary to define a new screen that contains the editable fields and associate it with the edit operation in a new screen scheme. This screen scheme will then be associated with the target issue types by means of an issue type screen scheme that will be examined in the next section.
A Payment issue type might then be associated with an user-defined workflow. During a specific workflow transaction, such as Pay, it might be necessary to update another custom field: Payer. In this case, it's necessary to define a new screen that contains the Payer field and any other required field and associate it with the desired workflow transaction.
How to Setup a Screen Scheme for Your Project
To configure a screen scheme to use in your project you have to follow these steps:
- Define a screen for every customized issue operation screen that your project needs.
- Create a screen scheme.
- If applicable, define a screen for every unmapped issue operation.
- Associate the screens you created with the corresponding issue operation.
- Repeat this operation and create screens and screen schemes for every issue type whose operations need screen customizations in your project.
What If I Use the Default Screen Scheme?
Since the default JIRA screens are associated to all issue operations for every issue types, a modification in either the default screens or the default screen scheme will be visible in all the projects that don't use custom screen schemes. This situation may lead to complaints for missing or new and unknown fields in screens used by other projects.
Issue Type Screen Scheme
An issue type screen scheme establishes a relation between a screen scheme and an issue type. An issue type screen scheme has a special default entry to map a screen scheme to any unmapped issue types.
An Use Case
The issue type screen scheme is mostly a "technical" scheme to tell JIRA to use a screen scheme for a specific issue type in a project. Common use cases have been explored in the previous section.
How to
To setup an issue type screen scheme for your project you have to follow these steps:
- Create a new issue type screen scheme.
- If applicable, associate a default screen scheme for every unmapped issue types.
- Associate a screen scheme to every issue type whose screens you need to customize.
- Associate the issue type screen scheme to your project.
What If I Use The Default Issue Type Screen Scheme?
Since the default issue type screen scheme just maps the default screen scheme to any issue type, using this scheme in every project will have the same detrimental effects on project decoupling that we outlined in the previous section.Conclusions
In the first part of this series, we've explored a basic component for the JIRA customization: schemes. Schemes are a flexible mean to decouple configurations from their scope (projects). Although you might be tempted to ignore custom schemes and just modify JIRA default schemes, I suggest you think it twice, take a large breath, reread this post and convince yourself that it's really a bad idea.
JIRA helps the administrator build schemes quickly allowing him to generate copies of existing schemes on the fly. Create a test project and start configuring it copying JIRA default schemes and modifying them. You'll be surprised by discovering how powerful and easy it is.
Next Steps
In another post (coming soon) I'll explore other types of JIRA schemes with particular emphasis to workflows and their customization.
Monday, 8 November 2010
Glassfish 3.0.x Admin Console Not Starting: Is It Behind a Proxy?
Today I was performing yet another Glassfish v. 3.0.1 installation, one of the easiest pieces of software to set up there, on a Solaris 10 system:
To my surprise, when I tried to connect to the Admin Console, the browser got stuck just after inserting my user credentials. I tried to restart the domain over and over again but I had no luck.
The domain logs (that you can find in $YOUR_DOMAIN/logs/server.log) were telling nothing interesting: the domain was starting up correctly and the admin console application was logging no errors. The last line of the logs always was:
[#|[snip]|admin console: initSessionAttributes()|#]
After a while, it appeared a line such as this:
[#|[snip]|Cannot refresh Catalog: Connection timed out: Connect|#]
This was the clue! Glassfish is able to check for updates automatically from an IPS repository: do you remember that fancy update icon in the upper left corner of the Admin Console that shows up to suggest you the available updates? This server is behind a proxy: maybe I was experiencing a glitch related to this.
A quick search indeed revealed that other users were experiencing the same problem when Glassfish sat behind a proxy server. The workarounds I tested to work are the following:
The third suggestion comes from a thread published in the java.net Forums. Unfortunately the link is broken now and I could only read it using Google's cache.
You can either use the asadmin program or the admin console to do that. Using asadmin is as simple as:
$ asadmin
asadmin> create-jvm-options "-Dhttp.proxyXXX=value"
asadmin> create-jvm-options ...
If you prefer using the Admin Console, just navigate to Enterprise Server/System Properties and use the web interface to add the values.
The values you set will be reflected in the domain.xml domain configuration file:
[...snip...]
<java-config ...>
[...snip...]
<jvm-options>-Dhttp.XXX=value</jvm-options>
</java-config>
[...snip...]
$ $GLASSFISH_INST/bin/updatetool
The first time you launch updatetool, it will ask you to install this feature. Since you're behind a proxy, you need to setup some environment variables. If you're using an HTTP proxy, you can just set the http_proxy variable:
$ export http_proxy=http://user:password@proxy.host:port
When updatetool finished installing the required packages, you can start it again and the updatetool windows will show up. In the Preferences window you can tune the update behaviour or disable it at all.
As pointed out in a comment, Glassfish can be configured to have "no network access" by setting the
com.sun.enterprise.tools.admingui.NO_NETWORK
property to true. As usual, this can be done adding the
-Dcom.sun.enterprise.tools.admingui.NO_NETWORK=true
to the JVM parameters list or using the asadmin tool:
$ asadmin create-jvm-options \
-Dcom.sun.enterprise.tools.admingui.NO_NETWORK=true
- Install the software (unzipping a zip or installing a native package).
- Optionally create a new domain.
- Start the domain.
To my surprise, when I tried to connect to the Admin Console, the browser got stuck just after inserting my user credentials. I tried to restart the domain over and over again but I had no luck.
The domain logs (that you can find in $YOUR_DOMAIN/logs/server.log) were telling nothing interesting: the domain was starting up correctly and the admin console application was logging no errors. The last line of the logs always was:
[#|[snip]|admin console: initSessionAttributes()|#]
After a while, it appeared a line such as this:
[#|[snip]|Cannot refresh Catalog: Connection timed out: Connect|#]
This was the clue! Glassfish is able to check for updates automatically from an IPS repository: do you remember that fancy update icon in the upper left corner of the Admin Console that shows up to suggest you the available updates? This server is behind a proxy: maybe I was experiencing a glitch related to this.
A quick search indeed revealed that other users were experiencing the same problem when Glassfish sat behind a proxy server. The workarounds I tested to work are the following:
- Have Glassfish use your proxy.
- Use Glassfish updatetool to disable automatic updates (which is something I would always suggest for a production environment).
- Remove the console-updatecenter-plugin.jar.
The third suggestion comes from a thread published in the java.net Forums. Unfortunately the link is broken now and I could only read it using Google's cache.
Have Glassfish Use Your Proxy
To setup Glassfish to use a proxy you can use the following Java system properties:- http.proxyHost
- http.proxyPort
- http.proxyUser
- http.proxyPassword
You can either use the asadmin program or the admin console to do that. Using asadmin is as simple as:
$ asadmin
asadmin> create-jvm-options "-Dhttp.proxyXXX=value"
asadmin> create-jvm-options ...
If you prefer using the Admin Console, just navigate to Enterprise Server/System Properties and use the web interface to add the values.
The values you set will be reflected in the domain.xml domain configuration file:
[...snip...]
<java-config ...>
[...snip...]
<jvm-options>-Dhttp.XXX=value</jvm-options>
</java-config>
[...snip...]
Use Glassfish updatetool To Disable Automatic Updates
You can use the updatetool program to update Glassfish and configure the autoupdate feature:$ $GLASSFISH_INST/bin/updatetool
The first time you launch updatetool, it will ask you to install this feature. Since you're behind a proxy, you need to setup some environment variables. If you're using an HTTP proxy, you can just set the http_proxy variable:
$ export http_proxy=http://user:password@proxy.host:port
When updatetool finished installing the required packages, you can start it again and the updatetool windows will show up. In the Preferences window you can tune the update behaviour or disable it at all.
Remove the console-updatecenter-plugin.jar
The last thing you can do is removing the guilty plugin. The Glassfish plugins are deployed in the $GLASSFISH_INST/glassfish/modules directory. You can just move the console-updatecenter-plugin.jar to console-updatecenter-plugin.jar.old and Glassfish won't use it."No Network Access" for the Admin Console
As pointed out in a comment, Glassfish can be configured to have "no network access" by setting the
com.sun.enterprise.tools.admingui.NO_NETWORK
property to true. As usual, this can be done adding the
-Dcom.sun.enterprise.tools.admingui.NO_NETWORK=true
to the JVM parameters list or using the asadmin tool:
$ asadmin create-jvm-options \
-Dcom.sun.enterprise.tools.admingui.NO_NETWORK=true
Conclusion
This is a bothering bug with an easy workaround. Looking forward to Glassfish v. 3.1.Thursday, 4 November 2010
Fedora 14 - A Take On Its New Features
Fedora 14 named after physicist "Robert B. Laughlin" has been released. In my opinion, Fedora is geared more towards developers and system administrators than the ordinary users. However, it is perfectly usable as a Desktop too - baring a few exceptions (See the drawbacks below).
Read more »
Read more »
Wednesday, 3 November 2010
Solusi Shoutmix yang Error
shoutmix
Mungkin sahabat blogger hari ini mengalami masalah pada shoutmix, yakni url alamat kita kita terdeteksi. Akibatnya, nama kita pada shoutmix tidak berlink sehingga blogger lain yang berpapasan di tengah jalan saat blogwalking tidak bisa mampir. Soal apa penyebabnya saya tidak tahu pasti, namun ada beberapa langkah yang bisa Anda lakukan.
1. Prune Messages
Untuk membetulkan shoutmix di blog Anda, Anda bisa mengatasinya dengan cara menghapus semua pesan yang pernah masuk ke shoutmix Anda. Kita refresh sehingga shoutmix kita seperti baru.
Caranya adalah:
* Login ke shoutmix.com
* Pada bagian kotak General pilih Prune Messages
shoutmix
* Pilih Delete All Messages
shoutmix
* Masukkan password lalu klik Apply
Tapi ini tidak menjamin menyebuhkan dalam waktu lama.
2. Ganti Sementara Dengan Fasilitas Lain
Dengan cara di atas Anda bisa memasukkan link lagi di shoutmix Anda, namun bisa jadi secara berkala akan error lagi. Silahkan Anda lakukan beberapa kali. Namun, bagi yang gregetan karena error selalu berulang saya sarankan Anda mengganti sementara shoutmix Anda dengan chat lain seperti cbox.
Setelah shoutmix kembali normal Anda mempunyai pilihan untuk kemabali memasang shoutmix atau tetap pada widget pengganti seperti cbox.
3. Mirip Shoutmix di http://shoutbox.widget.me
Widget ini mirip shoutmix dan ternyata normal, bagi Anda yang ingin silahkan:
* Menuju link http://shoutbox.widget.me/
* Copy kode dari sana dan gantikan sementara shoutmix Anda
Anda bisa atur tinggi dan lebar disana namun tidak bisa memodifikasinya. Dan juga tidak bisa menambahkan smile.
4. Upgrade ke Premium
Bagi Anda yang ingin fasilitas lebih tentu selayaknya upgrade ke premium. Dipastikan akan mendapatkan pelayanan lebih dan prioritas dari shoutmix.com
Hal di atas dapat membenahi chat Anda. Orang bisa berpromosi di blog Anda lagi. Lalu bagaimana cara Anda berpromosi?
5. Meninggalkan URL dalam Pesan
Anda bisa blogwalking ke shoutmix orang dengan cara meningalkan link blog Anda lewat pesan. Syaratnya jangan tuliskan url blog Anda dengan diawali www atau http://
Tuliskan saja misal, "Silahkan mampir ke --->>> ucuhasasuke.blogspot.com"
6. Blogwalking ke Shoutmix Premium
Anda bisa berpromosi ke blog-blog dengan fasilitas shoutmix premium yang tidak mengalami masalah seperti:
* Kolom Tutorial [kolom-tutorial.blogspot.com]
* O-om [o-om.com]
7. Blogwalking ke Blog Pengguna Chat Selain Shoutmix
Blogwalkinglah ke blog-blog lain yang menggunakan fasilitas chat selain shoutmix, seperti cbox. Anda akan banyak menemukannya di blog-blog luar negeri walaupun juga telah banyak blogger Indonesia menggunakannya.
8. Berkomentar
Jika Anda tidak bisa blogwalking cara yang dapat Anda lakukan dengan meninggalkan jejak komentar. Pergilah ke blog teman Anda dan berkomentarlah. Menambah backlink sekaligus menyapa untuk mendapat kunjugan.
Mungkin sahabat blogger hari ini mengalami masalah pada shoutmix, yakni url alamat kita kita terdeteksi. Akibatnya, nama kita pada shoutmix tidak berlink sehingga blogger lain yang berpapasan di tengah jalan saat blogwalking tidak bisa mampir. Soal apa penyebabnya saya tidak tahu pasti, namun ada beberapa langkah yang bisa Anda lakukan.
1. Prune Messages
Untuk membetulkan shoutmix di blog Anda, Anda bisa mengatasinya dengan cara menghapus semua pesan yang pernah masuk ke shoutmix Anda. Kita refresh sehingga shoutmix kita seperti baru.
Caranya adalah:
* Login ke shoutmix.com
* Pada bagian kotak General pilih Prune Messages
shoutmix
* Pilih Delete All Messages
shoutmix
* Masukkan password lalu klik Apply
Tapi ini tidak menjamin menyebuhkan dalam waktu lama.
2. Ganti Sementara Dengan Fasilitas Lain
Dengan cara di atas Anda bisa memasukkan link lagi di shoutmix Anda, namun bisa jadi secara berkala akan error lagi. Silahkan Anda lakukan beberapa kali. Namun, bagi yang gregetan karena error selalu berulang saya sarankan Anda mengganti sementara shoutmix Anda dengan chat lain seperti cbox.
Setelah shoutmix kembali normal Anda mempunyai pilihan untuk kemabali memasang shoutmix atau tetap pada widget pengganti seperti cbox.
3. Mirip Shoutmix di http://shoutbox.widget.me
Widget ini mirip shoutmix dan ternyata normal, bagi Anda yang ingin silahkan:
* Menuju link http://shoutbox.widget.me/
* Copy kode dari sana dan gantikan sementara shoutmix Anda
Anda bisa atur tinggi dan lebar disana namun tidak bisa memodifikasinya. Dan juga tidak bisa menambahkan smile.
4. Upgrade ke Premium
Bagi Anda yang ingin fasilitas lebih tentu selayaknya upgrade ke premium. Dipastikan akan mendapatkan pelayanan lebih dan prioritas dari shoutmix.com
Hal di atas dapat membenahi chat Anda. Orang bisa berpromosi di blog Anda lagi. Lalu bagaimana cara Anda berpromosi?
5. Meninggalkan URL dalam Pesan
Anda bisa blogwalking ke shoutmix orang dengan cara meningalkan link blog Anda lewat pesan. Syaratnya jangan tuliskan url blog Anda dengan diawali www atau http://
Tuliskan saja misal, "Silahkan mampir ke --->>> ucuhasasuke.blogspot.com"
6. Blogwalking ke Shoutmix Premium
Anda bisa berpromosi ke blog-blog dengan fasilitas shoutmix premium yang tidak mengalami masalah seperti:
* Kolom Tutorial [kolom-tutorial.blogspot.com]
* O-om [o-om.com]
7. Blogwalking ke Blog Pengguna Chat Selain Shoutmix
Blogwalkinglah ke blog-blog lain yang menggunakan fasilitas chat selain shoutmix, seperti cbox. Anda akan banyak menemukannya di blog-blog luar negeri walaupun juga telah banyak blogger Indonesia menggunakannya.
8. Berkomentar
Jika Anda tidak bisa blogwalking cara yang dapat Anda lakukan dengan meninggalkan jejak komentar. Pergilah ke blog teman Anda dan berkomentarlah. Menambah backlink sekaligus menyapa untuk mendapat kunjugan.
Cara membuat Shoutmix Tersembunyi
Cara membuat Shoutmix Tersembunyi
Bagaimana yah caranya membuat buku tamu tersembunyi atau shoutmix tersembunyi, ini dia langkah-langkah dan caranya :
1. Masuk ke account Blogger kamu, pilih Layout; kemudian Page Elements;
2. Klik "Add a Gadget" (yang mana aja oke), kemudian pilih "HTML/JavaScript",
3. Copy-paste kode di bawah ini:
<style type="text/css">
#gb{
position:fixed;
top:50px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTM01MtLgGMph-TCzZqbUPavkR4dCuV5t97JUAweyu70wLbufsGWeFfe-HHF8dq_ljz9FcX63gmMgVzkFJBk7MOiJnt3p-ljhMlHIAtAA_E1ZPRq5Btc80DAupjWrXCd0JJYhK7krdUtCv/') no-repeat;
}
.gbcontent{
float:left;
border:2px solid #A5BD51;
background:#F5F5F5;
padding:10px;
}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 30-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 10 ? 5 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
gb.style.right = x.toString() + "px";
if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 10);}
}
</script>
<div id="gb">
<div class="btab" onclick="showHideGB()"> </div>
<div class="gbcontent">
<!-- Ganti ini dengan kode buku tamu kamu -->
<br/>
<br/>
< href="http://ucuhasasuke.blogspot.com">.
</a>
<div style="text-align:right">
<a href="javascript:showHideGB()">
[close]
</a>
</div>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script></div></div>
# Pada kode di atas, cari kode <!-- Ganti ini dengan kode buku tamu kamu --> dan ganti kode tersebut dengan kode buku tamu yang kamu dapatkan dari situsnya,
# Kamu juga bisa atur posisinya. Ubah aja nilai atribut top-nya. Kalau mau lebih ke atas dikit, ubah jadi 30px atau 20px, terserah kamu.
Bagaimana yah caranya membuat buku tamu tersembunyi atau shoutmix tersembunyi, ini dia langkah-langkah dan caranya :
1. Masuk ke account Blogger kamu, pilih Layout; kemudian Page Elements;
2. Klik "Add a Gadget" (yang mana aja oke), kemudian pilih "HTML/JavaScript",
3. Copy-paste kode di bawah ini:
<style type="text/css">
#gb{
position:fixed;
top:50px;
z-index:+1000;
}
* html #gb{position:relative;}
.gbtab{
height:100px;
width:30px;
float:left;
cursor:pointer;
background:url('https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiTM01MtLgGMph-TCzZqbUPavkR4dCuV5t97JUAweyu70wLbufsGWeFfe-HHF8dq_ljz9FcX63gmMgVzkFJBk7MOiJnt3p-ljhMlHIAtAA_E1ZPRq5Btc80DAupjWrXCd0JJYhK7krdUtCv/') no-repeat;
}
.gbcontent{
float:left;
border:2px solid #A5BD51;
background:#F5F5F5;
padding:10px;
}
</style>
<script type="text/javascript">
function showHideGB(){
var gb = document.getElementById("gb");
var w = gb.offsetWidth;
gb.opened ? moveGB(0, 30-w) : moveGB(20-w, 0);
gb.opened = !gb.opened;
}
function moveGB(x0, xf){
var gb = document.getElementById("gb");
var dx = Math.abs(x0-xf) > 10 ? 5 : 1;
var dir = xf>x0 ? 1 : -1;
var x = x0 + dx * dir;
gb.style.right = x.toString() + "px";
if(x0!=xf){setTimeout("moveGB("+x+", "+xf+")", 10);}
}
</script>
<div id="gb">
<div class="btab" onclick="showHideGB()"> </div>
<div class="gbcontent">
<!-- Ganti ini dengan kode buku tamu kamu -->
<br/>
<br/>
< href="http://ucuhasasuke.blogspot.com">.
</a>
<div style="text-align:right">
<a href="javascript:showHideGB()">
[close]
</a>
</div>
</div>
</div>
<script type="text/javascript">
var gb = document.getElementById("gb");
gb.style.right = (30-gb.offsetWidth).toString() + "px";
</script></div></div>
# Pada kode di atas, cari kode <!-- Ganti ini dengan kode buku tamu kamu --> dan ganti kode tersebut dengan kode buku tamu yang kamu dapatkan dari situsnya,
# Kamu juga bisa atur posisinya. Ubah aja nilai atribut top-nya. Kalau mau lebih ke atas dikit, ubah jadi 30px atau 20px, terserah kamu.
Cara Mendapatkan Dolar dari Ziddu
ziddu
Artikel tentang belajar bisnis online tidak hanya menarik, kadang juga bisa bikin ngiler, hehehe. Apabila kita meng-apload file bisa dapat dolar, mana mungkin? Tapi itu menjadi kenyataan apabila kita mengapload file di Ziddu. Sesuai slogannya Upload —>> Share —>> Earn, maka kita akan mendapatkan dolar setiap ada orang yang mendownload file yang telah kita apload. Uang yang kita dapat tidak banyak sih, tapi ini layak di coba bagi orang yang sedang belajar bisnis online seperti saya. Setiap ada orang yang mendownload, kita akan mendapatkan $0,001. Kok koma nol nya banyak sekali Mas? hehehe. Apabila 1 hari saja ada 1000 orang yang download maka kita akan mendapatkan $1, jadi kalo 1 bulan kita akan mendapatkan $30. Lumayankan....
Apa keuntungan kita mendaftar di Ziddu?
* Yang penting dan yang paling penting, 100% Gratis, :-)
* Unlimited Disk Space (Mau upload sebanyak apapun silakan)
* Membarikan dolar apabila ada yang mendownload file yang kita upload di Ziddu.
* Oia, Ziddu juga akan memberikan tambahan $0.05 apabila ada orang yang mendaftar dengan referal anda (Setelah upload file pertamanya)
Tunggu apa lagi ayo segera mendaftar di Ziddu....
Untuk mendaftar silakan buka link disamping Daftar Ziddu (ref: Makasih ya Sobat ^_^) Soal cara pendaftaran sangat mudah kok, sobat pasti bisa.
Selamat belajar berbisnis online.....
Artikel tentang belajar bisnis online tidak hanya menarik, kadang juga bisa bikin ngiler, hehehe. Apabila kita meng-apload file bisa dapat dolar, mana mungkin? Tapi itu menjadi kenyataan apabila kita mengapload file di Ziddu. Sesuai slogannya Upload —>> Share —>> Earn, maka kita akan mendapatkan dolar setiap ada orang yang mendownload file yang telah kita apload. Uang yang kita dapat tidak banyak sih, tapi ini layak di coba bagi orang yang sedang belajar bisnis online seperti saya. Setiap ada orang yang mendownload, kita akan mendapatkan $0,001. Kok koma nol nya banyak sekali Mas? hehehe. Apabila 1 hari saja ada 1000 orang yang download maka kita akan mendapatkan $1, jadi kalo 1 bulan kita akan mendapatkan $30. Lumayankan....
Apa keuntungan kita mendaftar di Ziddu?
* Yang penting dan yang paling penting, 100% Gratis, :-)
* Unlimited Disk Space (Mau upload sebanyak apapun silakan)
* Membarikan dolar apabila ada yang mendownload file yang kita upload di Ziddu.
* Oia, Ziddu juga akan memberikan tambahan $0.05 apabila ada orang yang mendaftar dengan referal anda (Setelah upload file pertamanya)
Tunggu apa lagi ayo segera mendaftar di Ziddu....
Untuk mendaftar silakan buka link disamping Daftar Ziddu (ref: Makasih ya Sobat ^_^) Soal cara pendaftaran sangat mudah kok, sobat pasti bisa.
Selamat belajar berbisnis online.....
Cara Mendaftar dan Pasang Iklan Kumpul Blogger
uang dari blog
Postingan ini dibuat agar memudahkan kita semua untuk mendaftar dan memasang iklan PPC (pay per click) kumpulblogger pada blog/website kita. Sehingga blog/website kita dapat menghasilkan uang untuk kita dengan adanya orang yang meng-klik iklan yang terpasang pada blog/website kita.
Cara mendaftar di kumpulblogger pun langsung bisa diterima. Tetapi perlu diingat, walaupun mudah mendaftar bukan berarti kita boleh melakukan kecurangan. Sebaiknya peraturan dalam kumpulblogger juga dibaca dengan teliti agar tidak merugikan pihak manapun. Perlu ditekankan, dari kumpulblogger, kita bisa meraih sejumlah uang dengan tanpa modal alias Gratis !!!
Cara mendaftar dan pasang iklan di kumpul blogger adalah sebagai berikut :
1. Mendaftar dulu Di sini
2. Klik Register Now
3. Pada kotak isian e-mail, isi dengan e-mail kamu.
4. Buka E-mail kamu, lihat passwordnya.
5. Login dengan ID kamu (ID merupakan e-mail kamu yang dikirimi password)
6. Jika sudah login di kumpulblogger, pilih Tambah Blog.
7. Isi formulir sesuai Blog kamu.
8. Setelah selesai, klik Script Text Advertising untuk Blog kamu
9. Copy kode yang sudah disediakan.
10. SIGN IN kedalam Blog anda
11. Pilih menu “tata letak (Layout)”
12. Pilih “tambah gadget (add page element)”
13. Pilih “HTML/Java Script”
14. Paste kode/script tersebut
15. Save
16. Silahkan buka kembali blog anda, maka iklan akan secara otomatis muncul kedalam blog anda. Hanya tinggal menunggu ada orang yang mengklik iklan tersebut maka pundi-pundi uang akan mengalir!!!
~~~Selamat Mencoba, Semoga Succes ~~~
Postingan ini dibuat agar memudahkan kita semua untuk mendaftar dan memasang iklan PPC (pay per click) kumpulblogger pada blog/website kita. Sehingga blog/website kita dapat menghasilkan uang untuk kita dengan adanya orang yang meng-klik iklan yang terpasang pada blog/website kita.
Cara mendaftar di kumpulblogger pun langsung bisa diterima. Tetapi perlu diingat, walaupun mudah mendaftar bukan berarti kita boleh melakukan kecurangan. Sebaiknya peraturan dalam kumpulblogger juga dibaca dengan teliti agar tidak merugikan pihak manapun. Perlu ditekankan, dari kumpulblogger, kita bisa meraih sejumlah uang dengan tanpa modal alias Gratis !!!
Cara mendaftar dan pasang iklan di kumpul blogger adalah sebagai berikut :
1. Mendaftar dulu Di sini
2. Klik Register Now
3. Pada kotak isian e-mail, isi dengan e-mail kamu.
4. Buka E-mail kamu, lihat passwordnya.
5. Login dengan ID kamu (ID merupakan e-mail kamu yang dikirimi password)
6. Jika sudah login di kumpulblogger, pilih Tambah Blog.
7. Isi formulir sesuai Blog kamu.
8. Setelah selesai, klik Script Text Advertising untuk Blog kamu
9. Copy kode yang sudah disediakan.
10. SIGN IN kedalam Blog anda
11. Pilih menu “tata letak (Layout)”
12. Pilih “tambah gadget (add page element)”
13. Pilih “HTML/Java Script”
14. Paste kode/script tersebut
15. Save
16. Silahkan buka kembali blog anda, maka iklan akan secara otomatis muncul kedalam blog anda. Hanya tinggal menunggu ada orang yang mengklik iklan tersebut maka pundi-pundi uang akan mengalir!!!
~~~Selamat Mencoba, Semoga Succes ~~~
membuat menu vertikal
Sebelumnya kita pernah membahas tentang membuat menu horizontal, nha sekarang mari kita mencoba membuat menu vertikal. Menu vertikal ini cocok kalau dipasang di sidebar karena bentuknya berjajar sevara vertikal (ya iyalah). Contohnya seperti gambar disamping itu. Beginilah cara membuatnya :
1. Login ke blogger trus pilih "Layout-->Edit HTML"
2. Masukkan kode berikut sebelum kode ]]></b:skin> atau sebelum kode </style> . Pokoknya ditaruh di dalam Barisan kode CSS deh.
.glossymenu, .glossymenu li ul{
list-style-type: none;
margin: 0;
padding: 0;
width: 185px; /*WIDTH OF MAIN MENU ITEMS*/
border: 1px solid black;
}
.glossymenu li{
position: relative;
}
.glossymenu li a{
background: white url('http://kendhin.890m.com/blog/vertical/blue1.gif') repeat-x bottom left;
font: bold 12px Verdana, Helvetica, sans-serif;
color: white;
display: block;
width: auto;
padding: 5px 0;
padding-left: 10px;
text-decoration: none;
}
.glossymenu li ul{
position: absolute;
width: 190px;
left: 0;
top: 0;
display: none;
}
.glossymenu li ul li{
float: left;
}
.glossymenu li ul a{
width: 180px;
}
.glossymenu li a:visited, .glossymenu li a:active{
color: white;
}
.glossymenu li a:hover{
background-image: url('http://kendhin.890m.com/blog/vertical/blue2.gif');
}
* html .glossymenu li { float: left; height: 1%; }
* html .glossymenu li a { height: 1%; }
Untuk memilih warna menu, perhatikan kode2 yang berwarna merah (blue1.gif dan blue2.gif). Ganti kode tersebut dengan pilihan warna dibawah ini. Misal jika kamu ingin memilih menu warna merah maka kodenya menjadi seperti ini :
.glossymenu li a{
background: white url('http://kendhin.890m.com/blog/vertical/red1.gif') repeat-x bottom left;
dan
.glossymenu li a:hover{
background-image: url('http://kendhin.890m.com/blog/vertical/red1.gif');
Pilihan Warna menu vertikal :
blue1.gif
blue2.gif
green1.gif
green2.gif
red1.gif
red2.gif
pink1.gif
pink2.gif
black1.gif
black2.gif
3. Kemudian di save.
4. Lalu pergi ke menu "Page Elements"
5. Pilih "Add a Gadget -->HTML/JavaScript" kemudian masukkan kode berikut kedalamnya:
<ul id="verticalmenu" class="glossymenu">
<li><a href="/">Home<a></li>
<li><a href="http://trik-tips.blogspot.com">Trik Blog</a></li>
<li>lt;a href="http://x-template.blogspot.com" >Free Template</a></li>
<li>lt;a href="http://getebook.co.cc">Free Ebook</a></li>
</li>
</ul>
Kode yang berwarna merah adalah linknya dan yg warna biru adalah teks yang ditampilkan. Kalau mau menambahkan menu tingal buat lagi kode seperti yg berkedip2 dibawahnya.
Dah gitu aja. Gampang kan???? :D
1. Login ke blogger trus pilih "Layout-->Edit HTML"
2. Masukkan kode berikut sebelum kode ]]></b:skin> atau sebelum kode </style> . Pokoknya ditaruh di dalam Barisan kode CSS deh.
.glossymenu, .glossymenu li ul{
list-style-type: none;
margin: 0;
padding: 0;
width: 185px; /*WIDTH OF MAIN MENU ITEMS*/
border: 1px solid black;
}
.glossymenu li{
position: relative;
}
.glossymenu li a{
background: white url('http://kendhin.890m.com/blog/vertical/blue1.gif') repeat-x bottom left;
font: bold 12px Verdana, Helvetica, sans-serif;
color: white;
display: block;
width: auto;
padding: 5px 0;
padding-left: 10px;
text-decoration: none;
}
.glossymenu li ul{
position: absolute;
width: 190px;
left: 0;
top: 0;
display: none;
}
.glossymenu li ul li{
float: left;
}
.glossymenu li ul a{
width: 180px;
}
.glossymenu li a:visited, .glossymenu li a:active{
color: white;
}
.glossymenu li a:hover{
background-image: url('http://kendhin.890m.com/blog/vertical/blue2.gif');
}
* html .glossymenu li { float: left; height: 1%; }
* html .glossymenu li a { height: 1%; }
Untuk memilih warna menu, perhatikan kode2 yang berwarna merah (blue1.gif dan blue2.gif). Ganti kode tersebut dengan pilihan warna dibawah ini. Misal jika kamu ingin memilih menu warna merah maka kodenya menjadi seperti ini :
.glossymenu li a{
background: white url('http://kendhin.890m.com/blog/vertical/red1.gif') repeat-x bottom left;
dan
.glossymenu li a:hover{
background-image: url('http://kendhin.890m.com/blog/vertical/red1.gif');
Pilihan Warna menu vertikal :
blue1.gif
blue2.gif
green1.gif
green2.gif
red1.gif
red2.gif
pink1.gif
pink2.gif
black1.gif
black2.gif
3. Kemudian di save.
4. Lalu pergi ke menu "Page Elements"
5. Pilih "Add a Gadget -->HTML/JavaScript" kemudian masukkan kode berikut kedalamnya:
<ul id="verticalmenu" class="glossymenu">
<li><a href="/">Home<a></li>
<li><a href="http://trik-tips.blogspot.com">Trik Blog</a></li>
<li>lt;a href="http://x-template.blogspot.com" >Free Template</a></li>
<li>lt;a href="http://getebook.co.cc">Free Ebook</a></li>
</li>
</ul>
Kode yang berwarna merah adalah linknya dan yg warna biru adalah teks yang ditampilkan. Kalau mau menambahkan menu tingal buat lagi kode seperti yg berkedip2 dibawahnya.
Dah gitu aja. Gampang kan???? :D
cara membuat menu tab view
Karena sering ditanya tentang bagaimana caranya membuat Tab VIew (Biasanya nanyanya gini: "Mas cara membuat menu yg kayak punya mas gmn? yg ada "Tips & Trik", "Lain-lain", "Terbaru", "Komentar" itu lho). Ya kan? hayo ngaku... Tabview itu sangat berguna sekali, karena dengan ukuran kotak yang relatif kecil tapi bisa memuat isi yang buanyak. Sebenarnya dah dari dulu pingin posting tentang itu, tp karena yg dulu cara pasanganya sulit jadi belum bisa aku jelaskan. Trus akhirnya aku menemukan metode baru dalam pembuatannya. Cara yang ini mungkin mirip dengan punyanya o-om, tp scriptnya agak beda. Dan aku dapet script ini juga bukan dari o-om lho :D
Tab view itu contohnya seperti ini :
Beginilah cara untuk membuat menu tab view tersebut
1. Login ke blogger trus pilih menu "Layout --> Edit HTML"
2. Kemudian cari kode ini ]]></b:skin>
3. Kemudian masukkan kode berikut ini sebelum kode ]]></b:skin> atau kedalam tag CSS.
div.TabView div.Tabs
{
height: 24px;
overflow: hidden;
}
div.TabView div.Tabs a
{
float: left;
display: block;
width: 90px; /* Lebar Menu Utama Atas */ text-align: center;
height: 24px; /* Tinggi Menu Utama Atas */
padding-top: 3px;
vertical-align: middle;
border: 1px solid #000; /* Warna border Menu Atas */
border-bottom-width: 0;
text-decoration: none;
font-family: "Times New Roman", Serif; /* Font Menu Utama Atas */
font-weight: 900;
color: #000; /* Warna Font Menu Utama Atas */
}
div.TabView div.Tabs a:hover, div.TabView div.Tabs a.Active
{
background-color: #FF9900; /* Warna background Menu Utama Atas */
}
div.TabView div.Pages
{
clear: both;
border: 1px solid #6E6E6E; /* Warna border Kotak Utama */
overflow: hidden;
background-color: #FF9900; /* Warna background Kotak Utama */
}
div.TabView div.Pages div.Page
{
height: 100%;
padding: 0px;
overflow: hidden;
}
div.TabView div.Pages div.Page div.Pad
{
padding: 3px 5px;
}
4. Perhatikan text-text yang berwarna merah, itu adalah keterangan untuk pengaturan Tab View. Ada ukuran warna dll. Untuk mengetahui kode2 warna silahkan lihat DISINI
5. Langkah selanjutnya yaitu pasang kode berikut ini sebelum kode </head>
<script src='http://kendhin.890m.com/blog/tabview.js' type='text/javascript'/>
6. Kemudian "Di save"
7. Lalu pergi ke menu "Page Elements"
8. Trus PIlih "Add a Gadget" --> "HTML/Javascript" di tempat yg akan km letakkan Manu Tab View ini.
9. Inilah script yg harus kamu pasang :
<form action="tabview.html" method="get">
<div class="TabView" id="TabView">
<div class="Tabs" style="width: 350px;">
<a>Tab 1</a>
<a>Tab 2</a>
<a>Tab 3</a>
</div>
<div class="Pages" style="width: 350px; height: 250px;">
<div class="Page">
<div class="Pad">
Tab 1.1 <br />
Tab 1.2 <br />
Tab 1.3 <br />
</div>
</div>
<div class="Page">
<div class="Pad">
Tab 2.1 <br />
Tab 2.2 <br />
Tab 2.3 <br />
</div>
</div>
<div class="Page">
<div class="Pad">
Tab 3.1 <br />
Tab 3.2 <br />
Tab 3.3 <br />
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
tabview_initialize('TabView');
</script>
Keterangan :
- Angka2 atau text yang berwarna biru (350px) adalah ukuran tinggi dan lebar tabview.
- Kode yang berwarna Hijau Adalah text yang di Menu utama (Menu Atas).
- Kode yang berwarna merah adalah isi dari tabvie tsb. Kamu bisa mengisinya dengan link, gambar, banner, script dll.
- Untuk menmbahkan jumlah menu maka perhatikanlah text yang berkedip2. tambahkan menu tersebut dibawahnya.
Tab view itu contohnya seperti ini :
Beginilah cara untuk membuat menu tab view tersebut
1. Login ke blogger trus pilih menu "Layout --> Edit HTML"
2. Kemudian cari kode ini ]]></b:skin>
3. Kemudian masukkan kode berikut ini sebelum kode ]]></b:skin> atau kedalam tag CSS.
div.TabView div.Tabs
{
height: 24px;
overflow: hidden;
}
div.TabView div.Tabs a
{
float: left;
display: block;
width: 90px; /* Lebar Menu Utama Atas */ text-align: center;
height: 24px; /* Tinggi Menu Utama Atas */
padding-top: 3px;
vertical-align: middle;
border: 1px solid #000; /* Warna border Menu Atas */
border-bottom-width: 0;
text-decoration: none;
font-family: "Times New Roman", Serif; /* Font Menu Utama Atas */
font-weight: 900;
color: #000; /* Warna Font Menu Utama Atas */
}
div.TabView div.Tabs a:hover, div.TabView div.Tabs a.Active
{
background-color: #FF9900; /* Warna background Menu Utama Atas */
}
div.TabView div.Pages
{
clear: both;
border: 1px solid #6E6E6E; /* Warna border Kotak Utama */
overflow: hidden;
background-color: #FF9900; /* Warna background Kotak Utama */
}
div.TabView div.Pages div.Page
{
height: 100%;
padding: 0px;
overflow: hidden;
}
div.TabView div.Pages div.Page div.Pad
{
padding: 3px 5px;
}
4. Perhatikan text-text yang berwarna merah, itu adalah keterangan untuk pengaturan Tab View. Ada ukuran warna dll. Untuk mengetahui kode2 warna silahkan lihat DISINI
5. Langkah selanjutnya yaitu pasang kode berikut ini sebelum kode </head>
<script src='http://kendhin.890m.com/blog/tabview.js' type='text/javascript'/>
6. Kemudian "Di save"
7. Lalu pergi ke menu "Page Elements"
8. Trus PIlih "Add a Gadget" --> "HTML/Javascript" di tempat yg akan km letakkan Manu Tab View ini.
9. Inilah script yg harus kamu pasang :
<form action="tabview.html" method="get">
<div class="TabView" id="TabView">
<div class="Tabs" style="width: 350px;">
<a>Tab 1</a>
<a>Tab 2</a>
<a>Tab 3</a>
</div>
<div class="Pages" style="width: 350px; height: 250px;">
<div class="Page">
<div class="Pad">
Tab 1.1 <br />
Tab 1.2 <br />
Tab 1.3 <br />
</div>
</div>
<div class="Page">
<div class="Pad">
Tab 2.1 <br />
Tab 2.2 <br />
Tab 2.3 <br />
</div>
</div>
<div class="Page">
<div class="Pad">
Tab 3.1 <br />
Tab 3.2 <br />
Tab 3.3 <br />
</div>
</div>
</div>
</div>
</form>
<script type="text/javascript">
tabview_initialize('TabView');
</script>
Keterangan :
- Angka2 atau text yang berwarna biru (350px) adalah ukuran tinggi dan lebar tabview.
- Kode yang berwarna Hijau Adalah text yang di Menu utama (Menu Atas).
- Kode yang berwarna merah adalah isi dari tabvie tsb. Kamu bisa mengisinya dengan link, gambar, banner, script dll.
- Untuk menmbahkan jumlah menu maka perhatikanlah text yang berkedip2. tambahkan menu tersebut dibawahnya.
cara membuat menu horizontal
Ada yang pingin buat menu horizontal tapi nggak tahu caranya?
Gini nih caranya, eh tapi tunggu dulu, apasih menu horizontal itu? Menu horizontal adalah menu-menu yang disusun secara horizontal (menyamping). Kayak gini ini lho:
Contohnya bisa kamu lihat disini .Nha pingin nggak? kalo pingin ikuti cara berikut ini:
pertama-tama kamu harus punya gambar kayak gini nih:
dan
kalo nggak punya gimana? kalo nggak punya pake gambar yang aku sediain ini aja deh.
blackleft.gif blackright.gif
greenleft.gif greenright.gif
redleft.gif redright.gif
unguleft.gif unguright.gif
yellowleft.gif yellowright.gif
blueleft.gif blueright.gif
whiteleft.gif whiteright.gif
Ok, bahan-bahannya sudha ada, mari kita mulai maraciknya:
1. Login ke blogger terus pilih Layout --> Edit HTML, trus beri tanda centang pada kotak "Expand Widget Templates". jangan lupa template di backup dulu.
2. Cari script seperti ini ]]></b:skin>, kalo udah ketemu copy script dibawah ini dan taruh diatasnya
/*credits : http://trik-tips.blogspot.com */
#tabshori {
float:left;
width:100%;
font-size:13px;
border-bottom:1px solid #2763A5; /* Garis Bawah*/
line-height:normal;
}
#tabshori ul {
margin:0;
padding:10px 10px 0 50px; /*Posisi Menu*/
list-style:none;
}
#tabshori li {
display:inline;
margin:0;
padding:0;
}
#tabshori a {
float:left;
background: url("http://kendhin.890m.com/menu/blackleft.gif") no-repeat left top;
margin:0;
padding:0 0 0 4px;
text-decoration:none;
}
#tabshori a span {
float:left;
display:block;
background: url("http://kendhin.890m.com/menu/blackright.gif") no-repeat right top;
padding:5px 14px 4px 4px;
color:#fff;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabshori a span {float:none;}
/* End IE5-Mac hack */
#tabshori a:hover {
background-position:0% -42px;
}
#tabshori a:hover span {
background-position:100% -42px;
}
Tulisan yang dicetak tebal bisa kamu ganti dengan gambar-gambar (text dibawah gambar) diatas tadi. Misalnya, jika kamu pilih yang warna merah maka scriptnya menjadi seperti ini;
background: url("http://kendhin.890m.com/menu/redleft.gif") no-repeat left top;
background: url("http://kendhin.890m.com/menu/redright.gif") no-repeat right top;
Mudeng nggak loe :D
Kalo sudah selesai mari kita lanjutkan, sampai angka berapa tadi? oh ya sampai angka ketiga ya.
3. Copy script berikut ini
<div id="tabshori">
<ul>
<li><a href="http://trik-tips.blogspot.com"><span>Home</span></a>lt;/li>
<li><a href="http://trik-tips.blogspot.com"><span>Trik-Tips</span></a"</li>
<li><a href="http://trik-tips.blogspot.com"><span>Free Template </span></a></li>
<li><a href="http://trik-tips.blogspot.com"><span>Kamus</span></a></li>
<li><a href="http://trik-tips.blogspot.com"><span>Profile</span></a></li>
</ul>
</div >
4. Ganti http://trik-tips.blogspot.com dengan link yang kamu tuju. Link tersebut bisa berupa alamat blog lain atau link postingan km. Untuk mendapatkan link postingan caranya klik kanan pada judul postingannya trus pilih "copy link location" (untuk mozilla firefox).
Kemudian text yang dicetak tebal bisa kamu ganti dengan text yang kamu suka. Text tersebut adalah text yang muncul di tombol/menu.
5. Cara memasangnya ada beberapa macam tergantung dari template yang digunakan, salah satu contoh memasangnya yaitu begini
cari kode berikut ini :
<div id="content-wrapper">
caranya nyari biar gampang, copy script diatas lalu tekan Ctrl-f kemudian paste di kotak find, nha langsung ketemu kan. Kalo udah ketemu copy script yang tadi diatasnya
6. Simpan hasil pengeditan.
7. Lihat hasilnya.
8. kalo hasilnya kurang bagus/acak-acakan coba script tadi dipindah tempatnya, misalnya pindah keatasnya yaitu diatas kode </div>. kalao nggak cocok juga tempatnya dicoba lagi yang diatasnya atau juga dibawahnya, begitu terus sampai ketemu tempat yang cocok.
9. Kalo masih belum berhasil juga coba cara ini:
- Cari kode berikut ini :
<b:section class='header' id='header'
maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true'
title='your blog title (Header)' type='Header'/>
</b:section>
teru ganti text yang berwarna hijau sihingga menjadi seperti ini:
<b:section class='header' id='header'
maxwidgets='2' showaddelement='yes'>
<b:widget id='Header1' locked='false'
title='your blog title (Header)' type='Header'/>
</b:section>
terus di Save
Klik tab Page Elements, kemudian di daerah header klik Add a page element lalu pilih HTML/JavaScript paste script link tadi di dalam kotak content terus simpan, nha itu kan tempatnya diatas, coba drag kebawah dikit, nha gitu, terus simpan dan lihat hasilnya.
hasilnya pasti akan berbeda-beda di setiap template.
kalo berhasil berarti kamu pinter, kalo gagal berarti kamu kurang pinter :r coba diteliti lagi langkah-langkahnya dan dipahami maksudnya, jangan cuma di plototin. OK BOZ, Good luck.....
Gini nih caranya, eh tapi tunggu dulu, apasih menu horizontal itu? Menu horizontal adalah menu-menu yang disusun secara horizontal (menyamping). Kayak gini ini lho:
Contohnya bisa kamu lihat disini .Nha pingin nggak? kalo pingin ikuti cara berikut ini:
pertama-tama kamu harus punya gambar kayak gini nih:
dan
kalo nggak punya gimana? kalo nggak punya pake gambar yang aku sediain ini aja deh.
blackleft.gif blackright.gif
greenleft.gif greenright.gif
redleft.gif redright.gif
unguleft.gif unguright.gif
yellowleft.gif yellowright.gif
blueleft.gif blueright.gif
whiteleft.gif whiteright.gif
Ok, bahan-bahannya sudha ada, mari kita mulai maraciknya:
1. Login ke blogger terus pilih Layout --> Edit HTML, trus beri tanda centang pada kotak "Expand Widget Templates". jangan lupa template di backup dulu.
2. Cari script seperti ini ]]></b:skin>, kalo udah ketemu copy script dibawah ini dan taruh diatasnya
/*credits : http://trik-tips.blogspot.com */
#tabshori {
float:left;
width:100%;
font-size:13px;
border-bottom:1px solid #2763A5; /* Garis Bawah*/
line-height:normal;
}
#tabshori ul {
margin:0;
padding:10px 10px 0 50px; /*Posisi Menu*/
list-style:none;
}
#tabshori li {
display:inline;
margin:0;
padding:0;
}
#tabshori a {
float:left;
background: url("http://kendhin.890m.com/menu/blackleft.gif") no-repeat left top;
margin:0;
padding:0 0 0 4px;
text-decoration:none;
}
#tabshori a span {
float:left;
display:block;
background: url("http://kendhin.890m.com/menu/blackright.gif") no-repeat right top;
padding:5px 14px 4px 4px;
color:#fff;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabshori a span {float:none;}
/* End IE5-Mac hack */
#tabshori a:hover {
background-position:0% -42px;
}
#tabshori a:hover span {
background-position:100% -42px;
}
Tulisan yang dicetak tebal bisa kamu ganti dengan gambar-gambar (text dibawah gambar) diatas tadi. Misalnya, jika kamu pilih yang warna merah maka scriptnya menjadi seperti ini;
background: url("http://kendhin.890m.com/menu/redleft.gif") no-repeat left top;
background: url("http://kendhin.890m.com/menu/redright.gif") no-repeat right top;
Mudeng nggak loe :D
Kalo sudah selesai mari kita lanjutkan, sampai angka berapa tadi? oh ya sampai angka ketiga ya.
3. Copy script berikut ini
<div id="tabshori">
<ul>
<li><a href="http://trik-tips.blogspot.com"><span>Home</span></a>lt;/li>
<li><a href="http://trik-tips.blogspot.com"><span>Trik-Tips</span></a"</li>
<li><a href="http://trik-tips.blogspot.com"><span>Free Template </span></a></li>
<li><a href="http://trik-tips.blogspot.com"><span>Kamus</span></a></li>
<li><a href="http://trik-tips.blogspot.com"><span>Profile</span></a></li>
</ul>
</div >
4. Ganti http://trik-tips.blogspot.com dengan link yang kamu tuju. Link tersebut bisa berupa alamat blog lain atau link postingan km. Untuk mendapatkan link postingan caranya klik kanan pada judul postingannya trus pilih "copy link location" (untuk mozilla firefox).
Kemudian text yang dicetak tebal bisa kamu ganti dengan text yang kamu suka. Text tersebut adalah text yang muncul di tombol/menu.
5. Cara memasangnya ada beberapa macam tergantung dari template yang digunakan, salah satu contoh memasangnya yaitu begini
cari kode berikut ini :
<div id="content-wrapper">
caranya nyari biar gampang, copy script diatas lalu tekan Ctrl-f kemudian paste di kotak find, nha langsung ketemu kan. Kalo udah ketemu copy script yang tadi diatasnya
6. Simpan hasil pengeditan.
7. Lihat hasilnya.
8. kalo hasilnya kurang bagus/acak-acakan coba script tadi dipindah tempatnya, misalnya pindah keatasnya yaitu diatas kode </div>. kalao nggak cocok juga tempatnya dicoba lagi yang diatasnya atau juga dibawahnya, begitu terus sampai ketemu tempat yang cocok.
9. Kalo masih belum berhasil juga coba cara ini:
- Cari kode berikut ini :
<b:section class='header' id='header'
maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true'
title='your blog title (Header)' type='Header'/>
</b:section>
teru ganti text yang berwarna hijau sihingga menjadi seperti ini:
<b:section class='header' id='header'
maxwidgets='2' showaddelement='yes'>
<b:widget id='Header1' locked='false'
title='your blog title (Header)' type='Header'/>
</b:section>
terus di Save
Klik tab Page Elements, kemudian di daerah header klik Add a page element lalu pilih HTML/JavaScript paste script link tadi di dalam kotak content terus simpan, nha itu kan tempatnya diatas, coba drag kebawah dikit, nha gitu, terus simpan dan lihat hasilnya.
hasilnya pasti akan berbeda-beda di setiap template.
kalo berhasil berarti kamu pinter, kalo gagal berarti kamu kurang pinter :r coba diteliti lagi langkah-langkahnya dan dipahami maksudnya, jangan cuma di plototin. OK BOZ, Good luck.....
cara pasang flash di blog
Untuk memasang flash ke dalam blog cukuplah mudah. Yang kamu perlukan yaitu file flash yang biasanya ber-extensi .swf lalu upload file tersebut ke hosting. misal di geocities.com ato 000webhost ato tempat hosting lainnya. File animasi flash tersebut bisa dijadikan hiasan pada blog ato bisa juga dijadikan hiasan di header sehingga membuat blog menjadi lebih animatif. Untuk memasang flash pada blog caranya sebagai berikut :
1. Login ke blogger kemudian pilih menu "Layout".
2. Kemudian klik link "Add a gadget" dimana akan ditempatkan animasi flash.
3. Pilih "HTML/Javascript" kemudian taruh script berikut :
<embed src="http://blogoholic.info/wellcome.swf" quality="high" bgcolor="white" width="500" height="100" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash"></embed>
Contoh :
* Ganti "http://blogoholic.info/wellcome.swf" dengan alamat file flash kamu yang telah ditaruh di hosting.
* Ganti width="500" height="100 dengan ukuran dari file flashmu.
1. Login ke blogger kemudian pilih menu "Layout".
2. Kemudian klik link "Add a gadget" dimana akan ditempatkan animasi flash.
3. Pilih "HTML/Javascript" kemudian taruh script berikut :
<embed src="http://blogoholic.info/wellcome.swf" quality="high" bgcolor="white" width="500" height="100" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash"></embed>
Contoh :
* Ganti "http://blogoholic.info/wellcome.swf" dengan alamat file flash kamu yang telah ditaruh di hosting.
* Ganti width="500" height="100 dengan ukuran dari file flashmu.
setteng domain dari com ke .co.cc
Seperti yang sudah kita ketahui, bahwa co.cc adalah top level domain yang bisa kita dapatkan secara gratis. Kita bisa mengganti nama blog kita dari "http://namadomain.blogspot.com" atau "http"//namadomain.wordpress.com" (dll) menjadi "http://namadomain.co.cc" . Dengan co.cc kita bisa mengontrol DNS Records, A, MX, dan CNAME records, sehinga domain co.cc bukan hanya sekedar "URL Forwarding".
Berikut ini akan saya coba mengungkapkan tentang cara setting domain di co.cc:
Ada 3 tipe pengaturan di co.cc. Ketiganya memiliki fungsi tersendiri. berikut ini penjelasanya:
1. Managed DNS
Ini biasanya digunakan untuk sebuah web yang memerlukan web hosting dan mengharuskan untuk mengarahkan Name Server-nya ke hosting tersebut. Misal untuk membuat web di 000webhost, atau bisa juga untuk blog wordpress yg menggunakan hosting dari luar. Metode ini tidak cocok digunakan untuk blogger/blogspot yang menggunakan hosting default dari blogger/blogspot.
Cara setting untuk metode ini yaitu dengan mengisi pada kolom "Name Server 1 dan Name Server 2 dengan name server yg sesuai dengan hosting yang digunakan. Misal, bagi yang menggunakan hosting dari 000webhost maka untuk kolom "Name Server 1" disi dengan "ns01.000webhost.com" dan kolom "Name Server 2" disi dengan "ns02.000webhost.com". Kemudian klik tombol "Setup". Selesai
2. Zone Records
Zone records cocok digunakan bagi para pengguna blogger/blogspot. berikut ini cara setting untuk Zone Records
* Pada kolom "Host" isikan dengan nama domain yg sudah km daftarkan, misal "www.namadomain.co.cc" (jangan lupa dikasih "www")
* Untuk option "TTL" biarkan saja, gak perlu dirubah2
* Pada option "Type" pilih yang "CNAME"
* Untuk kolom "Value" isikan "ghs.google.com"
Sehingga akan seperti pada gamabr dibawah ini:
Langkah selanjutnya yaitu merubah settingan di blogger/blogspot caranya begini:
* Login ke blogger/blogspot kemudian masuk ke menu "Setting-->Publishing"
* Kemudian pilih "Switch to: • Custom Domain
* Setelah itu klik pada "Already own a domain? Switch to advanced settings"
* Kemudian isikan nama domain kamu yang baru pada kolom "Your Domain".
* Selanjutnya klik tombol "Save Setting"
Selesai. Kalau berhasil (Settingnya sudah benar) maka domain kamu yang baru akan aktif dalam waktu antara beberapa jam sampai 2 hari. Jadi sabar aja menunggunya. Blog kamu akan tetap bisa diakses dengan melalui domain yang lama.
3. URL Forwarding
URL forwarding bisa digunakan untuk apa aja, bisa web ato blog. Tapi URL Forwarding ini hanya memforward domain yg baru (yang di co.cc) ke domain lama. Jadi domain lama akan 100% seperti semula tanpa ada perubahan apapun, cuma kita bisa mengakses web/blog kita dengan mengetikkan nama domain baru kita di browser. Jika menggunakan URL Forwarding maka yang terindex di google atau Search engine yang lain adalah tetap Domain kita yang lama.
Untuk setting URL Forwarding sangat mudah, kita hanya mengisikan data-data yang diminta dan disesuaikan dengan web/blog kita, seperti "Redirect to:, Page Title, URL Hiding, Meta Description dan Meta Keywords". Kita tidak perlu lagi mensetting domain di web/blog kita lagi.
Note: Metode ini tidak dianjurkan jika tidak terpaksa
Jadi kesimpulannya adalah:
* Jika kamu memakai layanan blogger/blogspot maka gunakanlah "Zone Records"
* Jika domainnya digunakan untuk web yg memerlukan hosting atau untuk wordpress maka gunakanlah "Manage DNS"
* Jangan menggunakan "URL forwarding" jika tidak terpaksa. Misal untuk untuk blog dari multiply yang tidak support custom domain.
Berikut ini akan saya coba mengungkapkan tentang cara setting domain di co.cc:
Ada 3 tipe pengaturan di co.cc. Ketiganya memiliki fungsi tersendiri. berikut ini penjelasanya:
1. Managed DNS
Ini biasanya digunakan untuk sebuah web yang memerlukan web hosting dan mengharuskan untuk mengarahkan Name Server-nya ke hosting tersebut. Misal untuk membuat web di 000webhost, atau bisa juga untuk blog wordpress yg menggunakan hosting dari luar. Metode ini tidak cocok digunakan untuk blogger/blogspot yang menggunakan hosting default dari blogger/blogspot.
Cara setting untuk metode ini yaitu dengan mengisi pada kolom "Name Server 1 dan Name Server 2 dengan name server yg sesuai dengan hosting yang digunakan. Misal, bagi yang menggunakan hosting dari 000webhost maka untuk kolom "Name Server 1" disi dengan "ns01.000webhost.com" dan kolom "Name Server 2" disi dengan "ns02.000webhost.com". Kemudian klik tombol "Setup". Selesai
2. Zone Records
Zone records cocok digunakan bagi para pengguna blogger/blogspot. berikut ini cara setting untuk Zone Records
* Pada kolom "Host" isikan dengan nama domain yg sudah km daftarkan, misal "www.namadomain.co.cc" (jangan lupa dikasih "www")
* Untuk option "TTL" biarkan saja, gak perlu dirubah2
* Pada option "Type" pilih yang "CNAME"
* Untuk kolom "Value" isikan "ghs.google.com"
Sehingga akan seperti pada gamabr dibawah ini:
Langkah selanjutnya yaitu merubah settingan di blogger/blogspot caranya begini:
* Login ke blogger/blogspot kemudian masuk ke menu "Setting-->Publishing"
* Kemudian pilih "Switch to: • Custom Domain
* Setelah itu klik pada "Already own a domain? Switch to advanced settings"
* Kemudian isikan nama domain kamu yang baru pada kolom "Your Domain".
* Selanjutnya klik tombol "Save Setting"
Selesai. Kalau berhasil (Settingnya sudah benar) maka domain kamu yang baru akan aktif dalam waktu antara beberapa jam sampai 2 hari. Jadi sabar aja menunggunya. Blog kamu akan tetap bisa diakses dengan melalui domain yang lama.
3. URL Forwarding
URL forwarding bisa digunakan untuk apa aja, bisa web ato blog. Tapi URL Forwarding ini hanya memforward domain yg baru (yang di co.cc) ke domain lama. Jadi domain lama akan 100% seperti semula tanpa ada perubahan apapun, cuma kita bisa mengakses web/blog kita dengan mengetikkan nama domain baru kita di browser. Jika menggunakan URL Forwarding maka yang terindex di google atau Search engine yang lain adalah tetap Domain kita yang lama.
Untuk setting URL Forwarding sangat mudah, kita hanya mengisikan data-data yang diminta dan disesuaikan dengan web/blog kita, seperti "Redirect to:, Page Title, URL Hiding, Meta Description dan Meta Keywords". Kita tidak perlu lagi mensetting domain di web/blog kita lagi.
Note: Metode ini tidak dianjurkan jika tidak terpaksa
Jadi kesimpulannya adalah:
* Jika kamu memakai layanan blogger/blogspot maka gunakanlah "Zone Records"
* Jika domainnya digunakan untuk web yg memerlukan hosting atau untuk wordpress maka gunakanlah "Manage DNS"
* Jangan menggunakan "URL forwarding" jika tidak terpaksa. Misal untuk untuk blog dari multiply yang tidak support custom domain.
Saturday, 30 October 2010
Online Master's Program On Free Software
Free software is now gaining main stream recognition as a viable option over closed source proprietary software. This is more so because of the increasing interest shown by businesses in adopting Free software and open standards towards cutting costs.
This means, a job seeker who is skilled in the use of Free software will be in demand.
Read more »
This means, a job seeker who is skilled in the use of Free software will be in demand.
Read more »
Tuesday, 19 October 2010
Ubuntu 10.10 Unveiled - Supports Multi-Touch
Ubuntu's next iteration namely Ubuntu 10.10 aka "Maverick Meerkat" has been released. Ubuntu releases a new version of its Linux distribution every six months, incorporating new features and, upgrading software bundled with it to the latest version.
Ubuntu 10.10 has been released in three versions -
Ubuntu 10.10 has been released in three versions -
- Desktop edition - To be installed and used by lay persons on their PCs.
- Server edition - Tailor made to be installed on servers, and
- Netbook edition - Which is geared to be used on low powered laptops and netbooks.
Tuesday, 12 October 2010
VirtualBox 3.2.10 Has Been Released
On October, 11th Oracle has released VirtualBox v. 3.2.10, a maintenance release of its desktop virtualization solution. This is the complete changelog and here's the download location.
Wednesday, 6 October 2010
How To Connect The Magic Mouse Automatically (Sort Of...)
The last few days I've been using my brand new Apple Magic Mouse. I admit it's a pretty good piece of hardware although I doubt it's an adequate choice if you're a MacBook user as I am: the Magic Mouse, or at least its official gestures, fall (very) short when compared with the integrated MacBook trackpad. Anyway, I wanted a mouse and here it is.
Installing is really easy: depending on your OS X configuration you might even be automatically asked to configure your brand new mouse. If you're not, as in my case, just use the Bluetooth/Setup Bluetooth Device... and the pairing and the first configuration will be really quick.
Beware that if your Magic Mouse disconnects from your computer (because it goes into sleep mode or simply because you move your laptop and the mouse goes out of range) it will not reconnect again... unless you click it. Yes. This behaviour seemed really strange to me at first. I was expecting the mouse to automatically pair again, at least when moved. But it won't and you'll need to click.
Makes sense. If you're mouse is sleeping, it won't wake up when moved or when you slide your finger over it. Maybe Apple might improve this behaviour in the future: are we seeing accelerometers everywhere, aren't we?
Sunday, 3 October 2010
Some Reasons Why Solaris Is a Great Java Development Platform
Some days ago I posted "The Death of OpenSolaris: Choosing an OS for a Java Developer" in which I stated that Solaris is a great platform for a Java developer. The point of that post was simply wondering about which Solaris version I'd use since the demise of OpenSolaris. What the post did fail in clarifying, as Neil's comment made me realize, were the reasons why you should choose Solaris as your development platforms. I decided to write this follow up to that post to quickly summarize my favorite ones introducing some use cases where such technologies come in handy.
Solaris also is a platform of choice in the enterprise hence common enterprise software packages are supported and you, as a Java developer or Java architect, won't miss the pieces you need to build your development environment. The very basic software packages I often need as a Java developers are:
Each one of them would deserve several posts on their own, however, I'll try to make some concise examples.
Dependencies are defined between them and I can startup the required WebSphere services with just a line of code:
svcadm enable [websphere-service-name]
and SMF will take care of everything.
The usage pattern for SMF can be enhanced further. Let's suppose you're working in one or more projects and each one of them requires distinct set of running services. What usually happens is one of the following:
Resources are always few for a developers and some are paranoid about sparing them. With SMF you can:
This way, at a minimum, you can start and shutdown, with a single command, every service you need for a specific project. No more:
Example of SMF service manifest customization can be found in the following posts:
The ZFS filesystem is unique as far as it concerns flexibility and ease of use. With an incredibly lean set of commands, you can:Software Availability
Although Solaris continues to be a niche OS (such as many other platforms are, anyway) in the last few years Sun and the community made an excellent job at promoting it as a desktop alternative for developers. There existed even a specific distribution for developers: Solaris Express Developer Edition. It was discontinued and there really is no need for it nowadays, anyway. Late Solaris distributions (such as SXCE, OpenSolaris, OpenIndiana), include (either bundled or in the official package repository):- Data bases (MySQL, PostgreSQL).
- Web Servers (Apache, Java Enterprise System Web Server, etc.).
- Application servers (Glassfish).
- The SAMP stack (Solaris + Apache + MySQL + PHP).
- IDEs (NetBeans, Eclipse).
- Support for other popular languages (Ruby, Groovy, etc.).
- Identity management (LDAP, Java Enterprise System Identity Server).
Solaris also is a platform of choice in the enterprise hence common enterprise software packages are supported and you, as a Java developer or Java architect, won't miss the pieces you need to build your development environment. The very basic software packages I often need as a Java developers are:
- Oracle RDBMS.
- Oracle WebLogic Application Server.
- IBM WebSphere Application Server.
- JBoss Application Server.
Solaris' Technologies
Solaris has got some unique technologies that other UNIX (and UNIX-like) systems that might be used as development platforms are lacking (or ported from Solaris.) What's important here is not "technologies on their own" or technologies that are helpful only in big enterprise environments, but the fact that:- They're pretty well integrated in Solaris and are built to take advantage of each other.
- There are common use cases in which these technologies are really helpful to a developer.
Each one of them would deserve several posts on their own, however, I'll try to make some concise examples.
Solaris Service Management Facility
Although this technology is probably most useful to a system administrator, as a developer I often took advantage of it. SMF is a framework that provides a unified model for services and services management. The basic recipe only needs an XML descriptor for a service. SMF lets you:- Define a service: startup scripts location, parameters and semantics.
- Establish dependencies between services:
- Services and service instances may depend on other service instances.
- Service startup is preformed in parallel respecting service dependencies.
- Enhanced security and fine-grained role based access control:
- A service can be assigned only the minimum required set of privileges it needs to run.
- Service management can be delegated to non-root users using Solaris RBAC (Role-Based Access Control).
- Service health control:
- Service auto-restarts.
- Service health is enhanced by cooperation with Solaris Fault Manager which prevents service degradation when hardware failures occur.
- Automatic inetd Services Wrapper: SMF automatically wraps inetd services.
A Typical Use Case
Every software package I use has its own SMF descriptor (either provided with the package or defined by me) and it dramatically reduces the time I need to set up a development machine. In the case of WebSphere Application Server, for example, I have separate service instances for:- WebSphere IHS.
- WebSphere Application Server.
- WebSphere Application Server DMGR.
- WebSphere Application Server cluster nodes.
Dependencies are defined between them and I can startup the required WebSphere services with just a line of code:
svcadm enable [websphere-service-name]
and SMF will take care of everything.
The usage pattern for SMF can be enhanced further. Let's suppose you're working in one or more projects and each one of them requires distinct set of running services. What usually happens is one of the following:
- You install them all and let them run.
- You install them all and start and stop them manually when you switch working project.
Resources are always few for a developers and some are paranoid about sparing them. With SMF you can:
- Define a SMF service for each of your projects.
- For every projects, define dependencies with the services you need.
This way, at a minimum, you can start and shutdown, with a single command, every service you need for a specific project. No more:
- Custom shell scripts for every service.
- Custom configuration entries for inetd services (such as Subversion, Apache, etc.)
- Specific OS customization.
- Running services when you don't need them and waste resources you could use otherwise.
Example of SMF service manifest customization can be found in the following posts:
- Registering a service with SMF.
- Credentials and Projects for a Solaris 10 SMF-Managed Service.
- Setting Up Subversion as an inetd Service.
ZFS
- Create file systems on the fly.
- Snapshot file systems on the fly.
- Clone file system on the fly with almost null space usage overhead.
There's a huge literature about ZFS and I'll limit to describe my favorite use cases.
Use case: Multiplexing Your Development Environment.
Software installations are just the beginning of your user experience. Often, we spend time:- Configuring our environments.
- Fine-tuning them.
- Defining the set of additional libraries we need.
- Defining the set of server resources (JDBC, JMS, etc.) our applications use.
And so on. The list is endless.
Sometimes it's necessary to prepare different environments for different projects or different development stages of the same application. Instead of losing time and resource to build different environments I'll usually proceed as follows:
- Install and configure my environment.
- Make a ZFS snapshot of it.
- Make a ZFS clone of it for every additional setup I need.
Oracle JDeveloper is a good example of an application I often clone. JDeveloper is fundamentally a single user environment, despite adopting the common approach of using a per-user configuration directory in the user's home directory. Instead of fiddling with scripts to set per-user configuration parameters, I just install it once, snapshot it's installation directory and make a ZFS clone, one per environment. I use several clones of the JDeveloper environment myself, in my user home directory.
The power of ZFS clones can be used by the Zones infrastructure, as we'll see in the following section, thus enhancing further its power. Cloning a ZFS filesystem is also advantageous while dealing with big installations such as disk images of your favorite virtualization technologies.
Additional posts I wrote about ZFS that could clarify some of its use cases are:
- Sparing Disk Space With ZFS Clones While Setting Up a Developer Environment.
- Sun xVM: Cloning Your domU.
Containers and Other Virtualization Technologies
I consider Solaris a superior desktop virtualization platform. Once again, with a couple of commands. you can easily create a paravirtualized Solaris instance (a Zone). The zones infrastructure is ZFS-aware and can take advantage of it.Zones can be configured with a command line interface to its XML configuration file. Creating a zone is straightforward and, since they're a lightweight technology, you can create as much zones as you need. If you're using ZFS, the process of cloning a zone is incredibly simple and fast.
Use Case: Clustering an Application Server
During the development of your Java EE application you will tipically need an instance of one (or more) of the following:- An application server.
- A web server.
- A data base;
- An user registry.
It's also desirable to have them running on isolated environments so that you can mimic the expected production configuration. With zones it's easy: just create as many zones as you need and each one of them will behave as a separate Solaris instance: every zone will have, for example:
- Its own network card(s) and IP configuration.
- Its own users, groups, roles and security policies.
- Its own services.
Instead of installing and configuring an environment multiple times, you will prepare "master" zones with the services you need. I've got a "master" zone for every one of the following:
- WebSphere Application Server.
- WebLogic Application Server.
- Oracle DB.
- MySQL DB.
- LDAP directory.
and so forth. With one simple command (zoneadm clone [-m copy] [-s zfs_snapshot] source_zone) you'll end up with a brand new working environment in a question of minutes.
Use Case: VirtualBox and ZFS
Sometimes you'll rather work on a virtualized instance of some other OS, such as GNU/Linux, FreeBSD and Windows. Solaris is a great VirtualBox host and the power of ZFS will let you:- Create "master" images for every OS or every "OS role" you need.
- Clone them on the fly to create a brand new virtual OS image.
In my case, I've got:
- A master Windows 7 client with Visual Studio for .NET development.
- A master Windows Server 2008.
- A master Windows Server 2008 (a clone of the previous one) with SQL Server 2008.
- A master Debian GNU/Linux.
Every time I need a new instance I just have to clone the disk image. In a matter of seconds I've got the environment I need. Not only I'm sparing precious time, I'm also sparing a vast amount of disk space. Should I store all of the images (and zones) I use without the ZFS technology and I'd need at least 4 times as much disks as I've got.
Use Case: A Virtualized Network Stack
Solaris provides you pretty powerful network virtualization capabilities. You can, for example, create as many virtual NICs as you need and use them independently either in Solaris Zones or as network cards for other virtualization technologies (such as VirtualBox.) Network cards can be interconnected with virtual switch (etherstubs) and enable you to create "networks in a box." Not only you can use virtualized instances to mimic your production environment: you'll be able to create a virtualized network to emulate the complex network policies your environment could need.If you need to test an environment whose configuration would be impossible to replicate without additional physical machines, that's where virtualization technologies (such as Zones or VirtualBox) and the virtualized network stack come in handy. My developer environment for a project I'm working for is made up of:
- Two zones with two load balanced IBM IHS instances.
- A zone with an LDAP directory.
- Two zones with two clustered instances of IBM WebSphere Application Server.
- A Zone with an instance of IBM WebSphere DMGR.
With Solaris, I can replicate the production environment in my box and respect each and every network configuration we use. Without these technologies, it would have been much harder to accomplish this goal or I would end up with custom configurations (for example, to avoid port clashes). In all cases, I'd lose much more time on the administration and configuration of such environments if zones weren't so easy to use.
DTrace
DTrace power is extremely easy to explain to a developer. At the same time, it's difficult to grasp its usefulness without trying it yourself. DTrace on Solaris provides tens of thousand of probes out of the box and others can be created on the fly. This "probes" provide you an extremely powerful mean of troubleshoot problems in either your applications and the underlying operating systems. To use the probes you've got to use scripts written in the D language. Fortunately, this language is pretty easy by design and you can write powerful D scripts in a few lines of code.DTrace is unobtrusive and let you troubleshoot problems immediately, without modifying your application, even in a production environment. Some IDEs, such as NetBeans, have powerful plugins that let you write D scripts and see the data collected by the probes in beautiful graphics.
As a developer, I valued DTrace usefulness more than once. Instead of troubleshooting problems having to dig into the source code and introduce additional code (even in the cases in which aspects come in handy), I could use a D script to observe the application from the outside and quickly collect data that could help me determine where the problem could be.
In some cases, moreover, you could find yourself dealing with situations in which there's no code available. I could quickly troubleshoot a problem I was having with WebSphere Application Server with a D script instead of relying on WebSphere tracing facilities and the task of interpreting log files.
Conclusion
So much for an introductory post. The possibility of building a development environment as close as possible as your target environment is a "must" for any development platform. Additionally, I consider that working on a environment as close as possible as the production environment not only gives you additional value and insights during an application development stage, but should also considered a mandatory requirement for every project we're involved into. Solaris provides all of the tools a developer need to accomplish this goal.Solaris is a complex enterprise operating system with many features you won't probably ever use. Nevertheless, there's a use case for many others of them, as I tried to point out in this post. Since some of these technologies were developed with an open source license, they are also available on other operating systems: ZFS is available on FreeBSD and there exist a community effort to port it to OS X; DTrace is available on OS X, Linux and FreeBSD.
The "Solaris advantage" is that all of these technologies are highly integrated and take advantage of each other. The result is worth more than the sum of them. These technologies have got a very polished and easy to use administrative interfaces: when time is important, "How you do it" is fundamental.
I hope that these insights might help you understand if and when the Solaris operating system might be useful to you. Even if you consider that it's not, I suggest you give it a try anyway: it's always good to add new technologies to your tool box.
Labels:
crossbow,
dtrace,
java,
java ee,
solaris,
virtualbox,
virtualization,
zfs,
zones
Subscribe to:
Posts (Atom)