Seems like something changed in Forge's library as suddenly viewer.impl.disableRollover(true); has stopped working.
Would anyone kindly confirm or deny this?
Try that:
viewer.disableHighlight(true)
Keep in mind that every method under viewer.impl. is NOT part of the public API and is subject to change from one version to another.
Related
I need to go back to home default view on Forge Viewer, after a few times go for searching and follow some tutorials to load extension i have something like this
let res = _viewer.loadExtension('Autodesk.GoHome')
if(res){
_viewer.getExtension('Autodesk.GoHome', (gohome)=>{
gohome.active()
})
It not work for me and have an error like "gohome is not a function" ?. Did i do something wrong ?
You have a race condition problem in your code.
I will not get into details here, but briefly speaking, things like "gohome is not a function" usually means that you use an object before it was fully created/initialized.
Try changing your code into:
_viewer.loadExtension('Autodesk.GoHome').then(
(gohome) => {
gohome.active();
})
This should solve the problem.
Recently I read a query about "What does console.log do" and I read an answer, tried using it and found that despite the answer stating that it outputs to the console in googles browser, I just tried it and I get no output.
I did try this code:
function put(p){
if ( window.console && window.console.log ) {
console.log(p); // console is available
}else{
alert(p);
}
}
BUT... I get neither console output or alert and furthermore .log is a Math property, what gives with that?
Make sure that in the Developer Tools the Filter in the console section is set to All or Logs...
I had a similar experience where I couldn't see any of my console.log output and it was because the console was set to filter on Errors only... All the log entries were there - they just weren't visible.
Bonus marks: you can also Ctrl + Click to select multiple filters (Errors + Logs for example).
Press F12 and look at in Developer Tools: Console. I tried your code just now, works fine for me -- Chrome version 30.0.
Since you're after console logging, not mathematical logarithms, perhaps you could stop going on about there being similarly-named function in the Math object. It's not relevant here whatsoever.
You're also coming across just a little shouty. console.log() works fine, and your question didn't indicate that you knew where to look. This is totally your problem, but I'm trying to help you. I can obviously only go on the information you provide, and I can't say your initial question was written very clearly.
It appears, since the snippet of code you posted works here absolutely fine, that your calling code & containing (which you haven't posted) would be the cause of the problem. You should debug these, to find out what's going wrong.
Do you know how to use the Chrome debugger? Are there any error messages showing in Chrome or on the console?
Test it on a simple page if necessary, to rule out other errors in the page/ or surrounding context breaking it. One common mistakes is declare functions in a jQuery ready handler or similar, and then try & access them globally. Make sure your logging function is actually global (outside any other function(){} or object {} blocks).
Lastly, it's good to have a logging function for portability (I have one myself) but put() is not a good name for it. Naming it consoleLog() or log() would be better.
Had the same issue .
Make sure your using de right path when you try import thing's .
Example whit my issue :
Wrong path ----> ** import normalizedData from 'normalizr'; **
Right path ---> ** import normalizedData from '../schemas/index.js'; **
I had also faced the same problem. Make sure you apply no filter in the console. It worked for me.
I tried the iPhoneXMPP demo but it seems that the GUI is not updated when my friend is online or offline. I modified the nsfetchresultcontroller to show online friend only:
...
[fetchRequest setPredicate:[NSPredicate predicateWithFormat:#"sectionNum == 0"]];
...
In xcode's console, it showed that it did receive the presences from my friends. But I saw that controllerDidChangeContent: is not get called at all. (Actually, I saw it's called sometimes, but randomly and rarely).
When I debugged more deeply, I saw that XMPPRosterCoreDataStorage handlePresence:xmppStream is called, then managedObjectContextDidSave:notification is called also. So everything seems right. But the resultfetchcontroller did not see the changes.
So what is the problem? Is there anything I did wrong?
Thanks.
I just tested your Predicate: It works just fine.
Did you initialize your NSFetchedResultsController correctly? You need to pass the NSManagedObjectContext of your XMPPRosterCoreDataStorage.
I've recently been asked to help support a system which uses the PHP Proxy provided by SWFJunkie. In following the proxy's install steps I get to Step 4 at which point I get no results. I've tried hosting on Apache and IIS, have confirmed that URL rewrites work correctly on both platforms and that CURL is correctly installed, and have ensured there are no firewalls blocking my requests.
In researching this issue I've seen that Twitter have been changing their API rules (with more changes set to take place in March next year). The last activity I can see on the Proxy project was back in 2010, after which it seems to have gone dead. Before I put in more effort trying to get this to work I thought I'd ask - is anyone else currently using this / do you have it working?
If you have it working I'd welcome any tips / advice you have also, but mainly I just want to know in advance whether this utility still works in order to justify spending time on it.
Thanks in advance.
the proxy does still work, but I had to tweak the code a little.
Thanks to #MikeHayes for the solution: Twitter OAUTH - returns response code of "0"
For anyone else having this issue, the quick fix is to update Tweetr.php. Find the code matching what's below & insert the additional (commented) line on the end.
$opt[CURLOPT_URL] = $twitterURL;
$opt[CURLOPT_USERAGENT] = $this->userAgent;
$opt[CURLOPT_RETURNTRANSFER] = true;
$opt[CURLOPT_TIMEOUT] = 60;
//BEGIN UPDATED CODE
$opt[CURLOPT_SSL_VERIFYPEER] = false;
//END UPDATED CODE
Thanks again to Mike & good luck to anyone else currently having this issue.
Has anyone tried accessing bungie.net reach stats api (statistics from Halo Matchmaking)?
As described here http://www.bungie.net/fanclub/statsapi/Group/Resources/Article.aspx?cid=545064
I can't seem to get any data returned, for example if i use this (with correct API key and gamertag values of course) ignore the first 2 asterisks ...
**http://www.bungie.net/api/reach/reachapijson.svc/player/details/byplaylist/MyIdentifierAPIkey/Gamertag
I don't receive a response - but no errors either, am i doing something wrong?
looking to use this for a Titanium (appcelerator) app eventually.
Any help or advice welcome, thanks in advance.
Unfortunately the API is not yet live to the public. I asked in a Private Message. They didn't say when it would be live.
In the Docs that Achronos posted, he put spaces in the URL's, I'm not sure if those are supposed to be there or not, so I tried it with the spaces and I got a 403 Forbidden error page. When I remove all the spaces, I get an error page that says:
Request Error
The server encountered an error processing the request. See server logs for more details.
I kinda can't check the server logs though... Bungie did say they were having some issues with the site though, so this might be a biproduct of that. I want them to get it working soon though, I wanna see just what it can do!