Questions tagged [imp]

Used for questions relating to the Electric Imp, a programmable Internet of Things eco-system.

The Imp, or Electric Imp is an eco-system of components that enable products to become part of the Internet of Things (IoT). It includes hardware that connects to the cloud via wifi and has a number of input and output pins to sense and control products. Programming is done via web browser on the cloud with two parts being programmed, the Imp hardware and the backend server.

Best to read the web page on the Electric Imp web site.

77 questions
0
votes
1 answer

Using Oracle IMP gives the error IMP-00058

I have received some data in Oracle DMP format that I am trying to use imp to import into an Oracle database. I am running the command: imp /@ FILE=SI_DESIGN_SETS_12Mar2015.dmp I get the result: Import: Release 11.2.0.1.0 -…
Mat
  • 140
  • 2
  • 11
0
votes
1 answer

dynamically update module using exec and compile in Python

I would like to dynamically import and update modules. The more efficient way would likely be to use importlib and imp.reload as suggested by abarnet. However another solution would be to use exec and compile. I have a sample script below that…
pangyuteng
  • 1,749
  • 14
  • 29
0
votes
1 answer

Firebase + Electric Imp

The provided Firebase + Electric Imp code seems like it doesn't work anymore, specifically for streaming. https://github.com/firebase/ElectricImpDemo/blob/master/ImpFirebase-HRmonitor/bracelet-agent.nut Is there a known regression I should know…
Russell Cohen
  • 717
  • 4
  • 7
0
votes
2 answers

Run Oracle import Command from Java and see Console output

I am running an Oracle database Command for a .dmp file like this: String impcmd = "imp askul/askul@askdb file=mydumpfile.dmp log=mylogfile.log fromuser=askul touser=askul full=N ignore=Y grants=Y indexes=Y"; Process p =…
Stanley Mungai
  • 4,044
  • 30
  • 100
  • 168
0
votes
1 answer

OCaml - How to put a let binding inside a match expression?

I have the following code statement: let execute command = match command with |Skip -> () |Changestate (l,r) -> (let l = ref r) |_ -> failwith "Not a command" when I run this in the toplevel, I get the following error: 1 let execute command = 2…
Matt Pennington
  • 560
  • 1
  • 8
  • 21
0
votes
1 answer

Trying to compile winsock program in dev C++ win7 - error

I try to compile this http://www.nongnu.org/cpirc/ I have got errors like : (when linking) 118 IRC.cc undefined reference to `__imp_socket' 123 IRC.cc undefined reference to `__imp_gethostbyname' I dont know how to fix problem in visual i…
user2652995
  • 57
  • 2
  • 15
0
votes
1 answer

Using ElectricImp server.show() and Arduino

I'm following the sparkfun tutorial for connecting an arduino to electric imp. I only have one arduino and imp, so I'm trying to get whatever I type in the arduino serial monitor to display in the imp node using server.show(). I've modified one of…
Mike
  • 117
  • 1
  • 1
  • 8
0
votes
1 answer

are IMP and @selector related?

I've looking information related with IMP, but everything I find looks like an old practice. I may be wrong but IMP represents the address of a method so you can pass it as an argument if you need to, right? If this is true, doesn't @selector allow…
Diego A. Rincon
  • 747
  • 1
  • 8
  • 25
0
votes
2 answers

Implementation of unlimited precision integers

Problem: "A big integer is represented as a list of (small) integers." Suppose to have: type reg = string;; (* "$0" models register set to constant 0 *) type label = string;; (* empty string models no label *) type asmistr = AsmHalt | AsmNop …
genesisxyz
  • 778
  • 3
  • 14
  • 29
0
votes
2 answers

Objective C for loop optimization using SEL and IMP

According to this article For loops in objective C can be optimized using SEL & IMP. I have been toying with the idea for a bit now, and today I've been trying some tests. However what seems to work for one class, does not seem to work for another.…
Ælex
  • 14,432
  • 20
  • 88
  • 129
0
votes
2 answers

Constructing or composing my own blocks or imps

Question Does objective-c have any kind of functionality which allows me to compose my own blocks or IMPs on the fly? By that I mean let me link together arbitrary code snippets into a single block (and then perform imp_implementationWithBlock) or…
Andrew Lauer Barinov
  • 5,694
  • 10
  • 59
  • 83
-1
votes
1 answer

Print packet protocol type using PyShark

I want to print all the protocols of the packet (ie: ICMP, ARP, TCP, UDP, etc.) but I am getting only TCP and UDP. I am using pyshark and python to capture packets. import pyshark capture =…
-1
votes
1 answer

sklearn: DeprecationWarning: theimp module is deprecated - safe to ignore?

Whenever I try to use "sklearn", I get the following error: >>>from sklearn.tree import DecisionTreeRegressor /home/ec2-user/anaconda2/envs/argosv2/lib/python3.6/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47:…
Ofer Rahat
  • 790
  • 1
  • 9
  • 15
-1
votes
1 answer

Python dynamic module loading with multiprocessing

The following code works if the module "user.py" is in the same directory as the code, but fails if it is in a different directory. The error message I get is "ModuleNotFoundError: No module named 'user' import multiprocessing as mp import…
self.bcl
  • 37
  • 2
-1
votes
1 answer

python: import function doesnt work in 3.5

I use this to import a function in 2.7 which works: def import_x(): import os import imp directory = os.path.dirname(os.path.realpath(__file__)) os.environ['__PYTHON_SYS_PATH_FOR_TESTFOLDER__'] = directory fp, pathname,…
thedude
  • 53
  • 6