Is there another requirement for foilium to work after installation. I am using pycharm for the python project - geolocation

I have pip installed foilium but when I try to run the program for map generation of phone numbers. It generates an error:
ModuleNotFound: No module named 'folium'
I need to generate the GPS location of phone numbers
I wanted to obtain a map of a group of numbers at the same time to know the coverage of the area through the phone numbers

Related

Unable to load Lua Scripts to NodeMCU: Invalid node.chipid()

For all of these scenarios, I am able to upload the firmware and monitor via serial usb. But after creating my first firmware, for all new firmware, I can't upload Lua scripts using the nodemcu-tool without getting the following:
Error Message
F:\Development\NodeMCU\helloworld>nodemcu-tool -p COM3 upload init.lua
[NodeMCU-Tool]~ Unable to establish connection
[NodeMCU-Tool]~ Invalid node.chipid() Response: 6935962
Observations
Can reset the board using nodemcu-tool. Leads me to assume the baud rate is fine.
Can see the file system being created from PuTTy after loading any of the firmware. Leads me to assume the firmware is OK.
Have tried multiple dev boards, same results
Found the source of the error message device-info.js. either line 45 or 49
I have no idea what "Response: 6935962" means. Is that my chip id or an error code?
A new commit was made to the firmware source during the last couple of days. No idea if this is relevant.
Was hoping to get this resolved before I go down the Docker rabbit hole. Lazy. I know.
9/6/2019 - created first firmware to start development
Built a firmware using https://nodemcu-build.com/ with these modules (cron, file, gpio, i2c, mdns, mqtt, net, node, sjson, tmr, uart, wifi)
Uploaded the firmare using NodeMCU-PyFlasher-4.0
No issues with this firmware. I've been able to upload lua scripts and test them successfully. Even now, I can revert back to this firmware and use it without issues. I've even redownloaded this firmware from the original link, and it works fine.
9/7/2019 - created a new firmware to use adc and other goodies
Built a firmware using https://nodemcu-build.com/ with these modules (adc, cron, file, gpio, i2c, mdns, mqtt, net, node, rtctime, sjson, tmr, uart, wifi)
Uploaded the firmare using NodeMCU-PyFlasher-4.0
Having the problem described above.
9/8/2019 - built firmware with minimal modules
Built a firmware using https://nodemcu-build.com/ with these modules (file, gpio, net, node, tmr, uart, wifi)
Uploaded the firmare using NodeMCU-PyFlasher-4.0
Having the problem described above.
Platform & Tools
Windows 10
Development board: HiLetgo ESP8266 NodeMCU LUA CP2102 ESP-12E Internet WiFi Development Board Open Source Serial Wireless Module
Firmware builder: https://nodemcu-build.com/
Serial Monitor: PuTTy 0.72
Firmware Loader: NodeMCUPyFlasher 4.0
Lua script loader: nodemcu-tool 3.0.2
fetchDeviceInfo() first calls node.info() at https://github.com/AndiDittrich/NodeMCU-Tool/blob/master/lib/connector/device-info.js#L9. Then it does an if-else to figure out whether it's running on ESP8266 or ESP32.
With the recent upgrade to SDK 3.0 node.info() was changed in PR #2830. See documentation at https://nodemcu.readthedocs.io/en/latest/modules/node/#nodeinfo. It now returns values the script doesn't consider to be coming from ESP8266. The script then calls node.chipId() in the else branch. So, it's getting a chip id from ESP8266 but it is expecting one from ESP32. Hence, the exception.
I have no idea what "Response: 6935962" means. Is that my chip id or an error code?
It's your chip id.
To cut a long story short: NodeMCU-Tool needs to be adjusted as laid out above to work with the current NodeMCU version.
I cached the same issue from the recent cloud build(https://nodemcu-build.com/). It works when i switch back to the old ones. It looks like a problem of the build system or recent source code. You can switch to other build method and try use the older code.

Is there a way to run r on iOS device

I'm looking for a solution to run some r scripts and display graphics on an iOs device using r.
I saw this app https://itunes.apple.com/us/app/r-programming-language/id540809637?mt=8 but we can't plot graph with it.
I just need something really basic, but which allows me to test some computations when I have an idea.
Thanks a lot.
I have tried connecting to the RStudio server using chrome on my browser but the arrows don't work so it's not perfect.
I used the app Juno, to connect to Jupyter hub running R and it worked much better. The Microsoft azure service provides free "notebooks": notebooks.azure.com
R Analyst runs R 3.1.5
Analyst has both R and Python. It also includes some fill-in-the-blanks forms for simple analyses. (e.g. a mini-SAS PROC)
I believe the developer is working on a 3.5.x update.
Apple App store rules limit the full functionality of R. Due to App Store rules, neither App allows you to install packages with compiled binaries. The default packages (all 188 of them, including the tidyverse packages, data.table, and knit) are on a system path that is not writable without jailbreaking. However, you can source directories and .libPath is functional.
Both allow you to create PDF graphics directly, and to save the displayed graph as png and jpeg (IIRC). knitr::spin and knit::stitch work if you set the dev to pdf. I've yet to test knitr::knit and its variations.
Both support document sharing via iOS files app, so you can use iOS editors like Textastic, Buffer, and GoCoEdit to write your code, and Working Copy for git support.

NodeMCU module enduser_setup: Program does not compile

I built NodeMCU firmware with module enduser_setup, but when using it in Arduino IDE the compilation stops with this error:
enter code here test_:35: error: 'enduser_setup' was not declared in this scope`
Do I need to include something else?
There seems to be a fundamental misunderstanding. There are two choices but you mixed and matched them.
If you want to program the Arduino way then you don't need the NodeMCU firmware. You have to be prepared to compile and upload the entire binary to the device every time you change a single bit in your program.
If you want to program in Lua, a scripting language not too different from JavaScript, then you need to flash the NodeMCU firmware first. After that you simply upload your Lua script(s) and (re)start the execution or invoke the new functions you just uploaded. You won't need the Arduino IDE at all for this.
Disclaimer: I'm a member of the NodeMCU firmware team and thus I can't deny being slightly biased as to which approach I prefer.

Command line access to iOS app directory (sandbox) from Mac

I need to access the sandbox directory for an application installed on an iOS device, using the command line (non-gui) from a Mac or Linux. This is to help with development and testing automation. Dropping a json file into the sandbox lets me set parameters like extra debug messages and smaller refresh intervals.
A tool like iFunBox works perfectly but is graphical only, requiring numerous clicks to do this. Emails to the developers were unanswered. It also does not support AppleScript. I did find another app that provided a Fuse module, but it turned out buggy especially if the app was uninstalled and then reinstalled (in order to reset back to first time user experience). I reported the problems to the developer but there is no fix on the horizon.
The things I need to do are:
Test if an app with a specific bundle id is installed
Create Library/Caches/MYLIBNAME directory if it doesn't exist
Copy a ~100 byte json file from the Mac to that directory
Get a copy of that file
A solution that only works from Linux is acceptable too
Devices are not jailbroken and I would prefer not to need that as a requirement
In some cases I do not have the source code to the app since it is a third party using my library, so compiling different versions of the app isn't practical.
Answer is below in many comments thanks to lxt. Summary is:
Various libraries and programs associated with libimobiledevice can solve the problems
Use patched iFuse to mount an application sandbox
Use idevicesyslog to see the console log
Use ideviceinstaller to install/uninstall apps
The various libraries and programs associated with libimobiledevice are incredibly difficult if not impossible to compile as is on Linux or Mac, and there is no unified distribution of the source or binaries
For Ubuntu try libimobiledevice (may have 3 suffix), ideviceinstaller and libimobiledevice-utils packages
For Mac a search for libimobiledevice-macosx may get you some of the way there
This is going to be a little tricky, because as I think you've found out the application name is randomly generated on every install. I don't think there is a way past that, certainly that I know of. This explains the problems you're running into when simulating a new install (...the app directory name changes to a new, random hash, and then you're stuck).
Although my preference would be to access this config file in some other way (perhaps over a network, and have some code that only executes on debug/test builds check for it), if you did want to do this then I'd suggest trying something like writing a script that when you want to simulate a new install chooses the app directory that's most recently modified. But this is very hacky.
If you're not able to insert conditional code that only executes on debug/ test builds then I think the random app naming schema that iOS uses at a file system level is going to be problematic for you whatever approach you take.
Update: Regarding iFuse and libimobiledevice - out of the box it limits you to the documents directory. This is because the authors of iFuse don't entry-level users to be confused, and also because the structure is a little different depending on iOS version. You can comment out the lines in the iFuse source - fuse_opt_add_arg(&args, "-osubdir=Documents"); - to get access to the library directory through the mount. You will obviously need to re-compile iFuse yourself if doing this.
You can make use of MobileDevice Library
I know this is an old question and I doubt anyone is looking here anymore, but I thought I'd mention that you can use 'brew install libimobiledevice' to compile on the mac. There are a lot of dependencies and Homebrew really helps make it an easy process by installing them for you.

blackberry install an application twice

I developed a Blackberry app and want to install it twice, as two separate apps, on the same device. I want the exact same app installed again, but the second installation should not overwrite the first one.
Which setting identifies the BlackBerry app? Is it in the AppDescriptor?
In Eclipse, when editing the Application Descriptor, go to the 'build' tab. There is a field for the "Output file name". That filename distinguishes apps from one another.
However, you will run into another problem, as your second installation will collide with the first one, as all the java classes have the same packages and names. So you will need to use something like jarjarlinks to tweak the package names a little bit before installing the second app.

Resources