Sharing memory between two processes (C, Windows)

Although windows supports shared memory through its file mapping API, you can’t easily inject a shared memory mapping into another process directly, as MapViewOfFileEx does not take a process argument. However, you can inject some data by allocating memory in another process using VirtualAllocEx and WriteProcessMemory. If you were to copy in a handle using … Read more

How do you include hashtags within Twitter share link text?

It looks like this is the basic setup: https://twitter.com/intent/tweet? url=<url to tweet> text=<text to tweet> hashtags=<comma separated list of hashtags, with no # on them> This would pre-built a tweet of: <text> <url> <hashtags> The above example would be: https://twitter.com/intent/tweet?url=http://www.example.com&text=I+am+eating+branston+pickel+right+now&hashtags=bransonpickel,pickles There used to be a bug with the hashtags parameter… it only showed the first … Read more

How to successfully implement og:image for LinkedIn

This answer I found on LinkedIn forums might be of help to you: Guys, I’ve spent a whole day trying different things. What worked for me is using the mata [sic] tags as following: <meta prefix=”og: http://ogp.me/ns#” property=”og:title” content=”{Your content}” /> <meta prefix=”og: http://ogp.me/ns#” property=”og:type” content=”{Your content}” /> <meta prefix=”og: http://ogp.me/ns#” property=”og:image” content=”{Your content}” /> … Read more

Android share intent for facebook- share text AND link

I just built this code and it’s working for me: private void shareAppLinkViaFacebook(String urlToShare) { try { Intent intent1 = new Intent(); intent1.setClassName(“com.facebook.katana”, “com.facebook.katana.activity.composer.ImplicitShareIntentHandler”); intent1.setAction(“android.intent.action.SEND”); intent1.setType(“text/plain”); intent1.putExtra(“android.intent.extra.TEXT”, urlToShare); startActivity(intent1); } catch (Exception e) { // If we failed (not native FB app installed), try share through SEND String sharerUrl = “https://www.facebook.com/sharer/sharer.php?u=” + urlToShare; Intent intent … Read more

iOS share image AND text to WhatsApp

You can use UIActivityViewController to share image , text or URL .Here is a small example : NSString *textToShare = @”Enter your text to be shared”; UIImage * image = [UIImage imageNamed:@”imagename”]; NSArray *objectsToShare = @[textToShare, image]; UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:objectsToShare applicationActivities:nil]; [self presentViewController:activityVC animated:YES completion:nil]; Run the above code and select whats … Read more