How i can disable web preview? - bots

In skype, when i send message that contains some url and have setting
'textformat' => 'markdown'
skype by default create web preview. How i can handle that behavior?

You need to go the Tools > Options > IM & SMS > IM appearence and then you can uncheck the "Show link previews" option.

Related

Security Concerns on Enable of Initialize and Script ActiveX Controls not Marked as Safe for Scripting Settings from IE from Security - Trutsted Zones

We have a requirement to open Google Chrome Browser from Internet Explorer 8. To do this, we are using JavaScript ActiveXobject with the following code.
Code Snippet:
var URL ="http://www.google.com"
var chromeCommand = "Chrome --app="+URL+" --allow-outdated-plugins";
var shell = new ActiveXObject("WScript.Shell");
shell.run(chromeCommand);
For this, we need to set Enable "Initialize and Script ActiveX Controls not Marked as Safe for Scripting" radio button from Tools->Internet Options->Security Tab->Trusted sites -> Custom Level ...
Is this enable setting will harm anything on security concerns?
Please let me either we can open Chrome browser in this way or not, or else any alternative to do this.
Will this code work for Linux OS Internet Explorer?

How do I change the default home page of my gitlab installation

By default my gitlab homepage starts www.mydomain.com/users/sign_in. I would like to change this to show 'www.mydomain.com/public' instead. How do I configure this?
Setting custom startpage for non-logged in users:
From "Admin Area" goto the gear on the left and choose "Settings"
Find parameter "Home page URL" and set it to www.mygitlab.com/explore.
Optional set "After sign out path" to same url
Click save
Tested with version is 8.14.4 CE
This answer was written while running Gitlab 6. Any instructions may be outdated.
The feature request has been declined so you have to do it on your own and change the source code.
Full tutorial here: Kovah.me DevBlog
Short HowTo:
Just open
gitlab/app/views/layouts/devise.html.haml
and change what you want.
For example you could replace %h1 GitLab with your own logo. Use the image tag for it: %img{:src => "/source/to/image.png"}
But attention! You have to use spaces to indent all elements! And make a backup before running any upgrades.

How to customize the title link of an object when publishing a open graph action?

I have successful published an action with an object on FB Open Graph. The object includes picture, title (is a link) and description. When I click the title link, it goes to the page from my web server which hosts the data of all the meta tags.
My question is how I can customize this link to open my facebook app instead of opening the object web page.
I have seen many open graph contents. When I click the object title, it asks me to install the app. I just want to do the same thing.
Just began to do facebook integration. It might be a too easy question, but I really appreciate if you can help.
Go to your Facebook App Dashboard:
https://developers.facebook.com/apps//summary
If your app is iOS, fill out the Native iOS App settings:
Bundle ID: Your bundle ID
Facebook Login: Enabled
Deep Linking: Enabled
For more details, see: https://developers.facebook.com/docs/howtos/link-to-your-native-app-ios-sdk/
If your app is Android, fill out the Native Android App settings:
Package Name: Your launching activity's package
Class Name: Your launching activity's class (full class name)
Facebook Login: Enabled
Deep Linking: Enabled
For more details, see: https://developers.facebook.com/docs/howtos/androidsdk/3.0/link-to-your-native-app/

Security warning on custom Preview Handler

I wrote my own preview handler on .NET for Outlook 2007/2010 and XP/Vista/Windows7
When an e-mail with an attachment requires my handler to visualize it an alert says:
"you should only preview files from a trustworthy source"
I tried signing the EXE and the alert is still there.
The answer is setting this key on the registry: HKCR\Software\Microsoft\Office\Previewers\\PONTState = 1

Error in SPUtility send email

I am trying to send an email in the button click event in the webpart.However, the email sending is failed and error is logged in both sharepoint logs and event viewer of the machine.
The error is : Cannot connect to SMTP host
Outgoing email settings in central admin is already configured. Alerts are also working fine.
Below is my code:
StringDictionary headers = new StringDictionary();
headers.Add("to", "someone#abc.com");
headers.Add("from", "MySharePointEmail#myfatblog.co.uk");
headers.Add("subject", "How to use SendEMail from SPUtility");
headers.Add("content-type", "text/html");
string bodyText = "This is the body of my email, in html format.";
SPUtility.SendEmail(SPContext.Current.Web, headers, bodyText);
Thanks in advance
Try running your code without the System Account (if you are).
Try also disabling the LoopbackCheck:
To set the DisableLoopbackCheck registry key, follow these steps:
Click Start, click Run, type regedit, and then click OK.
In Registry Editor, locate and then click the following registry key:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa
Right-click Lsa, point to New, and then click DWORD Value.
Type DisableLoopbackCheck, and then press ENTER.
Right-click DisableLoopbackCheck, and then click Modify.
In the Value data box, type 1, and then click OK.
Quit Registry Editor, and then restart your computer.
I got that fixed. Anti virus was causing the problem. But i am wondering how is SharePoint able to send mail then?

Resources