Communities created via the Social Business SDK not listed under "Communities" menu options; only found via Search - ibm-sbt

After I create a Community using Java code based on the samples, I can find that Community by searching in "All Connections", but if I select the Communities menu, then any of the sub-menu options: I'm an Owner, I'm a Member, Public ... the new Community is not listed. Even after hours or days it doesn't appear. Is there a parameter in the API that I need to set, or is this a Connections configuration setting issue ?

Chatted with Swati...
This code works for me.
https://greenhouse.lotus.com/sbt/SBTPlayground.nsf/JavaSnippets.xsp#snippet=Social_Communities_CreateCommunity
What version of Connections do you have?
Did you check to see if the Community Name already exists?
This code works for me... you'll have to post your code for comment (or a sample of the code)
CommunityService communityService = new CommunityService();
Community community = new Community(communityService, "");
community.setTitle("Test Community 1ab" + System.currentTimeMillis());
community.setContent("Test Community updated by Update Community Java snippet");
community.setCommunityType("private");
List<String> tags = new ArrayList<String>();
tags.add("tag1");
tags.add("tag2");
community.setTags(tags);
community = community.save();

Related

How should I start with SonarLint for C# Projects

I am learning SonarLint plugin but finding very difficult and not able to understand how it works.
I have installed SonarLint for VS2015 Community Edition and then as per instructions i was trying to bind any random project from Team Connect. But then I am not able to see those fancy block which will tell me something like "Null reference exception will occur.."
Please guide me what are the steps need to perform while working with SonarLint for C# projects to perform code analysis.
Thank You
SonarLint gets installed outside of any particular project. You install the extension either through VS Extensions or by downloading it from here - https://www.sonarlint.org/visualstudio/index.html. Once it's installed, restart VS and you should be good to go. I'd create a sample project outside of any existing projects to play around with the features, that way you're not fighting any kind of technology stack weirdness. One way to verify the linter is working (shown to me by a coworker) is to put in an if statement like the following:
var testVar = false;
if (testVar) {
testVr = true;
}
You should get a warning in the if-block. Good luck!

Telerik Data Access generate classes automatically

Until the recent release I was happily using Telerik Data Access in a database first way:
Created the database schema in external DB designer
Generated a fluent model in Visual Studio
Whenever I did a database change I either re-ran the generation or updated models via visual designer depending on the magnitude of the change
After the last release the templates I used for the generation are gone (as is the visual designer) and any attempt at Googling the solution takes me to a Telerik documentation page saying the info is deprecated.
I'm working with large existing databases (100+ tables) and there's no way I'm coding the models by hand.
What are the current options for auto generating the models?
I got a reply on Telerik forums. Simply said there's nothing I can do now and have to wait til/if they develop a solution. For all that are interested, please vote on the feature request.
Here's the reply:
Thank you for your feedback.
We have already created a new feature request (http://feedback.telerik.com/Project/114/Feedback/Details/163155-generation-of-fluent-models-with-data-access-q2-2015-and-higher) to create a code generating tool to create your fluent models based on your database schema. You are welcome to cast your support vote for the item.
I cannot give you any time frame when we will be able to ship such tool, but I will make sure to notify you as soon as we have a public release.
Regards,
Viktor Zhivkov
Telerik
The feature is still not available. But maybe this is an alternative to being stuck with VisualStudio 2013.
Owners of VisualStudio Enterprise have another option. They can modify the code generation templates and generate the fluent metadata and context code from an UML class diagram.
I invested in checking the MSDN documentation and created a VS extension which I open-sourced.
Please check https://github.com/bdongus/UMLExtensions for details. Feel free contribute.

How to link community with wiki pages programatically using IBM SBT

Can anyone please tell me how to link the community while creating wiki pages programmatically using javascript. While working with a wiki on the playground, wiki pages are getting created but it is not under any community. Community id is null.
Where to configure the community while creating a wiki page programmatically using javascript.
Thanks in Advance,
You need to set the community id for the wiki like below
var wiki = wikiService.newWiki();
wiki.setTitle(title);
wiki.setCommunityUuid(communityId);
wikiService.createWiki(wiki);

Configure VS 2010 Help for a specific subject

Using VS2008, you could set Document Explorer to limit your search to specific subjects using the Technology dropdown, which made for finding info on a specific subject very easy, as it was limited to a subset of available subject. How is the accomplished in the new VS2010 help?
The VS2010 help at the moment, is very hazy. When I search for Task, or task, or c# task. re the new Task library in .net, it returns a whole bundle of irrelevancy...
Any ideas.
Apparently the Document Explorer is not compatible with VS 2010. There is an extension called H3Viewer developed by a third party which apparently provides similar functionality.
Info stolen from here:
http://www.codeproject.com/Messages/3449925/Re-VS2010-documentation-in.aspx

What are the new features of C# v4.0? [duplicate]

This question already has answers here:
Closed 13 years ago.
Possible Duplicate:
New Cool Features of C# 4.0
Hello,
There are several(many) questions at SO about "what do you want in C# v4.0?". This question is different,I'm not asking you what you'd like to see in the new version of Microsoft's baby,but what is already in there since Microsoft Visual Studio 2010 Beta 1 is already out.
I myself found only optional parameters implemented in VS2010.
void foo(int a,int b = 10)
{
if(b != 10) throw new Exception();
}
void Main(string[] args)
{
foo(5);
foo(5,6);
}
Its very hard for me to find every single thing in that huge language,because I don't know what's planned to be implemented.All I've seen is those "What do you want in C# 4?" questions,which doesn't help my progress to grow up.
What new feature have you found in VS2010 Beta1?
In C# Future page # MSDN you'll find a documentation of the new features which were added to the Beta1 version of C# 4.0, along with samples.
You are really asking two separate questions:
What new feature have you found in
Vs2010 Beta1?
This would be new IDE features, not language features. I do not know much about these, but I do know that the IDE has been rewritten in WPF and will have better support for multi-monitor. There is an article about other new features here. If you are doing XML/XSLT, the new XSLT debugging feature is neat.
What new features are in C# 4.0 ?
The biggest new feature is propably dynamic programming via the "dynamic" keyword. There are also optional parameters, which you mention yourself.
Beyond that, the most important new feature is likely to be contravariance and covariance in generics. I will not try to explain it here, since it would be quite lengthy, but do see Eric Lippert's blog for a thorough explanation. He has a whole series on the subject, and it gets explained in detail.

Resources