Blog Stats
  • Posts - 23
  • Articles - 1
  • Comments - 140
  • Trackbacks - 0


Sunday, August 18, 2013

How to write to NTFS on Mac OS (free)

How to write to NTFS on Mac OS

This is fully free and you dont need any purchased software to do this :)

Download this file and unzip it :- 
( I have downloaded all these softwares and kept together as a zip for easy downloading)

Install the following in order :- (Installation instructions for Mac OS X Mountain Lion 10.8.4)

3.fuse_wait-1.1.pkg - Expand and install
4.osxfuse-2.6.1 - Enable compatibility layer while installing.dmg 

(As the 4th file name says, during the installation choose the option "Enable Compatibility Layer")

Restart if required

This will help you in solving the following ntfs 3g error :-

dyld:library not loaded: / use/local/lib/libfuse2.bylib
referenced from : / use/local/bin/ntfs-3g
reason:image not found

Go to Disk Utility :- (Spotlight search on top right of your Mac -> Type "Disk Utility")

If you have BootCamp enabled :-
You can see Bootcamp on the left
Right click and say mount

Same way for other USB or hard drive that you have connected, it will show in disabled state.
Right click and say mount

and you are done.

Now you will be able to write to NTFS on Mac :)

Sunday, April 7, 2013

Nodejs vs php

PHP vs NodeJS

Where to use Nodejs and PHP

Here are some quick examples of different programming situations and which language you should probably go with.

  • Are you building some sort of daemon? Use Node.
  • Are you making a content website? Use PHP.
  • Do you want to share data between visitors? Use Node.
  • Are you a beginner looking to make a quick website? Use PHP.
  • Are you going to run a bunch of code in parallel? Use Node.
  • Are you writing software for clients to run on shared hosts? Use PHP.
  • Do you want push events from the server to the client using websockets? Use Node.
  • Does your team already know PHP? Use PHP.
  • Does your team already know frontend JavaScript? Node would be easier to learn.
  • Are you building a command line script? Both work.
Courtesy :-

Thursday, November 8, 2012

This virtual machine appears to be in use .vmdk - how to resolve?

Issue :-
This virtual machine appears to be in use.  If this virtual machine is already in use, press the "Cancel" button to avoid damaging it. If this virtual machine is not in use, press the "Take Ownership" button to obtain ownership of it.

Solution :-
you will have .lck folders in the directory where you will have the .vmdk file. Delete them and try again. It will work

Sunday, August 26, 2012

Auto increment in postgres

While creating the table you can see a data type called Serial or BigSerial (Note that these two options will not be available when you modify a column thats already created. You can see these options only when you create a column in pgAdmin III)

In create table script you need to give the SQL command like this :-
"ID" serial NOT NULL

Friday, May 25, 2012

How to Overcome or fix MIXED_DML_OPERATION error in Salesforce APEX without future method ?

How to Overcome or fix MIXED_DML_OPERATION error in Salesforce APEX without future method ?

one of the worst issues we have ever faced :)

While trying to perform DML operation on a setup object and non-setup object in a single action you will face this error.

Following are the solutions I tried and the final one worked out :-
1. perform the 1st objects DML on normal apex method. Then Call the 2nd objects DML through a future method.
    Drawback :- You cant get a response from the future method as its context is different and because its executing asynchronously and that its static.

2. Tried the following option but it didnt work :-
    1. perform the dml operation on the normal apex method.
    2. tried calling the 2nd dml from trigger thinking that it would be in a different context. But it didnt work.
3. Some suggestions were given in some blogs that we could try System.runas()
   Unfortunately that works only for test class.
4. Finally achieved it with response synchronously through the following solution :-
    a. Created 2 apex:commandbuttons :-
        1. <apex:commandButton value="Save and Send Activation Email" action="{!CreateContact}"  rerender="junkpanel" oncomplete="callSimulateUserSave()">
            Note :- Oncomplete will not work if you dont have a rerender attribute. So just try refreshing a junk panel.
        2. <apex:commandButton value="SimulateUserSave" id="SimulateUserSave" action="{!SaveUser}"  style="display:none;margin-left:5px;"/>
        Have a junk panel as well just for rerendering  :-
        <apex:outputPanel id="junkpanel"></apex:outputPanel>
    b. Created this javascript function which is called from first button's oncomplete and clicks the second button :-
                function callSimulateUserSave()
                    // Specify the id of the button that needs to be clicked. This id is based on the Apex Component Hierarchy.
                    // You will not get this value if you dont have the id attribute in the button which needs to be clicked from javascript
                    // If you have any doubt in getting this value. Just hover over the button using Chrome developer tools to get the id.
                    // But it will show like theForm:SimulateUserSave but you need to replace the colon with a dot here.
                    // Note :- I have given display:none in the style of the second button to make sure that, it is not visible for the user.
                    var mybtn=document.getElementById('{!$Component.theForm.SimulateUserSave}');                
    c. Apex Methods CreateContact and SaveUser are the pagereference methods which contains the code to create contact and user respectively.
       After inserting the user inside the second apex method you can just set some public Properties in the page,
       for ex:- created userid to get the user details and display in the page to show the acknowledgement to the users that the User is created.

Wednesday, August 17, 2011

The protocol 'net.msmq' is not supported

The protocol 'net.msmq' is not supported

If you get this error you need to do the following steps :-

You can just do the following if everything is right in place for you :-

1. Open IIS -> Your Website -> Advanced Settings -> Enabled Protocols

       This will have only http. You need to add net.MSMQ separating it by a comma like this : http,net.MSMQ

2. If it still doesnt work you need to do the following for activating MSMQ in your machine :-

  • Open visual studio command prompt as administrator
  • Paste the below line as a single command and press enter

%windir%\system32\inetsrv\appcmd.exe set site "Default Web Site" -+bindings.[protocol='net.msmq',bindingInformation='localhost']

(Remember: If you have deployed it in a different Site in IIS you need to change the site name in the above command) 


If you are still having problems you can follow the steps given in the below URL :-

Saturday, April 16, 2011

How to Enable USB Port through Regedit in Windows if it is blocked

1. Click Start, and then click Run. 2. In the Open box, type regedit, and then click OK. 3. Locate, and then click the following registry key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\UsbStor 4. In the right pane, double-click "Start". 5. In the Value data box, type "3" (without quotes), click Hexadecimal (if it is not already selected), and then click OK. Note :- if 3 is entered it will open the port and if 4 is entered it will close the port. 6. Quit Registry Editor.

Thursday, December 2, 2010

An Annoying bug in salesforce winter 11 release and how to delete apex classes and triggers in production

There is an annoying bug in salesforce winter 11 release


System.QueryException: List has no rows for assignment to SObject

Class.MyProfilePageController.testSave: line 78, column 35 External entry point


This is also the method for deleting Apex Classes and Triggers from Salesforce Production


(Note : You cannot delete an apex class or Trigger from Salesforce Production through changesets. Only way is to use IDE)


1. Install and Open IDE (don't install if you have already done)

2. Create a new Project connecting to Sandbox (providing the credentials for sandbox including the security token)

3. Delete the MyProfilePage page and the MyProfilePage meta xml under Pages and also delete the MyProfilePageController class and the MyProfilePageController meta xml under classes. (Right click delete). It will ask you whether you need to delete from the sandbox server too. Say No. Click Ok.

4. Right click on Src or the root folder of your project -> -> Deploy to server

5. Provide production server credentials

6. from the list shown Deselect all

7. Sort by type

8. Navigate to Pages and Check the checkboxes next to MyProfilePage page and the MyProfilePage meta xml (these will be shown in red as you have deleted  it locally )

9. Navigate to classes and Check the checkboxes next to MyProfilePageController class and the MyProfilePageController meta xml (these will be shown in red as you have deleted  it locally )

10. Click Validate and check whether it gives success. (It will.. if u dont have any problems in any other class )

11. Then Click Next. It will delete the salesforce class and page which has the bug and you can proceed with your further deployments. ( In case if it dint succeed, try deleting the above mentioned 4 files (in point no. 3) from the folder where you have mapped the sandbox project and run through all the steps from the point no. 4).

 Here are the supporting links :-

 Salesforce is still working on it to fix it from their end during the next release.


Wednesday, October 27, 2010

faultcode:'sf:INSUFFICIENT_ACCESS', faultstring:'ClassName: no access allowed to this class.', Salesforce

faultcode:'sf:INSUFFICIENT_ACCESS', faultstring:'ClassName: no access allowed to this class.',  Salesforce

Are you getting the above error in salesforce while the javascript is getting executed ?

the reson is the user doesnt have sufficient access to the Apex class.

Do the following and the issue will get resolved.

Go to Setup->Develop->Apex Classses-> open the Class -> Click Security Button -> Add access to the profile from which you are trying to perform the action.


How to overcome - Not able to delete feed tracked changes (Chatter) in Salesforce

I struggled for more than a month to overcome this error

Not able to delete feed tracked changes when the chatter was enabled in Salesforce environment (Sandbox)

and my sandbox size was just 10 MB and it has occupied around 11.3 MB for these feed tracked changes whenever i was

loading account or contact records in the sandbox thru data loader or thru enterprise wsdl.

So i was not able to create even a single record for testing.

Then deleted all accounts and contacts and then tried. Inspite of that it dint work.

At last, I refreshed the sandbox and the issue was resolved.

I got my full 10 MB free space :)




Copyright © sathya