MatthewScarpino

1

votes
0

answer
70

views

WebAssembly example forces browser to quit

I'm running a WebAssembly example with Emscripten that prints a message. The browser opens for a second, prints the message, and then closes. Here's my code: #include int main() { printf('Hello, World!'); return 0; } I'm compiling the code with emcc -s WASM=1 --emrun -o hello.html hello.c. When I l...
MatthewScarpino
1

votes
1

answer
50

views

Querying datastore with NDB

I'm trying to use Python and NDB to access the datastore, which contains one entity: I've defined by NDB model with the following code: class Test(ndb.Model): name = ndb.StringProperty() val = ndb.IntegerProperty() Then I run a query for the entity: query = Test.get_by_id('Testing') This returns a N...
MatthewScarpino
1

votes
1

answer
51

views

Does build.xml sign APKs in debug mode?

I've been looking through the build.xml file in the sdk/tools/ant directory of the Android SDK. I can see that the release build accesses a custom key for signing the APK, but I don't see where the debug build accesses a debug key. It's strange, because the default target is and its description sta...
MatthewScarpino
1

votes
1

answer
2.7k

views

Can't get Angular2 component to run in Internet Explorer

My Angular2 app runs in Chrome, Firefox, and Safari, but not Internet Explorer. It finds an error in angular2.min.js: SyntaxError: Expected ';' Here's my HTML file: My Component System.import('./app/main').catch(console.log.bind(console)); This is essentially similar to the HTML in Angular's 5 Min Q...
MatthewScarpino
1

votes
1

answer
319

views

Reading CSV files with TensorFlow

I'm trying to read a tensor from a CSV file and print it. I followed the advice here, but the script still hangs. data.csv consists of one line: 1.5,2.5 Here's the code that reads it: datafile = tf.train.string_input_producer([os.path.join(os.getcwd(), 'data.csv')]) reader = tf.TextLineReader() _, v...
MatthewScarpino
1

votes
1

answer
1k

views

Using embedded columns

I'm trying to understand the TensorFlow tutorial on wide and deep learning. The demo application creates indicator columns for categorical features with few categories (gender, education), and it creates embedded columns for categorical features with many categories (native_country, occupation). I...
MatthewScarpino