"unresolved variable or type google" - google-maps-api-3

Using Google Maps API, WebStorm is telling me that google is unresolved. I have added the library in the Languages & Frameworks setting but it persists.

google-maps is not the right library, please use googlemaps instead. You can download it via File | Settings | Languages & Frameworks | JavaScript | Libraries, or install in your project via npm (npm install #types/googlemaps --save-dev)

I think you just need to suppress warning.
Check this please :
How do I resolve JetBrains WebStorm 'Unresolved variable webServ' warning?

Related

Is it possible to install specific version of scala via rscala::scalaInstall()?

Is it possible to install specific version of scala via rscala::scalaInstall() ?
Currently it installs 2.12.1 which my project doesn't support yet.
I'm also ok with installing 2.11.8 manually but then it's unclear to me how to point R to it. Shall I add SCALA_HOME env var to script that launches RStudio or is there better way ?
Just make sure to add scala to your path and you should be fine.
Source: https://cran.r-project.org/web/packages/rscala/README

Add intellisense to Atom

In Visual Studio Code if you install the typings(the new tsd) it enables intellisense for the given typing. For example if you execute
$ typings install node --ambient --save
in the base folder of your project, you get intellisense for node.
Is there a way to achieve the same with Atom, or it's not supported?
Atom doesn't support Typescript intellisense out of the box, but it has a great plugin system.
Install the Atom Typescript plugin. It provides many features for working with Typescript, including intellisense.

MeteorJS on Synology DS214Play (intel architecture)

i've replaced my DS212 (on ARM) by a new DS214Play (on Intel).
I tried to install MeteorJs using required command line by any user (admin) :
curl http://install.meteor.com | sh
Then it tells me that it's installed, but in fact meteor is not callable :
sh: meteor: not found
After install i get those files:
/volume1/homes/admin/.meteor/*
/usr/local/bin/meteor
[edit]
trying to install throught https://github.com/4commerce-technologies-AG/meteor and i get the following errors (make has been installed throught ipkg) :
Node.js configure error: No acceptable C compiler found!
Please make sure you have a C compiler installed on your system and/or
consider adjusting the CC environment variable if you installed
it in a non-standard prefix.
python ./configure
Node.js configure error: No acceptable C compiler found!
Please make sure you have a C compiler installed on your system and/or
consider adjusting the CC environment variable if you installed
it in a non-standard prefix.
python tools/gyp_node.py -f make
gyp: Undefined variable node_tag in /tmp/generate-dev-bundle-IKZIGinD/build/node/node.gyp
make: *** [out/Makefile] Error 1
Hi I am not sure if your architecture is supported by now with a pre-bundle.
You can try to check if our "universal" bundler will help you.
https://github.com/4commerce-technologies-AG/meteor
P.S.: Make sure to have node, npm and mongo natively installed on your system when using above.
P.P.S.: You also can try to checkout meteor directly from their repos, depends on architecture.

xcode4 documentation for iOS 4.3 Library

I installed xcode4 and in Organizer - Documentation I can see iOS 4.3 Library, Mac OS X 10.6 Library and Xcode 4.0 Developer Library. However, when I'm offline, I cannot access the iOS library documentation, I'm getting Error Loading URL You are not connected to internet. For the other 2 libraries it works.
Anyone knows why it happens like that? There's no "get" button anymore in XCode > Preferences > Documentation.
open the link feed://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone4_3.atom
find the properly file for your iOS
after finishing download copy the xar file to path /Developer/Documentation/DocSets/ and unzip
it "sudo xar -xf *.xar" and unzip *.docset "sudo chown -R -P devdocs"
For some reason the iOS 4.3 Library is downloaded later. When you are online go into Preferences for Xcode and select Documentation. You will see that library is likely disabled but ready to be downloaded. If that is the case there will be a "Get" button on the right side which you can use to start the download which may take a while.
Once it is downloaded you will be able to use that documentation library when you are offline.
I was trying to get the documentation offline but could not find the "get" button.So I had to go to Preferences->Downloads->Documentation->Check and install now and then the new libraries showed up.Its better to check the "Check for and install updates automatically"
Arguably simpler than any of these is to manually add the RSS feed for the documentation - at the bottom of the documentation download list is a + / - set of controls. Click + and paste in feed://developer.apple.com/rss/com.apple.adc.documentation.AppleiPhone4_3.atom and it'll automatically select the right one and start downloading (and notify you of updates, though I doubt there will be any more)

Xcode 4 (final version) error when building

I can't seem to find the answer.
I've just used Xcode 4 final version and built an existing project that was built ok with Xcode 3, but got this error:
ld: library not found for -lSystem.B
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
But another project was built OK with Xcode 4.
I installed Xcode 4 by choosing the default options.
Do I miss to include a library or framework somewhere?
Could somebody please help. Thank you.
Here's my solution for Xcode 4.0.2 with SDK 4.3 environment, but I believe it should also work on other setups.
libSystem.B.dylib is not present
under
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/usr/lib,
however it is present for lower SDK
versions (e.g. iPhoneOS4.2.sdk)
most of the cases
libSystem.B.dylib is just a
symbolic link to libSystem.dylib
so in
iPhoneSimulator4.3.sdk/usr/lib
I've applied following command sudo
ln -s libSystem.dylib
libSystem.B.dylib and my simulator
builds started to work again :)
NOTE: libSystem.B.dylib is used by Flurry and Urban Airship so you better don't delete the reference in project file (of course Urban Airship does not work under Simulator, but I think Flurry does. libSystem.B.dylib may also be required by other libraries you included to your project.
UPDATE: solution still works for iOS5 Simulator after upgrading to Xcode 4.3
UPDATE, March 9th, 2k12: for Xcode installations via App Store, prefix above path with /Applications/Xcode.app/Contents or the path where you've installed Xcode.app.
Solved.
Turns out that there was a reference to libSystemB in my project (Don't know why it's there). After deleting the reference, it built well.
Thanks anyway guys!
-weak_library /usr/lib/libSystem.B.dylib breaks the iOS Simulator.
Use -weak-lSystem instead.
The quote belongs to gparker on the official dev forums.
-weak_library /usr/lib/libSystem.B.dylib breaks the iOS Simulator. Use -weak-lSystem instead.
nicktmro got it right, especially when you are developing cocos2d projects using xcode 4.x
I have the same problem since months and always kept making the symbolic link as described here everytime i updated xCode. Today I found a nice new way to fix this:
In your targets Build Phases go to 'Link Binary With Libraries' and search for:
libz.dylib
Set from 'Required' to 'Optional'
BUILD
BE HAPPY

Resources