Cannot resolve method with (android.content.context)? - picasso

Cannot resolve method with(android.content.context)
Picasso.with(context).load(url).placeholder(R.drawable.placeholder).into(thumbnail);
What will be the problem? The error shows "With".

If you are using version 3.0.0-SNAPSHOT or 2.71828 you must use get() instead of with().
Picasso.get().load(url).placeholder(R.drawable.placeholder).into(thumbnail);
There are no release notes yet but you can see the commit here: Commit

Related

Possibly Bug in Websharper Zafir-Libraries (Beta)

I'm trying to create a Sitelet with SiteletBuilder in C#:
return WebSharper.Sitelets.Content.Page(...)
However, the class Websharper.Sitelet contains Content both as Struct and Class.
So, this does not compile.
Versions of Zafir-Libraries are
Zafir 4.0.152.29-beta5
Zafir.CSharp 4.0.152.29-beta5
Zafir.Html 4.0.56.95-beta5
Zafir.UI.Next 4.0.102.33-beta5
How to reference WebSharper.Sitelets.Content proberly?
Or is this indeed a bug?
Thanks for the report, created ticket: https://github.com/intellifactory/websharper/issues/645
I have been testing with having using WebSharper.Sitelets; and then using with shorter form Content.Page(...). C# can resolve this for some reason, although the name conflict indeed exists in WebSharper.Sitelets.dll

SpreadsheetGear.shapes.IPictureFormat's getImage method is not available for Version7.4.1.104

I am migrating Spreadsheet Gear 6.0.3.190 to 7.4.1.104. I am getting "IPictureFormat doesnot contain the definition for GetImage" Can any one help me to solve this.
This IPictureFormat.GetImage is removed from the core API and replaced with SpreadsheetGear.Drawing.Image.GetImage in SpreadsheetGear2012.Drawing.dll.

I got error message "operation is not valid due to the current state of the object" when I try to generated specflow Step Definition Report

I got above error message when I try to use specflow.exe to generate specflow Step Definition Report, the command I used is:
specflow.exe stepdefinitionreport ..\\..\\..\MyProject\MyProject.csproj"
Any ideas and suggestions, Thank you!
I had this issue when I was using StepDefinition instead of Given-When-Then in my step definitions. By switching back to Given-When-Then it started working.
Instead of using the [StepDefinition(#"...")] use a [Given(#"...")] for example:
[Given("I take a screenshot")]
[When("I take a screenshot")]
[Then("I take a screenshot")]
public void takeScreenshot()
{
screenShots.Add(((ITakesScreenshot)driver).GetScreenshot());
}

TwitterCredentials.SetCredentials from tweetinvi not found

i installed tweetinvi but the TwitterCredentials.SetCredentials is not found.
Install-Package TweetinviAPI
How can i solve this.
You're using an old Tweetinvi code.
Tweetinvi break compatibility since version 0.9.9.5. Instead of "TwitterCredentials.SetCredentials" you should now use "Auth.SetUserCredentials"
plaese note that the parameters order has also been changed!
Try this:
Auth.SetUserCredentials("CONSUMER_KEY", "CONSUMER_SECRET", "ACCESS_TOKEN", "ACCESS_TOKEN_SECRET");
For more options, see https://github.com/linvi/tweetinvi/wiki/Credentials
Try this one:
TwitterCredentials twitterCredentials = new TwitterCredentials("<consumerKey>", "<consumerSecret>", "<accessToken>", "<token_secret">);
Hope this will help.

Deprecated message when adding MIME extension

I've added the following into initializers/mime_types.rb:
text_plain = MIME::Types["application/octet-stream"].first
text_plain.extensions << "fmf"
MIME::Types.index_extensions text_plain`
This works with Paperclip but I get the following message when running rspec:
MIME::Types#index_extensions is deprecated and will be private.
Are there any other methods of adding a new extension without using the above deprecated method?
According to the thread at Thoughtbot Paperclip Issue #1737, you may be able to use the following pattern to avoid the deprecation warning.
text_plain = MIME::Types["application/octet-stream"].first
text_plain.add_extensions "fmf"
Sorry this answer may not be helpful a year later, but perhaps someone else will find it useful.

Resources