Ye Meri Life Hai - Chirag Mehta

Be Good & Do Good!

Search results: "ki" (page 12 of 57)

Salesforce – Hide standard buttons display

Below version isn’t working due to cross domain issues (As visualforce pages are served from *.force.com domain and salesforce standard pages are served from *.salesforce.com domain, so it results in cross domain errors).

Please read new working version @ http://www.chiragmehta.info/chirag/2010/08/16/salesforce-hide-standard-buttons-display-working-version/

There are many a times where we want to remove few standard buttons from page layout, but there is no such option to remove such restricted buttons. Few such buttons are …

  • “New Note” or “Attach File” button on Google Docs, Notes, & Attachments Related list
  • “Save & Send Invitation” button on New Event page
  • Following is a solution which will hide “Save & Send Invitation” button on New Event page

    STEP1: Visualforce Code

    <apex :page sidebar="false" showHeader="false">
    <script language="javascript" type="text/javascript">
    window.onload = new function()
    {
    window.parent.document.getElementsByName("sendEmail")[0].style.display = 'none';
    window.parent.document.getElementsByName("sendEmail")[1].style.display = 'none';
    }
    </script>

    </apex>

    STEP2: Create a Home Page Component of type (HTML Area)

    <iframe src="/apex/aboveVFPageName" frameborder="0" width="100%" height="100"></iframe>

    STEP3: Add above created Home page component in your home page layout.

    That’s it you are all set, now open New Event and add invitees, automatically the “Save & Send Invitation” button will disappear.

    Intel cleanrooms are 10000 times cleaner than a hospital operating room

    While blogging, surfing around I came across an article which astonished me as it read “Intel cleanrooms are 10000 times cleaner than a hospital operating room”

    Really strange, Intel says

    Cleanrooms are 10,000 times cleaner than a hospital operating room. It takes an incredible amount of technology to achieve and maintain such cleanliness. Huge air filtration systems completely change the air in cleanrooms about 10 times per minute, reducing the chance that there are airborne particles that might harm the chips.

    Keeping the environment clean, however, is only half of the story. What about the people who work in the cleanrooms? The thousands of people who work in Intel cleanrooms all wear special uniforms called “bunny suits” to protect the chips from human particles such as skin flakes or hairs. A bunny suit is made from a unique non-linting, anti-static fabric and is worn over street clothes.

    Read More @ Intel.com

    Difference and similarity between Wii, XBOX & PS ?


    Wii XBox Play Station

    The Sony PlayStation 3 and Nintendo Wii both jumped into the game console ring to compete against Microsoft’s Xbox 360. Who is going to win?

    Everyone’s watching to see how this battle plays out, because each company is pursuing a very different strategy. Sony and Microsoft are gunning for pure performance systems, while Nintendo is shooting at fun, playable games that rely more on its unique controllers than impressive graphics hardware.

    The consoles’ prices follow the features and product strategy of each company:

    Sony PlayStation 3
    Sony’s PS3 is the most expensive at $500-600, because it includes a standard hard drive, a high definition Blu-ray optical drive, HD video output, Bluetooth wireless controllers, and–in the premium version–WiFi wireless networking.

    Sony is setting up the PS3 as a PC alternative. Sony originally announced plans to ship the PS3 with Linux pre-installed, but currently user installation of “another operating system” is only a boot option. The PS3 is also the new HD core of Sony’s modern take on the stereo system, offering 5.1 Dolby Digital Surround and true 1080p high definition video playback from prerecorded Blu-ray movies.

    Microsoft Xbox 360
    Introduced last winter, Microsoft’s Xbox 360 is $300-400, uses a standard DVD optical drive, and only includes a hard drive and wireless game controller in its premium version. Microsoft recently updated the 360 to provide support for full HD, 1080p video output to match the PS3.

    Rather than positioning the Xbox 360 as a standalone PC alternative, Microsoft pairs it with its plans for Windows Media Center, allowing the 360 to be used as a media extender to stream music and movies from a central Media Center PC.

    Microsoft has plans to offer HD movie playback both with an optional HD-DVD player in an external box, and over the web through its online Xbox Live video store.

    However, the Xbox 360’s optional, external HD-DVD player is $200, pushing the 360 up to the same price as the PS3. Further, the $300 core Xbox 360 systems can’t use Microsoft’s online video store because they don’t have the required hard drive to save downloaded movies.

    Nintendo Wii
    The Wii is the least expensive of the three at $250, and includes both Bluetooth for wireless controllers and a DVD drive, but will not be able to play DVD movies. It also lacks a hard drive. Instead, the Wii focuses on physically involving games using the wireless Wii Remote paired with the accessory Nunchuk controller.

    The Wii Remote uses accelerometers to sense how players swing, point, and tilt the controller, encouraging game titles to incorporate activity. The Wii will also wirelessly connect to Nintendo’s DS portable game system, using its microphone and touchscreen as inputs for Wii games. While the Wii has no movie store, Nintendo has an online store that sells classic games from the Nintendo 64 and other previous game consoles.

    The Last Generation
    So which console is going to assume the lead, or will there be a tie? A half decade ago, many analysts projected a close race between the Sony’s PlayStation 2, Microsoft’s original Xbox, and Nintendo’s GameCube, but their prediction turned out to be wrong: Sony simply blew away the competition with its PS2.

    This time around however, a number of factors have changed. For example, while Nintendo’s 2001 GameCube was also the cheapest console, its sales were hurt by a game lineup that mainly targeted the youth market rather than teens and adults, something Nintendo has attempted to address.

    Here’s a quick look at the lessons learned in the last generation of consoles, how Microsoft got involved in console gaming, what resulted then, and what factors will determine how things work out this time.

    Sources: http://www.roughlydrafted.com/RD/Q4.06/745E215D-460A-4393-96E6-56FD13A883A2.html

    Google’s Chrome now inside Internet Explorer

    Hmmm, this is interesting. Google had spotty luck trying to push its Chrome browser to users, but now it’s come out with Google Chrome Frame to embed Chrome’s functionality inside Internet Explorer.

    The idea of embedding one browser’s functionality inside another browser isn’t new. Firefox users have IE Tab, for example, to run sites that absolutely require IE to run. With IE Tab the user can specify a list of sites and/or file extensions that should always be opened in an IE tab. That approach is problematic at times because the user isn’t always the best person to determine whether the site works correctly with a particular browser. It may take trial and error on the user’s part to determine that the site is breaking because it requires IE.

    Google Chrome Frame lets web page developers specify that their page would really prefer to be rendered in Chrome rather than IE. Once the plugin is installed, the author of a web page can specify that IE should use the Chrome Frame plugin by putting a single tag into the top of the document:

    <meta http-equiv=”X-UA-Compatible” content=”chrome=1″/>

    If some other browser is in use, or if the user has IE with the plugin not installed, the page renders just like it normally would. If, however, the Chrome Frame plugin is installed in IE, the page is rendered using the Google Chrome engine even though it’s still within the IE application.

    This sort of browser-in-browser solution could be great for developers that want to support IE6 users without having to deal with IE6 quirks. They’d just add the tag to their site and tell IE6 users that they’d be supported only with Google Chrome Frame. (IE7 and IE8 aren’t as problematic, so most developers can build a site that supports them with or without Chrome Frame.) The biggest problem I see is that many IE6 users are dealing with locked-down systems and won’t have the authority or ability to add the plugin. If they could do that, they’d also be able to upgrade their browser!

    Read more on Google Chrome Frame @ Google Chrome

    Ack : Dave Methvin

    Apex – Update “non-setup” objects from a “setup” object like User

    Dilemma

    As this page of the Apex docs indicates, you can’t just make a User trigger that updates a Contact or an Account, because it’s forbidden to modify those “non-setup” objects from a “setup” object like User.

    Solution

    Fortunately there is a simple solution: the @future annotation.  The @future annotation allows you to create Apex that runs asynchronously at some point in the future (in my tests I’ve found that it runs immediately, or at least very soon after the trigger executes).  Methods that use @future are subject to different limits than normal trigger operations because @future methods don’t hold up the trigger (and therefore the entire user experience) while they’re working.  Therefore @future methods are often used to perform long-running web service callouts from triggers asynchronously.  However, they can also be handy for a case like ours, where we want to update an object that we’re not normally eligible to update.

    Calling a method that has been marked as @future is just like calling any other static method.  Here’s my trigger, short and sweet:

    trigger UpdateContactFromPortalUser on User (after update) {
    	//We only want to run on the single item that the user edited
    	if (Trigger.new.size()==1) {
    		User u =  Trigger.new[0];
    		//And only if it's a portal user
    		if (u.ContactId!=null) {
    		UpdateContactFromPortalUser.updateContacts(u.Id);
    		}
    	}
    }

    Let’s see how that works.  In the example given here, I just update a couple of fields from the user record: the name, the email address, and the title.

    global class UpdateContactFromPortalUser {
        @future
        public static void updateContacts(String userId) {
        	User u = [select ContactId,Email,FirstName,LastName,Title
        				from User
        				where Id=:userId];
    
        	if (u!=null && u.ContactId!=null) {
    	    	Contact c = new Contact(Id=u.ContactId);
    
    			c.Email = u.Email;
    			c.FirstName=u.FirstName;
    			c.LastName=u.LastName;
    			c.Title=u.Title;
    			update c;
    		}
    
    

    Source :  http://blogs.salesforce.com/support/2009/01/index.html

    Six reasons why real estate is a good investment

    Kavita Sriram, Time of India Journalist says this is a good time for investors to buy property as part of a portfolio

    Leading a life of luxury on borrowed money may not always be the right thing to do. How prudent would it be to make an exception on home loans? Should you buy your dream house or invest in some piece of land? Is it time to invest in real estate?

    STABILITY
    Real estate is less volatile than stocks. While real estate may be less liquid, and you may have to wait indefinitely before a buyer agrees to purchase your property for the price you seek, the prices are not as volatile as the stock markets. The transition towards a correction or boom takes place gradually, giving ample time for investors to read the transition and safeguard their positions.

    PRICE CORRECTION
    The economic slowdown had an impact on this sector. The rates have come down over the past few months. Wouldn’t it make a lot more sense to invest in real estate when a price correction is taking place rather than in a heated market? People with a large disposable income can explore investing in real estate for diversification of their assets. Lowering home loan interest rates and lower property prices makes it an opportunity hard to resist.

    GOOD IN RECESSION
    Some investments are considered safe in times of recession like precious metals and foreign currencies. In this list of investments that are popular during times of financial uncertainty, real estate can be included. Focus on achieving positive monthly cash flows rather than immediate appreciation. Cash flow refers to the amount of cash coming in relative to the amount going out.

    HEDGE AGAINST INFLATION
    Real estate and gold are considered a hedge against forces of inflation. Inflation has led to the rupee value depreciating and property prices travelling upwards. Property investments are typically held over a long term.

    TAX BENEFITS
    Home loan borrowers are eligible for tax deductions on their interest and principal repayments subject to a certain limit. Further, you can use the rental income from the property to make a portion of the EMI repayments.

    GOOD RETURNS IN LONG TERM
    Investments in property has always proved to be stable and yielded good returns over the long term. With lesser risk and probability of higher returns, this is a much favoured investment option. Stimulus packages announced by the government are expected to show good results and bolster the economy. Cement, a key construction material, has indicated a growth of 12 percent in May. This is enough indicator of vigorous economic activity. Borrow as little as possible and consider investing in property.

    Nandan Nilekani’s Fully integrated ID card system!

    Indian govt is thinking of issuing fully inegrated ID card to every Indian, this initiative is headed by Nandan Nilekani. Following is a small hilarious act on how the Life then would be as follows:

    Operator : “Thank you for calling Pizza Hut . May I have your…”

    Customer: “Helo, can I order..”

    Operator : “Can I have your multi purpose ID card number first, Sir?”

    Customer: “It’s he…, hold……….on…….889861356102049998-45-54610”

    Operator : “OK… You’re… Mr Singh and you’re calling from 17 JalVayu. Your home number is 22678893, your office 25076666 and your mobile is 9869798888. Which number are you calling from now Sir?”

    Customer: “Home! How did you get all my phone numbers?

    Operator : “We are connected to the system Sir”

    Customer: “May I order your Seafood Pizza…”

    Operator : “That’s not a good idea Sir”

    Customer: “How come?”

    Operator : “According to your medical records, you have high blood pressure and even higher cholesterol level Sir”

    Customer: “What?… What do you recommend then?”

    Operator : “Try our Low Fat Pizza. You’ll like it”

    Customer: “How do you know for sure?”

    Operator : “You borrowed a book entitled “Popular Dishes” from the National Library last week Sir”

    Customer: “OK I give up… Give me three family size ones then, how much will that cost?”

    Operator : “That should be enough for your family of 05, Sir. The total is Rs 500.00”

    Customer: “Can I pay by Credit card?”

    Operator : “I’m afraid you have to pay us cash, Sir. Your credit card is over the limit and you owe your bank Rs 23,000.75 since October last year. That’s not including the late payment charges on your housing loan, Sir..”

    Customer: “I guess I have to run to the neighborhood ATM and withdraw some cash before your guy arrives”

    Operator : “You can’t Sir. Based on the records, you’ve reached your daily limit on machine withdrawal today”

    Customer: “Never mind just send the pizzas, I’ll have the cash ready. How long is it gonna take anyway?”

    Operator : “About 45 minutes Sir, but if you can’t wait you can always come and collect it on your Nano Car…..”

    Customer: “What!”

    Operator : “According to the details in system ,you own a Nano car,…registration number GZ-05-AB-1107..”

    Customer: “????”

    Operator : “Is there anything else Sir?”

    Customer: “Nothing… By the way… Aren’t you giving me that 3 free bottles of cola as advertised?”

    Operator : “We normally would Sir, but based on your records you’re also diabetic……. ”

    Customer: #$$^%&$@$% ^

    Operator: “Better watch your language Sir.. Remember on 15th July 2010 you were convicted of using abusive language on a policeman…?”

    Customer Faints

    Armageddon (1998)

    It’s Closer Than You Think. For Love. For Honor. For Mankind. Take the Ride of Your Life!

    Synopsis
    As a massive asteroid hurtles toward Earth, NASA head honcho Dan Truman (Billy Bob Thornton) hatches a plan to split the deadly rock in two before it annihilates the entire planet, calling on Harry Stamper (Bruce Willis) — the world’s finest oil driller — to head up the mission. With time rapidly running out, Stamper assembles a crack team and blasts off into space to attempt the treacherous task.

    My Review
    Movie is fast paced and is a true entertainer. Its just fun to watch. You can just relax and have fun with it its great. Don’t try to verify the physics of space and of asteroids, just enjoy the movie.

    Last few moments when Harry(Bruce) gives his life for A.J(Bruce daughter’s Fiancé) in a very touching moment the story comes together and sets it right. The movie ends with a mature moment and a mankind lesson.

    Trailer



    Should parents be on Facebook?

    Stage 1
    ‘Oh, how cool. My parents are getting net-savvy!’ This stage lasts for 30 seconds.

    Stage 2
    ‘Aaaarghh!! They can see everything – my photos, my friends, my profile pictures, what my friends have said about my pictures, my wall!’

    Stage 3
    Deep breathing. ‘It’s okay. I won’t accept the request.’

    Stage 4
    Later that evening: ‘Beta you didn’t accept my friend request? I sent it to you this morning, will you please accept, abhi?’

    Stage 5
    For the first time in your life, you take an in-depth look at Facebook’s privacy settings. You realize that it’s very, very inscrutable. Two days later, your girlfriend posts the pictures of you and her at the party you went for last week.

    Stage 6
    Mom posts a comment on the picture/your wall, asking if this is how she behaves in public. Your friends shriek with laughter and you hide under the bed for a week. When you come out, you find your girlfriend has dumped you and will never face you, your parents, or any other friends in that party again.

    Stage 7
    You spend three days scanning every photo you put up, comment you made, note you posted, and quiz you took, deleting, deleting, deleting.

    Stage 8
    Mom discovers quizzes! The world finds out that she has a 98 per cent dirty mind; she is Surma Bhopali from Sholay; sings ‘Who let the dogs out’ in the bathroom; and her stripper name is Hot Chocolate.
    You don’t log in for a month.

    Stage 9
    You finally log in again, and find that her entire friend circle – including your aunts and your dad – has joined the social networking site. They have been, via your cousins, going through your profile with a fine toothcomb. There are 17 friend requests pending.

    Stage 10
    Dad becomes a fan of Megan Fox. It’s followed by intensely aggressive reaction from mom. Aunts support her. Friends start taking screenshots of the discussion and forwarding it around among each other. You throw your computer out of the window.

    On the serious side Should parents be on Facebook? The immediate reaction is negative, because we’ve got used to a certain level of privacy and freedom out here, and we’d rather not have someone looking over our shoulder disapprovingly.

    But are you doing something that you’d be ashamed to share with your parents? If yes, why are you doing it at all? It may take some getting used to, but in the long run, it can be an opportunity to bond with your parents in a way that you had never thought of before.

    Remember, they did figure it out on their own – doesn’t that deserve some respect? And won’t it be a lot more fun if you can help them through this, without embarrassing them or you? And once you know they’re around, thinking – even for 5 seconds – before posting is not such a bad habit. It can save you from making the blooper of a lifetime.

    Vegan Candy Is Dandy!

    candy_main[1]

    Would you believe that some candies contain animal ingredients? It’s true! Some candies are made from things like gelatin, which is mashed up cow skin, cartilage, and bones. And carmine, the red coloring used in some candies, is made from ground-up bugs. Can you believe that? Bugs! Blecch!

    Wondering if some of your favorite sweets are animal-friendly? No worries—check out the list @PetaKids.com and satisfy your sweet tooth with vegan treats

    « Older posts Newer posts »