LinkedInApi class with scope - scribe

I am trying out LinkedInExampleWithScopes.java example from scribe-java.
However, it errors out on .provider(LinkedInApi.withScopes("foo", "bar", "baz")).
withScopes() is not recognized as part of scribe-1.3.3.jar.
Please advise which scribe-java version is the withScopes() included in.

I had the same problem but 'scibe-1.3.5.jar' works well. Try it.
Download link: http://mvnrepository.com/artifact/org.scribe/scribe/1.3.5

Related

Illegal character in query when doing a conditional GET with multiple parameters

While using Karate DSL version 0.9.2, I can send a conditional get with multiple parameters with no problem.
Something like 'Given path 'get?condition=payment_plan='B' and equal_paymnt_flg='D''', will work perfectly fine.
However on version 1.0.1 the same will produce an error, Illegal character in query at index 84, and the call will fail.
Any ideas why?
Please try 1.1.0.RC4 and if there is still a problem it can be a bug we need to fix.
More details here: https://github.com/intuit/karate/issues/1561

How do you resolve 'Font was not found' error in visualWorks 8.1?

I have been using the report4pdf(bob nemec) package to generate reports as PDFs. Everything goes well except when I am trying to have some nice cell padding on the right.Thought an update would fix that.
So I connected to the public repository and updated the following:
Report4PDF 1.4.0.1
(comments said this was made to match with PDF Development 1.4.3.0 and Font Development 1.3.3.2. So updated those too).
However when I update and run the code it says,' Font not Found'.
Sure enough, when I run the debugger and 'inspect' on the self loadedFonts part from the debugger:
^self loadedFonts at: aSymbolOrFilenameString ifAbsent: [
FontNotFound raiseSignal: aSymbolOrFilenameString , ' was not found']
where: A symbolOrFilenameString= #'Helvetica-Bold'
As I opened the dictionary object, the font was there. Its just that the key didn't match. I am guessing the update changed all the keys except this one.
Anyway I hope you guys can help me out.
Thanks in Advance!
UPDATE 1:
Hi Bob! So I ran the ifNil block on the loadedFonts. But I hit a new error. It says: OrderedCollection(Collection)>>notFoundError.
So its trying to get something from
Graphic.Fonts.OpenType.CmapSubtable class>>classFor::`
The code being:
classFor: formatInteger
^self allSubclasses detect: [:sc | sc subclasses isEmpty and: [ sc formatNumber = formatInteger]]
=======
where formatInteger is 4.
Font class>>loadedFonts changed in the latest 'Fonts Basics' package, and Report4PDF was changed to use the new names. However, the LoadedFonts class variable in Graphics.Fonts.Font is initialized on the first reference. To get the new list, after loading the latest code, you need to run the ifNil: [] block in Font class>>loadedFonts.
In my image, with the latest code loaded, #'Helvetica-Bold' is defined in LoadedFonts.

grammar.y error happended when compiled Cobalt

When compile Cobalt, the following error happend, is there anyone who knows why?
It said the 'ShadowType' is not a class or namespace in grammy.y:3421, I did not know what is used for grammy.y, and try to trace and modify the code, it does not work.
grammar.y error details
Your issue is that C++ version before C++0x does not support ShadowType::kBoxShadow(member in enum type) use at all, you can change the cflags_cc from "-std=gnu++98" to "-std=gnu++0x"in third_party/starboard/linux/shared/gyp_configuration.gypi, and try again.

jackson2.2.0 can not work on android2.2

When using jackson2.2.0 on android2.2(API8), I got this error:
Could not find class java.util.concurrent.ConcurrentNavigableMap, referenced from method com.fasterxml.jackson.databind.deser.BasicDeserializerFactory.<clinit>
I've tested my code on android2.3.3(API10) and android4.0.3(API15), it both works.
Does any one knows how to fix this? Or I have to use another jason parser instead.
This has already been reported on Jackson's issue tracker. A fix is due in 2.2.2 next week or so.

Magento - Trouble with setting up Model Read Adapter

I was following through on Alan Storm's tutorial on Magento's Model and ORM basics and I've run into a bit of a problem. When I get to the portion where I load from the Model for the first time I get this error "Fatal error: Call to a member function load() on a non-object...". I've reset everything already and tried again from scratch but I still get the same problem. My code looks like this:
$params = $this->getRequest()->getParams();
$blogpost = Mage::getModel('weblog/blogpost');
var_dump($blogpost);
echo("Loading the blogpost with an ID of ".$params['id']);
$blogpost->load($params['id']);
As you can see I dumped the contents of $blogpost and it shows that it is just a boolean false. My guess is that there's either a problem with the connection to the database or, for some reason, the code for Mage::getModel() didn't get installed correctly.
EDIT - Adding Code
There's so many that I just decided to pastebin them lol
app/code/local/Ahathaway/Weblog/controllers/IndexController.php
app/code/local/Ahathaway/Weblog/etc/config.xml
app/code/local/Ahathaway/Weblog/Model/Blogpost.php
app/etc/modules/Ahathaway_Weblog.xml
Your Model/Blogpost.php file should actually be Model/Mysql4/Blogpost.php, and you are missing the real Model/Blogpost.php.
My guess is that Mage cannot find your model class. Double check the module/model name and also verify if the model is in a correct place in the filesystem (it should be in app/code/local/Weblog/Model/Blogpost.php).
You also need to check if your config.xml correctly defines your model classes. It would be best if you could past your config.xml and your model class...
A quick glance reveals you're missing the model resource. Go back to the section around the following code example
File: app/code/local/Alanstormdotcom/Weblog/Model/Mysql4/Blogpost.php
class Alanstormdotcom_Weblog_Model_Mysql4_Blogpost extends Mage_Core_Model_Mysql4_Abstract{
protected function _construct()
{
$this->_init('weblog/blogpost', 'blogpost_id');
}
}