Ye Meri Life Hai - Chirag Mehta

Be Good & Do Good!

Month: January 2009 (page 1 of 2)

Life is tough, but it’s tougher when you’re stupid

Ack: Supriya Agrawal

First-year students at Texas A & M’s Vet school were attending their first Anatomy class, with a real dead pig.

They all gathered around the surgery table with the body covered with a White sheet. The professor started the class by telling them, ‘In Veterinary Medicine it is necessary to have two important qualities as a Doctor: The first is that you not be disgusted by anything involving the Animal body’. For an example, the Professor pulled back the sheet, touched his finger in the mouth of the dead pig, withdrew it and put his Finger in his mouth. ‘Go ahead and do the same thing,’ he told his students.

The students freaked out, hesitated for several minutes. But eventually took turns putting their finger in the mouth of the dead pig and tasted in their mouth.

When everyone finished, the Professor looked at them and said, ‘The Second most important quality is observation. I touched with my middle Finger and tasted on my index finger. Now learn to pay attention…

Gmail Gets Offline Support, Finally

One of the longest-running requests for Google’s web mail service Gmail has been for offline functionality. Now, finally, Gmail users will be able to type up those emails inside an airplane. Google has just announced offline Gmail support via Gmail Labs – to start with for consumers and businesses using Google Apps, but regular Gmail consumers will get it over the next couple of days. The offline feature was built using Gears, Google’s offline web application API.

In its email to us, Google archly noted that Internet connectivity has started to happen even in airplanes – for example American Airlines announced last year that they will offer in-flight wi-fi service. Even so, many people (including this author) have been clamoring for offline Gmail for years. Google’s web mail competitors have been much swifter in offering offline functionality. In October 2008 we reported that Zoho Mail had gotten offline support, ironically via Gears. Yahoo Mail gave offline access to all free and paid Yahoo Mail users through the Yahoo Zimbra Desktop in July ’08.

It’s been frustrating for Gmail users, many of whom are early adopters, that Gmail has been so behind the times with this feature. Particularly when Google has Gears and has already used it to offline-enable Google Docs and Google Reader. So Google has been slow to use Gears in Gmail and Google Apps, but of course we’re pleased to see it being deployed now.

With its new offline access, Gmail will be able to be used inside the browser even without an Internet connection. Messages can be read, starred, labeled and archived and new mail can be composed, says Google. Messages ready to be sent will wait in the Outbox until the user is online again when the messages will be sent automatically. Google has warned though that “there might be some issues that aren’t completely ironed out” in the new feature.

The feature will be rolled out over the next couple of days, starting this afternoon for Google Apps users. You can enable offline Gmail by clicking ‘Settings’ in your Gmail, then click the ‘Labs’ tab and select ‘Enable’ next to ‘Offline Gmail’, and click ‘Save Changes.’ Then in the upper righthand corner of the account, next to the username, there will be a new ‘Offline’ link. Click this link to start the offline synchronization process (note that you will need to to download Gears if you haven’t already). For non-Google Apps users, you’ll have to wait a couple more days.

But wait, there’s more. Google is also working on an offline Google Calendar. There is no date for this release, but it too will be launched with Google Apps first.

Salesforce – Apex Search with Checkbox Results

Following demo is a single Apex custom controller, two Visualforce pages and a wrapper class allowing the user to search an object by keyword (via Dynamic SOQL) and return the results in a page block table with corresponding checkboxes. Selecting one or more checkboxes and clicking the ‘See Results’ button displays the list of the selected items.

This is a very common function as you typically want to search for stuff and then process some selected stuff.

You can run this demo on Jouff Douglas developer site.

cat-screenshot

View Complete Code @ Jouff Douglas

Carry on flirting

Ack :- Nisha Samson

The reason why I smile all the time and be happy is because i carry on flirting 🙂


YOU
look in his direction and lower your eyes just as he catches your gaze. You then give him a shy smile. He in turn looks at you and runs his fingers through his hair, giving you a slight smile.

This is flirting at its subtle best. Light-hearted flirting is not only good for your ego but also good for your health!

It is important to remember that flirting may not be as open or as accepted in India as compared to the western countries.

Flirt Away

Flirting good for your health you wonder? Yes it is.

Psychologist and relationship counsellor Dr. Tushar Guha says, “Remember flirting cannot be generalised. Traditional and conservative people will never consider flirting. Having said that, there are quite a lot of open-minded, modern men and women who do resort to flirting.”

You need to know what kind of flirting you want to resort to and what the purpose of your flirting is. After all, you don’t want it to end at the end of the night, do you?

When you are flirting for fun you need to send out the right signals and let the other person know through your actions that you are just flirting for fun.

For example, you are at a fast-food joint and manage to make eye contact with a guy. You just make eye contact all through your respective meals and leave it at that. You leave once you are done, taking it no further. This is a form of very subtle light-hearted flirting. This is flirting for fun.

Light-hearted flirting is an effective ice-breaker between two people. In fact, some couples began their relationship with light-hearted flirting.
Send the Right Signals

So you want to start flirting; begin with the right body language.

For example, picture a man on the opposite table at a coffee house throwing a few appreciative glances in your direction. Your body just tightens up and you do not even smile when he looks at you (even though you may want to). The man may think that you are not interested and will not push it.

However, if you throw him a few appreciative glances in return and give him a slight smile, he may even come and talk to you.

Here are a body signals that convey more than words:

The eyes say it all

Dr. Guha says, “Eye flirting or eye contact is one of the most common ways of flirting.”

You can look at him and meet his gaze. Hold that look for about 30 seconds and then go back to what you are doing. Wait for another 30 seconds and give him another look with a small smile.

In all probability he will smile back and who knows where it will go from there.

It is important to remember that only you can and should decide how far you want the flirting to go.

Face off

Like your eyes, your face too conveys more messages than you know. A sweet, small smile, a tilt of the head, or even running your fingers gently at the edge of your hair are all signs of interest.

And your body says…

Your body language includes hand gestures and the signals that your body gives out.

If your gestures are inviting (like you may place your hand on his if you two get talking) and your body is relaxed when meeting his gaze, he will know that you are interested and comfortable flirting with him.

Also when looking at him and your body is at ease with flirting with him, he will know that you are at ease and will reciprocate your flirtatious behaviour too.

Touchy, touchy

So now that he is at your table and you are talking to him, you could inadvertently lay your hand gently over his in course of conversation.

You could also gently tap his forearm when you are laughing.

The important thing to remember here is that you need to know how to touch and where to touch him.

Remember, do this only if you are comfortable. If you are not the touchy kind of person, please do not resort to touching.

Who are you flirting with?

Who you flirt with is another very important aspect to the flirting game. Sometimes, in all haste you may end up flirting with the wrong person.

A good idea would be to observe the person you intend to flirt with very subtly. And while you may not be able to establish his character through the course of your observation, you can confer his mannerisms like the way he is talking to his friends, or the way he talks on his phone and the way he deals with people around him.

Before you flirt with anyone, you must be prepared that he could be taken aback by what he could confer as bold behaviour on your part.

All said and done, Indian women are still considered to be conservative and traditional, so if you get a surprised or cold response from a man, do not lose heart.

Look for someone who is a lot more laid-back and will view flirting just the way it should be viewed… as simple harmless fun.

Floor him!

Now that you know all there is to know about flirting, go ahead and floor the man. Just make sure that you do only what you are comfortable doing.

Flirting with your partner is good even when you are in a steady relationship or marriage. This will help you rediscover the spark in your relationship and marriage.

It will knock your partner off his feet…just the way he wants.

So flirting with your partner is okay, but if you are married or in a steady relationship, flirting with another person is not a good idea.

Even light-hearted flirting with another person, if you are married or in a steady relationship, just could lead onto something more serious.

India calling

Remember that flirting is looked down upon in our country. But, as mentioned above if the person, place and environment permits it, go ahead and flirt.

Put the Glass Down Today

Ack :- Sweta Chotalia

Professor began his class by holding up a glass with some water in it. He held it up for all to see & asked the students “How much do you think this glass weighs?”

’50gms!’….. ‘100gms!’ …..’125gms’ …the students answered.

“I really don’t know unless I weigh it,” said the professor, “but, my question is:
What would happen if I held it up like this for a few minutes?”

‘Nothing’ …..the students said.
‘Ok what would happen if I held it up like this for an hour?’ the professor asked.

‘Your arm would begin to ache’ said one of the student

“You’re right, now what would happen if I held it for a day?”

“Your arm could go numb; you might have severe muscle stress & paralysis & have to go to hospital for sure!” ….. ventured another student & all the students laughed

“Very good.

But during all this, did the weight of the glass change?” Asked the professor.

‘No’…. Was the answer.

“Then what caused the arm ache & the muscle stress?”

The students were puzzled.

“What should I do now to come out of pain?” asked professor again.

“Put the glass down!” said one of the students

“Exactly!” said the professor.

Life’s problems are something like this.
Hold it for a few minutes in your head & they seem OK.

Think of them for a long time & they begin to ache.
Hold it even longer & they begin to paralyze you. You will not be able to do anything.

It’s important to think of the challenges or problems in your life,
But EVEN MORE IMPORTANT is to ‘PUT THEM DOWN’ at the end of every day before you go to sleep…

That way, you are not stressed, you wake up every day fresh &strong & can handle any issue, any challenge that comes your way!

So, when you leave office today,Remember friend to
‘PUT THE GLASS DOWN TODAY! ‘

Salesforce – Visualforce Component to show Object Record Types

Show Object Record Type

In this article Sam presents us a Visualforce Component that would list the record types of an Object in the platform.

Now following are words from Sam …
Imagine, the Account object has two record types in the force.com platform (Record Types are created by the users based on what these objects represent on their business).

Account Record types:

  • Customer
  • Partner
In many occasions especially when developing a new wizard you need to first allow the user select what type of record they want to create and then based on that show the correct type of interface to the user.

The solution as to how you can show this to the user is rather simple, but here I actually took the time to create a re-usable component, so you and I won’t need to rewrite the code next time!

View Component and Component’s Controller Code @ http://salesforcesource.blogspot.com/2009/01/visualforce-component-to-show-object.html

Salesforce – Access Public Knowledge Base of any Salesforce Org – Bug or What ?

Following is a bit tricky code what i discovered, may be its already known to few of us ..

Following is the url to access Public Knowlede Base of any Salesforce Org, just change the org id.
http://na1.salesforce.com/sol/public/solutionbrowser.jsp?search=donkey&cid=000000000000000&orgId=00D30000000XXXX

Only Assumptions above is that
* Org to have Knowledge Base to be Enabled
* A Solution named donkey to be defined already in Org

Does Public Knowledge Base means its public to everyone in this world who uses Salesforce Org. Isnt it should be public to only users or persons relevant to that Org. Addition of any unique identifier apart form Org id to increase Validation of Invoker.

My understanding of this may be completely wrong, just correct me if am wrong.Just saw something suspicious and felt to update salesforce developers, so came up with this post !!

Blogged @ http://community.salesforce.com/sforce/board/message?board.id=discuss&message.id=8291#M8291

Salesforce – Force.com Email Services(Email To Apex)

Force.com Email Services or “email to Apex” lets you define email addresses, which can process Apex code. Send emails to Salesforce and process them with Apex code to create and update data from inbound emails.

Following sample code @ Apex Wiki shows you how an email can be used to create new tasks for a contact record with a matching email address i.e., Send an email to Salesforce with a follow-up note, will setup a task with a reminder 1 day for now.

Retrieved from “http://wiki.apexdevnet.com/index.php/Force.com_Email_Services

Salesforce – Spring ‘09 Features Released

Ack:- Sam Arjmandi

  1. Force.com Sites Improvements

    • Audit Trail:
      Now you can track all the changes made to your sites by different users.
    • Sites Robot.txt and Fav Icon:
      With this release you will be able to set a robot.txt for you force.com site which enables you to better control how search engines should index your site’s pages. Fav Icon is also a useful way of personalizing the browser in showing an icon next to the title of your website (in tabs) and also in favorites/bookmarks.
    • Standard Pages:
      Allows you to bring selected standard pages and expose them to the public via your force.com site (suitable for ideas page, etc).
    • Sites Packaging:
      With this feature we can package force.com sites, apex code, etc and install them into other instances.
  2. Force.com Web Service API Improvements

    • Improvements in the timeout limits of the callouts:
      This is potentially good when the code takes a longer time to process and bring back the results. Now we can configure it in a way to have extended timeout periods resulting in more run-time stability.
    • Also Wider range of WSDL types are supported by Spring 09 release.
  3. Database and Reporting

    • Summary Report Data Snapshots:
      Previously data snapshots were available on reports, however, with this release you can use snapshots across large amounts of data, where only the summaries will be stored, as well as create historical views of metrics, KPIs and other summary data.
    • Data Grouping Functions:
      This is actually a very useful upgrade, now you can group the entries of a report to better analyze aggregate data.
    • Delegated Data Administration:
      This feature allows you to grant permission to non-admin users to report, search, modify, transfer, share, unlock, or approve any record regardless of sharing settings on an object basis.
    • Dashboard Finder:
      This enhancement allows you to search through your dashboard items (a real time-saver!).
  4. Force.com IDE

    • Apex Code Auto-Complete in Force.com IDE:
      Finally! When you are coding in Eclipse (force.com IDE) auto-complete feature will be available to assist you with writing the code.
  5. User Interface

    • Enhanced Page Layout Editor:
      This one is my favorite enhancement, using this feature now you can create much better layouts. You can drag and drop fields and items around, “save as” a layout, leave a spot empty (blank spaces), design the mini-layout, etc.
  6. Services

    • Cross-Object Workflow:
      With this feature you can update a field on a parent record within a workflow!
    • Access to Email Logs in the Application:
      This report shows you whether your outbound emails were received or bounced back and basically gives you a comprehensive log of your outbound emails.

  7. Force.com Logic


  8. Mobile

    • Mobile Web Tabs for iPhone
      You can now create mobile-ready Visualforce Tabs for the iPhone. This enhances the client with a near-limitless method of extension – enabling you create content for the iPhone using the Visualforce user interface framework. The hybrid iPhone client that supports this functionality will be released next month.

Salesforce – Use Visualforce and Apex to Populate PDF Forms

Source : Salesforce Blog


Jesse Lorenz blogs following about how to use Visualforce and Apex to Populate PDF Forms

Does your company’s business process involve filling out PDF forms? Perhaps something like IRS Form W-4?

If so, you may be interested to learn that in addition to creating PDF documents from scratch, you can also use Visualforce and Apex to automate the process of populating third-party PDF forms. Ron Hess and I(Jesse Lorenz) recently collaborated on a project that does just that. It’s a straightforward process where all you really need to do is generate an XML file that follows Adobe’s XFDF format.

If you’re interested to learn more, we’ve documented an example that creates an XFDF file which is then used to populate a simple PDF form. Read the XFDF wiki article to learn more.

Older posts