I am using Quickblox sdk to integrate chat into my app.  I have created the Quickblox Session and also logged in user into "Chat Service".  But, when I try to send a message to the "Recipent" the application crashes, throwing following exception:     Attempt to invoke virtual method 'void   com.quickblox.chat.QBAbstractChat.sendMessage(com.quickblox.chat.model.QBChatMessage)'   on a null object reference    Given below is my code:      QBChatMessage chatMessage = new QBChatMessage();     chatMessage.setBody(strMsg);     chatMessage.setProperty(PROPERTY_SAVE_TO_HISTORY, "1");     chatMessage.setDateSent(System.currentTimeMillis() / 1000);     chatMessage.setMarkable(true);       try {         qbChatDialog.sendMessage(chatMessage);     } catch (Exception e) {         e.printStackTrace();       }
What are Null Pointer Exceptions (java.lang.NullPointerException) and what causes them?  What methods/tools can be used to determine the cause so that you stop the exception from causing the program to terminate prematurely?
Server 2012 Core (no GUI): Remote Server manager not working I am trying cmd --> MMC --> Server Manager and then connecting to my Server 2012 no GUI  but i keep getting the following error The WinRM client cannot process the request  I am unable to upload images right now  This is not related to other post "How to Remote Manage Windows Server 2012 in Server Manager?" because title and description of that post is quite different from what i am asking How to programmatically send SMS on the iPhone? How to determine which form has been submited and to validate them in a servlet How to make a different font and color of text in labels? Is it possible to make a bold or italic, and change the color of individual words Label?  Example: the first line is bold in red text, font 12, second row 10 green italic font How to export data with tab delimiters using Apex Data Loader? The internet vaguely says that this is possible. I need this feature to export translation values from a custom object and then import this back into Salesforce using translation workbench. Translation workbench accepts:   Field delimiter: Tab Character delimiter: None   How can we achieve a tab delimited data export from a custom object using Apex Data Loader? Abstract class with all concrete methods I'm on 10.9, and I had been using internet sharing successfully again for the first time since Lion. Today though, it just decided to stop working again.  Network layout:  Modem -ethernet-&gt; Router -ethernet-&gt; Mac Pro -ethernet-&gt; MacBook Pro Retina   The internet works fine on the Mac Pro, but it is no longer forwarding the proper DHCP settings to the MacBook.  Previously, the MacBook would get the IP address of 192.168.2.12, and was able to surf the web fine. (Though it wasn't able to connect to any AirPlay/AirPrint devices while on the ethernet interface)  Sometime today, a setting got messed up, and I'm not sure how to fix it or what setting it is.  The MacBook now has a "Self-assigned" IP of 169.254.121.24, even though it is set to use DHCP. The ethernet port on the Mac Pro that the MacBook Pro is connected to is showing a "Self-assigned" IP of 169.254.36.53, even though it is set up to use DHCP as well.  The internet sharing options appear to be correct: share connection from Ethernet 1 to Ethernet 2.  But alas, for no apparent reason, I'm not getting internet access. We are a team with three orgs. Development, UAT and Production.  We are trying to move away from changesets and manual copying and use various deploy mechanisms or scratch orgs but we cannot deploy org wide email addresses since it is not supported in the metadata api.   The problem is that since addresses cannot be deployed, workflows referencing them cannot either. And if we dont deploy all workflows some tests will fail and the environment will be wrong.  I would appreciate any help with this issue, thanks I have a Dell Inspiron 1525 laptop and I am planning on purchasing a mac mini, new version , I am tight on money for a while and want to use my current laptop screen as monitor for mac mini, I just want to know if it is at all possible to do, I have windows 7 and ubuntu 11.04 installed in my laptop, and I don't really care if need to wipe them out, or purchasing a monitos is the only option left, also I am planning to use it for coding and stuff, so VNC is probably not a good choice. Can I dump my non-Retina Images for a iOS7 only app? In what order does WordPress load plugin files? In what order are plugins loaded in WordPress?   And within a particular plugin's folder, what order is followed for loading? "See somebody do" and "see somebody doing" Salesforce DX daily limits As a package developer scratch orgs look like a great solution for automated CI testing and Salesforce has even done some great demos using Github and TravisCI to show automatically testing code using the DX CLI. However, in reviewing the details of DX, it looks like the limit is currently set to 50 orgs a day. If we want to test pull requests against 5 different org configurations, this limits us to 10 test runs a day. On a moderately sized team, this is going to be a tough limit to deal with. Has anyone had any success in working around this limit (or heard of any planned limit increases in the future). My initial thoughts are:   Get Salesforce to increase the limit (does not seem likely since this is a very young feature) Reuse scratch orgs for a period of time (this would require a good way to clean them and some savvy CI build code) Run fewer tests (not going to go over well the first time a bug for a specific org configuration slips through) Inheriting constructors Why does this code:  class A {     public:          explicit A(int x) {} };  class B: public A { };  int main(void) {     B *b = new B(5);     delete b; }   Result in these errors:   main.cpp: In function ‘int main()’: main.cpp:13: error: no matching function for call to ‘B::B(int)’ main.cpp:8: note: candidates are: B::B() main.cpp:8: note:                 B::B(const B&)   Shouldn't B inherit A's constructor?  (this is using gcc) How do I remove Windows but keep Ubuntu? /etc/shadow date of last password change—UTC or local time? man 5 shadow gives the following description of the third field in each line:  The date of the last password change, expressed as the number of days since Jan 1, 1970. The value 0 has a special meaning, which is that the user should change her pasword the next time she will log in the system. An empty field means that password aging features are disabled.  Does this refer to times in UTC or the local timezone? In particular, if I want to calculate comparable numbers using something like $(( $(date +%s) / 86400 )), do I need to pass date the -u option? Is there a built-in checksum utility on Windows 7? Is there a built-in checksum/hash utility on Windows 7? What is the order when doing $x^{y^z}$ and why? Is it safe to put hot food in the fridge? I heard that putting really warm food in the fridge right after cooking it is not the right thing to do. It might cause bacterial growth? Is this true? Is there any way to tinker with the iPhone SDK on a Windows machine? Are there plans for an iPhone SDK version for Windows?  The only other way I can think of doing this is to run a Mac VM image on a VMWare server running on Windows, although I'm not too sure how legal this is.