Send/Receive message To/From two running application

There are different ways to share information between 2 processes. First at all you have to think if both processes are going to be always in the same machine or not when your application scales up. Different Machines Use TCP/UDP socket connection (Can be the quickest solution) Use MSMQ Use WebServices, WCF or Restful Web … Read more

socket.io private message

No tutorial needed. The Socket.IO FAQ is pretty straightforward on this one: socket.emit(‘news’, { hello: ‘world’ }); EDIT: Folks are linking to this question when asking about how to get that socket object later. There is no need to. When a new client connects, save a reference to that socket on whatever object you’re keeping … Read more

Fix Cordova Geolocation Ask for Location Message

In addition to the answer from DaveAlden, I had to remove the old version of the geolocation plugin and add the new one. Then I had to remove/add the Cordova iOS platform. Only then could I add NSLocationWhenInUseUsageDescription to the .plist file with success. First, remove/add the geolocation plugin: cordova plugin rm org.apache.cordova.geolocation cordova plugin … Read more

Win32: My Application freezes while the user resizes the window

There are a number of modal operations that happen on windows. Win32 Modal operations refer to functions that put an application into a “mode” by starting their own event processing loop until the mode finishes. Common application modes include drag and drop operations, move/size operations, anytime a dialog pops up that needs input before the … Read more

Git commit with no commit message

git generally requires a non-empty message because providing a meaningful commit message is part of good development practice and good repository stewardship. The first line of the commit message is used all over the place within git; for more, read “A Note About Git Commit Messages”. If you open Terminal.app, cd to your project directory, … Read more

jQuery show for 5 seconds then hide

You can use .delay() before an animation, like this: $(“#myElem”).show().delay(5000).fadeOut(); If it’s not an animation, use setTimeout() directly, like this: $(“#myElem”).show(); setTimeout(function() { $(“#myElem”).hide(); }, 5000); You do the second because .hide() wouldn’t normally be on the animation (fx) queue without a duration, it’s just an instant effect. Or, another option is to use .delay() … Read more