I packaged a visualforce page and its controller but the code is still able to be seen. How can I hide my code? Thanks in advance.
121369
I developed my app,   The controller is complete, and also the visualforce, but I need to hide my code at installing the app in another salesforce account.  How can I make this possible?  Is there any way to hide both codes? The apex and the code behind?   Thanks in advance.
3969
A question with attachments, screenshots and/or long code, makes it vertically long and often difficult to read fast.  It would be nice to have a new kind of format, such as 'hideable', with a graphic button or a '+' / '-' sign, so you can add additional details, visible only on a click.
92058
Currently it's impossible to see the bottom line of code snippets because the horizontal scroll bar is positioned over the top of them ():    Please could you add some bottom padding so that it's possible to view the last line of code snippets?  Unlike  which is a support question with a workaround answer, this is a feature request suggesting a clear action hence not a duplicate.
120422
Sometimes questions are posted here that would best be answered by helping the questioner learn how to do their own debugging. (Remember that ?) I'd like to have something to link to on this site for that purpose.  So please provide a step by step recipe for how to output basic debug information from Apex code in triggers or controllers for inexperienced Salesforce developers.  Also see .  PS  If/when this  appears Apex may/should become as easy to debug as other languages.  PPS Looks like Winter '16 has the interactive debugger for Apex though it is something that has to be opted in to and paid for (and has yet to be widely tried). See
1273
I noticed that sometimes my code gets highlighted in different colors when rendered.   What is syntax highlighting? How does it work? Why isn't my code being highlighted correctly? How do I report a bug or request a new language? How do I use syntax highlighting? What languages are currently available on Stack Exchange?
15575
Many times I see that URL extensions are hidden (e.g. .html, .php), but not all websites do this.  Why do webmasters hide the extension? Is it for security, for the URL to look cleaner, or for some other purpose?
18015
It can be sometimes bothersome when, in the Discussion (Comments) dashboard, where the admin can see a list of comments, moving the mouse over a link will cause a preview of that link. Sometimes the preview gets in the way of looking at the comment. This is especially true with spam comments.  And I am also concerned that a link to a page/site that had some 'bad' code would cause a compromise of my site.   Is there a way to disable this 'feature'? Not sure where it is coming from.
80219
How do I hide just the "HOT META POSTS". I don't intend to engage much in the moderation of Stack Exchange sites, so most of the content is irrelevant to me, how do I hide it?  I looked into just adding a user style sheet filter based on the id or class of that element, but then the whole community-bulletin box gets hidden, which might hide important site level messages/broadcasts.   Specially since the DOM structure of the "HOT META POSTS" is not different than the "FEATURED ON META" section, i.e. both use same classes and no id is provided.
17049
I'm trying to post a sample of code that looks like this:        Look at all of those comments, and it still won't allow me post! What am I doing wrong?
38897
I'm trying to hide a div dynamically. This works for me. But when I try to do a nested div. It suddenly doesnt work anymore. Am I missing something?  Component(Working)  &lt;ui:button label="Toggle" press="{!c.toggle}"/&gt; &lt;div aura:id="text"&gt;Now you see me&lt;/div&gt;   Component(Not Working)  &lt;ui:button label="Toggle" press="{!c.toggle}"/&gt; &lt;div&gt;     &lt;div aura:id="text"&gt;Now you see me&lt;/div&gt; &lt;/div&gt;   Controller  toggle : function(component, event, helper) {         var toggleText = component.find("text");         $A.util.toggleClass(toggleText, "toggle");     },   Style  .THIS.toggle {     display: none; }
93627
I'm looking for a technique or tool which we can use to obfuscate or somehow secure our compiled c# code. The goal is not for user/data security but to hinder reverse engineering of some of the technology in our software.   This is not for use on the web, but for a desktop application.  So, do you know of any tools available to do this type of thing? (They need not be free)  What kind of performance implications do they have if any?  Does this have any negative side effects when using a debugger during development?  We log stack traces of problems in the field. How would obfuscation affect this?
49834
Do the SO admins have any plans to release the underlying code for SO at all? I appreciate that the code may be part of their competitive advantage, but it strikes me that the underlying system would work for any topic, not just programming.  I am not advocating this, just curious really, but figured it might be under consideration as most of the value in SO is in the questions and answers, which have been released under a relatively open CC license.
72121
I created a controller which looks like this  public with sharing class EventRegistrationController {      // A CONTROLLER FUNCTION     // FUNCTION RETURNS A LIST OF cSession      public List&lt;cSession&gt; getSessions() {            //DO STUFF       }     //A PUBLIC CLASS WITHIN CONTROLLER    @TestVisible public class cSession      {         public Session__c con {get; set;}         public Boolean selected {get; set;}          //This is the contructor method.          public cSession(Session__c c) {              con = c;             selected = false;         }     }  }   I need to write a test code for the controller, how can I create a list of cSession and call getSession function?
107559
I am adding cookie to my page in the controller using  ApexPages.currentPage().setCookies(new Cookie[]{CookieName});  When am trying to get the code coverage, my test class is not covering the above line.  How to get the code coverage for the above setcookie method in the test class.
26861
How can I test the below controller and get greater than 0% coverage?  My controller class looks like this:  public with sharing class EmployeeController  {     public EmployeeController(ApexPages.StandardController controller)     {      }      public PageReference pdf1()     {          return Page.Employee_PDF;     }         public list&lt;Certification__c&gt; certification      {         get         {                 certification = [SELECT Date_Certified__c, Name, Principle__c, Year_Certified__c FROM Certification__c WHERE Employee__c =:ApexPages.CurrentPage().getparameters().get('id')];                 return certification;         }         set;      }      public list&lt;Project_Experience__c&gt; proj         {                 get                 {                         proj = [SELECT Client__c, Duration__c, Location__c, Position__c, Project_Description__c, Project_Name__c, Responsibilities__c FROM Project_Experience__c WHERE Employee__c =:ApexPages.CurrentPage().getparameters().get('id')order by Project_End_Date__c desc];                         return proj;                 }                 set;         }      public list&lt;Training__c&gt; training     {         get         {                 training =[SELECT Location__c, Name, Principle__c, Trainer__c, Year__c FROM Training__c WHERE Employee__c =:ApexPages.CurrentPage().getparameters().get('id')];                 return training;         }         set;     }          public list&lt;Employee__c&gt; emp         {                 get                 {                         emp = [SELECT Name, Sex__c, Foreign_Language_Proficiency__c, Nationality__c, Qualifications__c, Tools__c FROM Employee__c where Id = :ApexPages.CurrentPage().getparameters().get('id') ];                         return emp;                 }                 set;         }    }   Here is my current test class:  @isTest private class EmployeeControllerTestClass2 {     static testMethod void myUnitTest()      {        Employee__c emp = new Employee__c(Name = 'empTest',Employee_Status__c='Active' );         insert emp;          Project_Experience__c project = new Project_Experience__c (Employee__c = emp.id, Project_Name__c='Indosat');         insert project;         Training__c training = new Training__c (Employee__c = emp.id, Name='Salesforce Adm 201');        insert training;           PageReference pageRef = Page.Employee_Pages;         Test.setCurrentPage(pageRef);         ApexPages.Standardcontroller sc = new ApexPages.Standardcontroller(emp);         ApexPages.currentPage().getParameters().put('Id',emp.id);          Test.StartTest();     } }
25798
I posted a question and a couple of respondents asked for the source code. I could only post portions of the code.  If attachments were allowed I could have uploaded a .zip file with the whole application.  Will this be a feature in SO?
101849
I have a toggle map (like ) with sublayers. I want all the sublayers to be visible when you open the map, but I would like to hide some sublayers when the toggle buttons are clicked. I've tried adding a hide sublayer code into the LayerActions section of my code, but it's not hiding the sublayers (the button does the same function no matter whether the 'layer.getSubLayer(1).hide()' is there or not). This is the code I'm using:  var LayerActions = {  all: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet");   return true;  },  2011: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2011') AND year IS NOT NULL");   return true;  },  2012: function(){   layer.getSubLayer(1).hide();   sublayers[0].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2012', '2012/2013') AND year IS NOT NULL");   return true;  } }   $('.button').click(function() {  $('.button').removeClass('selected');  $(this).addClass('selected');  LayerActions[$(this).attr('id')](); });   Could someone point me to where I'm messing up with my code? Or is it not possible to hide a sublayer using the LayerActions?    I'm now loading my layers differently, and this is my new code:   cartodb.createLayer(map, url1)     .addTo(map, 0)     .done(function (layer) {         console.log('added url1 ',url1);         cartodb.createLayer(map, url2)         .addTo(map, 1)         .done(function (layer) {             console.log('added url2 ',url2);         })         .error(function (){             console.log('problem adding 2nd layer');         });     })     .error(function () {         console.log('There is something wrong with requested data!');     });   So if I wanted to hide the first layer that's loaded (url1) and select only certain points from the second layer (url2), how would I code that in my LayerActions section? I've tried the following, but nothing changes when I click the buttons:  var LayerActions = { all: function(){   layer.getLayer(0).hide;   layer[1].setSQL("SELECT * FROM spreadsheet");   return true; }, 2011: function(){   layer.getLayer(0).hide;   layer[1].setSQL("SELECT * FROM spreadsheet WHERE year IN ('2011') AND year IS NOT NULL");   return true; }, ...