compare_oracle / oraclechunk46.json
xPXXX's picture
Upload 10 files
26d7090
Raw
History Blame Contribute Delete
53.5 kB
Invalid JSON:Unexpected non-whitespace character after JSONat line 2, column 1
{"QuestionId": 33549822, "AnswerCount": 1, "Tags": "<c#><asp.net><iis>", "CreationDate": "2015-11-05T16:28:53.833", "AcceptedAnswerId": null, "Title": "Multiple cores for single ASP.net request", "Body": "<p>I am trying to create a WebApi method that runs a series of loop calculations that would be difficult to further optimize.</p>\n\n<pre><code>x.Items.AsParallel().ForAll(item =&gt;\n{\n item.RunCalcs();\n});\n</code></pre>\n\n<p>When this code executes, by looking at the server task manager, it appears that it only maxes out a single processor core while leaving the other cores untouched.</p>\n\n<p>From what I have read, asp.net limits a single request to one processor core. Since this is an intranet server with very few overall requests, I am not concerned with managing the server resources. </p>\n\n<p>Is there any way to override or work around this behavior to make my loop run faster?</p>\n", "Lable": "No"}
{"QuestionId": 33591908, "AnswerCount": 0, "Tags": "<c#><ibm-mq>", "CreationDate": "2015-11-08T08:00:06.623", "AcceptedAnswerId": null, "Title": "Write to WebSphere clustered queue fails", "Body": "<p>I have an C# service which reads messages from a WebSphere MQ queue using the .Net MQ interface library supplied by IBM, sends them to another application for processing and then writes the response to another queue.</p>\n\n<p>When I connect to the response queue I have code of the form shown below (the MQ designers on site told me that I should always use the same handle for the response queue manager as the request queue manager)</p>\n\n<p>The QueueName variable is set to the ReplyTo Queue name in the request message if present or a default if missing.</p>\n\n<pre><code>var ResponseQueueManager = RequestQueueManager;\nvar ResponseQueue = ResponseQueueManager.AccessQueue(QueueName,\n MQC.MQOO_OUTPUT, \n ResponseQueueManager.Name, \n null, \n null);\n</code></pre>\n\n<p>This all works fine if the response queue name is not a clustered queue. However if I try to write to a clustered environment I get a UNKNOWN_OBJECT_NAME error thrown by the MQenvironment when I do the write, although I know the queue name is valid. Do I need to set additional attributes on the AccessQueue call? </p>\n\n<p>I managed to read from a queue on the same queue manager OK so I don't understand why I write back to a queue under the same queue manager in a clustered environment.</p>\n", "Lable": "No"}
{"QuestionId": 33602309, "AnswerCount": 1, "Tags": "<javascript><reactjs><react-jsx><refluxjs>", "CreationDate": "2015-11-09T03:57:53.347", "AcceptedAnswerId": "33602646", "Title": "React.render() not rendering component", "Body": "<p>I'm trying to get my head around React, Reflux and JSX. I have a simple file I'd like to try and get working. </p>\n\n<pre><code>&lt;html&gt;\n &lt;body&gt;\n &lt;div id=\"counter\"&gt;&lt;/div&gt;\n\n &lt;script src=\"bower_components/react/react.js\"&gt;&lt;/script&gt;\n &lt;script src=\"bower_components/reflux/dist/reflux.js\"&gt;&lt;/script&gt;\n &lt;script src=\"bower_components/react-dom/react-dom.js\"&gt;&lt;/script&gt;\n\n &lt;script type=\"text/jsx\"&gt;\n var CounterComponent = React.createClass({\n render: function() {\n return (\n &lt;div&gt;Hello, world&lt;/div&gt;\n );\n }\n });\n\n React.render(&lt;CounterComponent /&gt;, document.getElementById(\"counter\"));\n &lt;/script&gt;\n\n &lt;/body&gt;\n&lt;/html&gt;\n</code></pre>\n\n<p>I've setup my actions, store and component. But <code>React.render()</code> doesn't actually create anything in my div. I've commented out much of the code to try and isolate why it's not rendering. I get no errors, so I assume it's something to do with the jsx not being seen...</p>\n\n<p>Any ideas why this is failing to render my 'hello world'?</p>\n", "Lable": "No"}
{"QuestionId": 33661591, "AnswerCount": 3, "Tags": "<clojure><anonymous-function>", "CreationDate": "2015-11-11T23:11:26.180", "AcceptedAnswerId": "33661641", "Title": "Anonymous function in Clojure", "Body": "<p>Maybe this sounds ridiculous question, but it is for me still not exactly clear the difference between where the <code>#</code> of a anonymous function should come. For example in this example i filter the divisors of a positive number:</p>\n\n<pre><code>(filter #(zero? (mod 6 %)) (range 1 (inc 6))) ;;=&gt; (1 2 3 6)\n</code></pre>\n\n<p>but putting the <code>#</code> right before the <code>(mod 6 %)</code> will cause an error. Is there a rule where in such a context my anonymous function begins, and why should the <code>#</code> come before <code>(zero? ...</code>? </p>\n", "Lable": "No"}
{"QuestionId": 33717906, "AnswerCount": 3, "Tags": "<linker><caffe>", "CreationDate": "2015-11-15T08:49:14.003", "AcceptedAnswerId": null, "Title": "Caffe Installation error", "Body": "<p>I am installing Caffe on Ubunutu 15.04. I installed all the prerequisites mentioned in the installation page of Caffe from the official page: <a href=\"http://caffe.berkeleyvision.org/installation.html\" rel=\"nofollow\">http://caffe.berkeleyvision.org/installation.html</a></p>\n\n<p>I am getting error during make. I am posting the error log (could not post whole log, too big a file. I cropped messages from starting till it fits the block). Please inform me if this is not useful</p>\n\n<pre><code>g++ src/caffe/util/math_functions.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/math_functions.o 2&gt; .build_release/src/caffe/util/math_functions.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/math_functions.o.warnings.txt; exit 1)\nCXX src/caffe/util/db_lmdb.cpp\ng++ src/caffe/util/db_lmdb.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/db_lmdb.o 2&gt; .build_release/src/caffe/util/db_lmdb.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/db_lmdb.o.warnings.txt; exit 1)\nCXX src/caffe/util/db.cpp\ng++ src/caffe/util/db.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/db.o 2&gt; .build_release/src/caffe/util/db.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/db.o.warnings.txt; exit 1)\nCXX src/caffe/util/db_leveldb.cpp\ng++ src/caffe/util/db_leveldb.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/db_leveldb.o 2&gt; .build_release/src/caffe/util/db_leveldb.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/db_leveldb.o.warnings.txt; exit 1)\nCXX src/caffe/util/hdf5.cpp\ng++ src/caffe/util/hdf5.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/hdf5.o 2&gt; .build_release/src/caffe/util/hdf5.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/hdf5.o.warnings.txt; exit 1)\nCXX src/caffe/util/insert_splits.cpp\ng++ src/caffe/util/insert_splits.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/insert_splits.o 2&gt; .build_release/src/caffe/util/insert_splits.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/insert_splits.o.warnings.txt; exit 1)\nCXX src/caffe/util/cudnn.cpp\ng++ src/caffe/util/cudnn.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/cudnn.o 2&gt; .build_release/src/caffe/util/cudnn.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/cudnn.o.warnings.txt; exit 1)\nCXX src/caffe/util/blocking_queue.cpp\ng++ src/caffe/util/blocking_queue.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/util/blocking_queue.o 2&gt; .build_release/src/caffe/util/blocking_queue.o.warnings.txt \\\n || (cat .build_release/src/caffe/util/blocking_queue.o.warnings.txt; exit 1)\nCXX src/caffe/net.cpp\ng++ src/caffe/net.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/net.o 2&gt; .build_release/src/caffe/net.o.warnings.txt \\\n || (cat .build_release/src/caffe/net.o.warnings.txt; exit 1)\nCXX src/caffe/common.cpp\ng++ src/caffe/common.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/src/caffe/common.o 2&gt; .build_release/src/caffe/common.o.warnings.txt \\\n || (cat .build_release/src/caffe/common.o.warnings.txt; exit 1)\nAR -o .build_release/lib/libcaffe.a\nar rcs .build_release/lib/libcaffe.a .build_release/src/caffe/proto/caffe.pb.o .build_release/src/caffe/internal_thread.o .build_release/src/caffe/solvers/nesterov_solver.o .build_release/src/caffe/solvers/sgd_solver.o .build_release/src/caffe/solvers/adagrad_solver.o .build_release/src/caffe/solvers/rmsprop_solver.o .build_release/src/caffe/solvers/adam_solver.o .build_release/src/caffe/solvers/adadelta_solver.o .build_release/src/caffe/data_transformer.o .build_release/src/caffe/solver.o .build_release/src/caffe/syncedmem.o .build_release/src/caffe/layer.o .build_release/src/caffe/parallel.o .build_release/src/caffe/layers/multinomial_logistic_loss_layer.o .build_release/src/caffe/layers/cudnn_lrn_layer.o .build_release/src/caffe/layers/conv_layer.o .build_release/src/caffe/layers/hinge_loss_layer.o .build_release/src/caffe/layers/batch_norm_layer.o .build_release/src/caffe/layers/mvn_layer.o .build_release/src/caffe/layers/cudnn_conv_layer.o .build_release/src/caffe/layers/hdf5_data_layer.o .build_release/src/caffe/layers/data_layer.o .build_release/src/caffe/layers/pooling_layer.o .build_release/src/caffe/layers/cudnn_pooling_layer.o .build_release/src/caffe/layers/dropout_layer.o .build_release/src/caffe/layers/bnll_layer.o .build_release/src/caffe/layers/cudnn_sigmoid_layer.o .build_release/src/caffe/layers/hdf5_output_layer.o .build_release/src/caffe/layers/deconv_layer.o .build_release/src/caffe/layers/neuron_layer.o .build_release/src/caffe/layers/filter_layer.o .build_release/src/caffe/layers/softmax_layer.o .build_release/src/caffe/layers/reduction_layer.o .build_release/src/caffe/layers/argmax_layer.o .build_release/src/caffe/layers/slice_layer.o .build_release/src/caffe/layers/cudnn_relu_layer.o .build_release/src/caffe/layers/contrastive_loss_layer.o .build_release/src/caffe/layers/embed_layer.o .build_release/src/caffe/layers/image_data_layer.o .build_release/src/caffe/layers/memory_data_layer.o .build_release/src/caffe/layers/flatten_layer.o .build_release/src/caffe/layers/cudnn_lcn_layer.o .build_release/src/caffe/layers/inner_product_layer.o .build_release/src/caffe/layers/tile_layer.o .build_release/src/caffe/layers/softmax_loss_layer.o .build_release/src/caffe/layers/threshold_layer.o .build_release/src/caffe/layers/cudnn_softmax_layer.o .build_release/src/caffe/layers/spp_layer.o .build_release/src/caffe/layers/prelu_layer.o .build_release/src/caffe/layers/euclidean_loss_layer.o .build_release/src/caffe/layers/dummy_data_layer.o .build_release/src/caffe/layers/infogain_loss_layer.o .build_release/src/caffe/layers/accuracy_layer.o .build_release/src/caffe/layers/loss_layer.o .build_release/src/caffe/layers/tanh_layer.o .build_release/src/caffe/layers/lrn_layer.o .build_release/src/caffe/layers/im2col_layer.o .build_release/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o .build_release/src/caffe/layers/relu_layer.o .build_release/src/caffe/layers/silence_layer.o .build_release/src/caffe/layers/batch_reindex_layer.o .build_release/src/caffe/layers/absval_layer.o .build_release/src/caffe/layers/power_layer.o .build_release/src/caffe/layers/log_layer.o .build_release/src/caffe/layers/reshape_layer.o .build_release/src/caffe/layers/eltwise_layer.o .build_release/src/caffe/layers/exp_layer.o .build_release/src/caffe/layers/cudnn_tanh_layer.o .build_release/src/caffe/layers/concat_layer.o .build_release/src/caffe/layers/base_data_layer.o .build_release/src/caffe/layers/window_data_layer.o .build_release/src/caffe/layers/split_layer.o .build_release/src/caffe/layers/base_conv_layer.o .build_release/src/caffe/layers/sigmoid_layer.o .build_release/src/caffe/layer_factory.o .build_release/src/caffe/blob.o .build_release/src/caffe/data_reader.o .build_release/src/caffe/util/upgrade_proto.o .build_release/src/caffe/util/io.o .build_release/src/caffe/util/benchmark.o .build_release/src/caffe/util/im2col.o .build_release/src/caffe/util/signal_handler.o .build_release/src/caffe/util/math_functions.o .build_release/src/caffe/util/db_lmdb.o .build_release/src/caffe/util/db.o .build_release/src/caffe/util/db_leveldb.o .build_release/src/caffe/util/hdf5.o .build_release/src/caffe/util/insert_splits.o .build_release/src/caffe/util/cudnn.o .build_release/src/caffe/util/blocking_queue.o .build_release/src/caffe/net.o .build_release/src/caffe/common.o\nLD -o .build_release/lib/libcaffe.so\ng++ -shared -o .build_release/lib/libcaffe.so .build_release/src/caffe/proto/caffe.pb.o .build_release/src/caffe/internal_thread.o .build_release/src/caffe/solvers/nesterov_solver.o .build_release/src/caffe/solvers/sgd_solver.o .build_release/src/caffe/solvers/adagrad_solver.o .build_release/src/caffe/solvers/rmsprop_solver.o .build_release/src/caffe/solvers/adam_solver.o .build_release/src/caffe/solvers/adadelta_solver.o .build_release/src/caffe/data_transformer.o .build_release/src/caffe/solver.o .build_release/src/caffe/syncedmem.o .build_release/src/caffe/layer.o .build_release/src/caffe/parallel.o .build_release/src/caffe/layers/multinomial_logistic_loss_layer.o .build_release/src/caffe/layers/cudnn_lrn_layer.o .build_release/src/caffe/layers/conv_layer.o .build_release/src/caffe/layers/hinge_loss_layer.o .build_release/src/caffe/layers/batch_norm_layer.o .build_release/src/caffe/layers/mvn_layer.o .build_release/src/caffe/layers/cudnn_conv_layer.o .build_release/src/caffe/layers/hdf5_data_layer.o .build_release/src/caffe/layers/data_layer.o .build_release/src/caffe/layers/pooling_layer.o .build_release/src/caffe/layers/cudnn_pooling_layer.o .build_release/src/caffe/layers/dropout_layer.o .build_release/src/caffe/layers/bnll_layer.o .build_release/src/caffe/layers/cudnn_sigmoid_layer.o .build_release/src/caffe/layers/hdf5_output_layer.o .build_release/src/caffe/layers/deconv_layer.o .build_release/src/caffe/layers/neuron_layer.o .build_release/src/caffe/layers/filter_layer.o .build_release/src/caffe/layers/softmax_layer.o .build_release/src/caffe/layers/reduction_layer.o .build_release/src/caffe/layers/argmax_layer.o .build_release/src/caffe/layers/slice_layer.o .build_release/src/caffe/layers/cudnn_relu_layer.o .build_release/src/caffe/layers/contrastive_loss_layer.o .build_release/src/caffe/layers/embed_layer.o .build_release/src/caffe/layers/image_data_layer.o .build_release/src/caffe/layers/memory_data_layer.o .build_release/src/caffe/layers/flatten_layer.o .build_release/src/caffe/layers/cudnn_lcn_layer.o .build_release/src/caffe/layers/inner_product_layer.o .build_release/src/caffe/layers/tile_layer.o .build_release/src/caffe/layers/softmax_loss_layer.o .build_release/src/caffe/layers/threshold_layer.o .build_release/src/caffe/layers/cudnn_softmax_layer.o .build_release/src/caffe/layers/spp_layer.o .build_release/src/caffe/layers/prelu_layer.o .build_release/src/caffe/layers/euclidean_loss_layer.o .build_release/src/caffe/layers/dummy_data_layer.o .build_release/src/caffe/layers/infogain_loss_layer.o .build_release/src/caffe/layers/accuracy_layer.o .build_release/src/caffe/layers/loss_layer.o .build_release/src/caffe/layers/tanh_layer.o .build_release/src/caffe/layers/lrn_layer.o .build_release/src/caffe/layers/im2col_layer.o .build_release/src/caffe/layers/sigmoid_cross_entropy_loss_layer.o .build_release/src/caffe/layers/relu_layer.o .build_release/src/caffe/layers/silence_layer.o .build_release/src/caffe/layers/batch_reindex_layer.o .build_release/src/caffe/layers/absval_layer.o .build_release/src/caffe/layers/power_layer.o .build_release/src/caffe/layers/log_layer.o .build_release/src/caffe/layers/reshape_layer.o .build_release/src/caffe/layers/eltwise_layer.o .build_release/src/caffe/layers/exp_layer.o .build_release/src/caffe/layers/cudnn_tanh_layer.o .build_release/src/caffe/layers/concat_layer.o .build_release/src/caffe/layers/base_data_layer.o .build_release/src/caffe/layers/window_data_layer.o .build_release/src/caffe/layers/split_layer.o .build_release/src/caffe/layers/base_conv_layer.o .build_release/src/caffe/layers/sigmoid_layer.o .build_release/src/caffe/layer_factory.o .build_release/src/caffe/blob.o .build_release/src/caffe/data_reader.o .build_release/src/caffe/util/upgrade_proto.o .build_release/src/caffe/util/io.o .build_release/src/caffe/util/benchmark.o .build_release/src/caffe/util/im2col.o .build_release/src/caffe/util/signal_handler.o .build_release/src/caffe/util/math_functions.o .build_release/src/caffe/util/db_lmdb.o .build_release/src/caffe/util/db.o .build_release/src/caffe/util/db_leveldb.o .build_release/src/caffe/util/hdf5.o .build_release/src/caffe/util/insert_splits.o .build_release/src/caffe/util/cudnn.o .build_release/src/caffe/util/blocking_queue.o .build_release/src/caffe/net.o .build_release/src/caffe/common.o -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \nCXX tools/finetune_net.cpp\ng++ tools/finetune_net.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/finetune_net.o 2&gt; .build_release/tools/finetune_net.o.warnings.txt \\\n || (cat .build_release/tools/finetune_net.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/finetune_net.bin\ng++ .build_release/tools/finetune_net.o -o .build_release/tools/finetune_net.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/device_query.cpp\ng++ tools/device_query.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/device_query.o 2&gt; .build_release/tools/device_query.o.warnings.txt \\\n || (cat .build_release/tools/device_query.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/device_query.bin\ng++ .build_release/tools/device_query.o -o .build_release/tools/device_query.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/caffe.cpp\ng++ tools/caffe.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/caffe.o 2&gt; .build_release/tools/caffe.o.warnings.txt \\\n || (cat .build_release/tools/caffe.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/caffe.bin\ng++ .build_release/tools/caffe.o -o .build_release/tools/caffe.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/upgrade_net_proto_binary.cpp\ng++ tools/upgrade_net_proto_binary.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/upgrade_net_proto_binary.o 2&gt; .build_release/tools/upgrade_net_proto_binary.o.warnings.txt \\\n || (cat .build_release/tools/upgrade_net_proto_binary.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/upgrade_net_proto_binary.bin\ng++ .build_release/tools/upgrade_net_proto_binary.o -o .build_release/tools/upgrade_net_proto_binary.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/extract_features.cpp\ng++ tools/extract_features.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/extract_features.o 2&gt; .build_release/tools/extract_features.o.warnings.txt \\\n || (cat .build_release/tools/extract_features.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/extract_features.bin\ng++ .build_release/tools/extract_features.o -o .build_release/tools/extract_features.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/upgrade_net_proto_text.cpp\ng++ tools/upgrade_net_proto_text.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/upgrade_net_proto_text.o 2&gt; .build_release/tools/upgrade_net_proto_text.o.warnings.txt \\\n || (cat .build_release/tools/upgrade_net_proto_text.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/upgrade_net_proto_text.bin\ng++ .build_release/tools/upgrade_net_proto_text.o -o .build_release/tools/upgrade_net_proto_text.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/test_net.cpp\ng++ tools/test_net.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/test_net.o 2&gt; .build_release/tools/test_net.o.warnings.txt \\\n || (cat .build_release/tools/test_net.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/test_net.bin\ng++ .build_release/tools/test_net.o -o .build_release/tools/test_net.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/convert_imageset.cpp\ng++ tools/convert_imageset.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/convert_imageset.o 2&gt; .build_release/tools/convert_imageset.o.warnings.txt \\\n || (cat .build_release/tools/convert_imageset.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/convert_imageset.bin\ng++ .build_release/tools/convert_imageset.o -o .build_release/tools/convert_imageset.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/upgrade_solver_proto_text.cpp\ng++ tools/upgrade_solver_proto_text.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/upgrade_solver_proto_text.o 2&gt; .build_release/tools/upgrade_solver_proto_text.o.warnings.txt \\\n || (cat .build_release/tools/upgrade_solver_proto_text.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/upgrade_solver_proto_text.bin\ng++ .build_release/tools/upgrade_solver_proto_text.o -o .build_release/tools/upgrade_solver_proto_text.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/compute_image_mean.cpp\ng++ tools/compute_image_mean.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/compute_image_mean.o 2&gt; .build_release/tools/compute_image_mean.o.warnings.txt \\\n || (cat .build_release/tools/compute_image_mean.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/compute_image_mean.bin\ng++ .build_release/tools/compute_image_mean.o -o .build_release/tools/compute_image_mean.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/net_speed_benchmark.cpp\ng++ tools/net_speed_benchmark.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/net_speed_benchmark.o 2&gt; .build_release/tools/net_speed_benchmark.o.warnings.txt \\\n || (cat .build_release/tools/net_speed_benchmark.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/net_speed_benchmark.bin\ng++ .build_release/tools/net_speed_benchmark.o -o .build_release/tools/net_speed_benchmark.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nCXX tools/train_net.cpp\ng++ tools/train_net.cpp -MMD -MP -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -c -o .build_release/tools/train_net.o 2&gt; .build_release/tools/train_net.o.warnings.txt \\\n || (cat .build_release/tools/train_net.o.warnings.txt; exit 1)\nCXX/LD -o .build_release/tools/train_net.bin\ng++ .build_release/tools/train_net.o -o .build_release/tools/train_net.bin -pthread -fPIC -DNDEBUG -O2 -DUSE_OPENCV -DUSE_LEVELDB -DUSE_LMDB -DCPU_ONLY -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/local/include -I.build_release/src -I./src -I./include -Wall -Wno-sign-compare -lcaffe -L/usr/lib -L/usr/local/lib -L/usr/lib -L.build_release/lib -lglog -lgflags -lprotobuf -lboost_system -lboost_filesystem -lm -lhdf5_hl -lhdf5 -lleveldb -lsnappy -llmdb -lopencv_core -lopencv_highgui -lopencv_imgproc -lboost_thread -lstdc++ -lcblas -latlas \\\n -Wl,-rpath,\\$ORIGIN/../lib\nln: target \u2018.build_release/tools/finetune_net\u2019 is not a directory\nMakefile:592: recipe for target '.build_release/tools/finetune_net' failed\nmake: *** [.build_release/tools/finetune_net] Error 1\n</code></pre>\n\n<p>How should I proceed with this ?</p>\n\n<p>Edit: I am also posting my Makeconfig.config file (only the uncommented part)</p>\n", "Lable": "D"}
{"QuestionId": 33738600, "AnswerCount": 2, "Tags": "<android><android-support-library><android-toolbar><android-coordinatorlayout>", "CreationDate": "2015-11-16T15:12:57.323", "AcceptedAnswerId": null, "Title": "android Place content below toolbar", "Body": "<p>I have this layout: </p>\n\n<pre><code>&lt;android.support.design.widget.CoordinatorLayout\n xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:app=\"http://schemas.android.com/apk/res-auto\"\n android:id=\"@+id/coordinatorLayout\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"match_parent\"&gt;\n\n &lt;android.support.design.widget.AppBarLayout\n android:id=\"@+id/appBarLayout\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"wrap_content\"&gt;\n\n &lt;android.support.v7.widget.Toolbar\n android:id=\"@+id/toolbar\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"?attr/actionBarSize\"\n android:background=\"?attr/colorPrimary\"\n app:layout_scrollFlags=\"scroll|enterAlways|snap\"/&gt;\n\n &lt;/android.support.design.widget.AppBarLayout&gt;\n\n &lt;android.support.v7.widget.RecyclerView\n android:id=\"@+id/recyclerView\"\n android:layout_width=\"match_parent\"\n android:layout_height=\"match_parent\"\n app:layout_behavior=\"@string/appbar_scrolling_view_behavior\"&gt;\n\n &lt;/android.support.v7.widget.RecyclerView&gt;\n\n &lt;android.support.design.widget.FloatingActionButton\n android:id=\"@+id/fabButton\"\n android:layout_width=\"wrap_content\"\n android:layout_height=\"wrap_content\"\n android:layout_gravity=\"end|bottom\"\n android:src=\"@drawable/ic_favorite_outline_white_24dp\"/&gt;\n\n&lt;/android.support.design.widget.CoordinatorLayout&gt;\n</code></pre>\n\n<p>Setting <code>@string/appbar_scrolling_view_behavior</code> attribute shifts the RecyclerView by the height of the Toolbar.</p>\n\n<p>But what if I need the first element of the RecyclerView to be aligned to the status bar. <br/>\nI want the Toolbar to cover (be above) the first element.<br/></p>\n\n<p>In other words, I don't want any offset which <code>@string/appbar_scrolling_view_behavior</code> behaviour entails.</p>\n\n<p>Could you please tell me how to do that?</p>\n", "Lable": "No"}
{"QuestionId": 33806499, "AnswerCount": 2, "Tags": "<javascript><html><for-loop><calculator>", "CreationDate": "2015-11-19T14:21:27.390", "AcceptedAnswerId": "33806735", "Title": "How to loop through tag element and getting a respective content on a display by OnClick function?", "Body": "<p><div class=\"snippet\" data-lang=\"js\" data-hide=\"false\">\r\n<div class=\"snippet-code\">\r\n<pre class=\"snippet-code-js lang-js prettyprint-override\"><code>var key=\"\";\r\n\r\n//get key values\r\nvar x = document.getElementById(\"calculator\");\r\nvar y = x.getElementsByTagName(\"span\");\r\n\r\nfunction calc()\r\n{\r\n for(var i = 0; i &lt;= y.length; i++)\r\n {\r\n key+=y[i].innerHTML;\r\n document.getElementById(\"display\").innerHTML=key;\r\n\r\n }\r\n};</code></pre>\r\n</div>\r\n</div>\r\n</p>\n\n<p>I am trying to:</p>\n\n<ul>\n<li>loop trough the content of all the span tags in my code (which\ncontain the key values of the calculator)\nusing\"document.getElementsByTagName\"</li>\n<li>when you click on a respective key of the calculator (ex.click on key\n\"8\"),obtain the content of only that key you are clicking</li>\n<li>when you get the content of that key you are clicking, add it to the\nvariable key=\"\" (ex. key+=\"8\")</li>\n<li>display the result in the span called \"display\" which is the black\nscreen of the calculator. (display on the black screen the\nnumber:\"8\")</li>\n</ul>\n\n<p>This program basically should just get the content of the key you are clicking on the calculator and display it on the screen.</p>\n\n<p>The <a href=\"http://jsfiddle.net/8gkc2oxe/11/\" rel=\"nofollow\">code</a> I have at the moment is only looping through the span tags, getting their content but it fails since it prints all the spans content in the calculator display at the same time no matter which key you click on. \nIs there a way to fix it? I know there are other options like eventlistener or setting a function for each key, but i would like to know if this code has some logic and could be completed to perform the task.</p>\n", "Lable": "No"}
{"QuestionId": 33952437, "AnswerCount": 2, "Tags": "<ios><objective-c><swift><nsnotificationcenter><nsnotification>", "CreationDate": "2015-11-27T07:39:43.147", "AcceptedAnswerId": null, "Title": "Listen to NSNotification from one global place", "Body": "<p>In my application I need that each controller showed popup when some event happens.</p>\n\n<p>I can listen to this NSNotification in each controller. But I don't want to duplicate the code.</p>\n\n<p>Is there a way to listen to NSNotification and do some actions globally?</p>\n", "Lable": "No"}
{"QuestionId": 34009904, "AnswerCount": 2, "Tags": "<windows><batch-file><cmd><echo><command-prompt>", "CreationDate": "2015-11-30T23:26:32.287", "AcceptedAnswerId": "34017090", "Title": "CMD Echo Command Keeps Only Last Line of Text", "Body": "<p>I'm creating a batch file and I'm having trouble with the following command:</p>\n\n<pre><code> echo Hello &amp; echo.World &gt; Text.txt\n</code></pre>\n\n<p>Whenever I do this command the output only shows the last line, like so:</p>\n\n<blockquote>\n <p>World</p>\n</blockquote>\n\n<p>But if I just do the above command in CMD without writing to a file, it appears perfectly in the command prompt. I have complete access over my file but I still can't seem to be able to write the whole text.</p>\n", "Lable": "No"}
{"QuestionId": 34045096, "AnswerCount": 1, "Tags": "<python><theano><mnist>", "CreationDate": "2015-12-02T14:22:30.807", "AcceptedAnswerId": null, "Title": "Theano CUDA exception", "Body": "<p>I'm relatively new to theano and I want to run the mnist example on my\nGPU but I get the following output:</p>\n\n<pre><code>Using gpu device 0: GeForce GTX 970M (CNMeM is disabled)\nLoading data...\nBuilding model and compiling functions...\nWARNING (theano.gof.compilelock):\n Overriding existing lock by dead process '9700' (I am process '10632')\n\nDEBUG: nvcc STDOUT mod.cu\nCreating library \n C:/Users/user/AppData/Local/Theano\n /compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_71_Stepping_1_GenuineIntel-3.4.3-64\n /tmp55nlvvvo/m25b839e7715203be227800f03e7c8fe8.lib \nand object \n C:/Users/user/AppData/Local/Theano\n /compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_71_Stepping_1_GenuineIntel-3.4.3-64\n /tmp55nlvvvo/m25b839e7715203be227800f03e7c8fe8.exp\n</code></pre>\n\n<p>It keeps outputting DEBUG messages without any output of mnist.\nI have a working version of nvcc:</p>\n\n<pre><code>C:\\Users\\user&gt;nvcc --version\nnvcc: NVIDIA (R) Cuda compiler driver\nCopyright (c) 2005-2015 NVIDIA Corporation\nBuilt on Tue_Aug_11_14:49:10_CDT_2015\nCuda compilation tools, release 7.5, V7.5.17\n</code></pre>\n\n<p>And my <code>.theanorc</code> file:</p>\n\n<pre><code>[global]\nfloatX = float32\ndevice = gpu0\n\n[nvcc]\nfastmath = True\n</code></pre>\n\n<p>How can I solve this?</p>\n", "Lable": "D"}
{"QuestionId": 34079787, "AnswerCount": 3, "Tags": "<python><tensorflow>", "CreationDate": "2015-12-04T02:11:33.500", "AcceptedAnswerId": "34082273", "Title": "Tensor with unspecified dimension in tensorflow", "Body": "<p>I'm playing around with tensorflow and ran into a problem with the following code:</p>\n\n<pre><code>def _init_parameters(self, input_data, labels):\n\n # the input shape is (batch_size, input_size)\n input_size = tf.shape(input_data)[1]\n\n # labels in one-hot format have shape (batch_size, num_classes)\n num_classes = tf.shape(labels)[1]\n\n stddev = 1.0 / tf.cast(input_size, tf.float32)\n\n w_shape = tf.pack([input_size, num_classes], 'w-shape')\n normal_dist = tf.truncated_normal(w_shape, stddev=stddev, name='normaldist')\n self.w = tf.Variable(normal_dist, name='weights')\n</code></pre>\n\n<p>(I'm using <code>tf.pack</code> as suggested in <a href=\"https://stackoverflow.com/questions/33711427/tensorflow-initializing-tensor-of-ones\">this question</a>, since I was getting the same error)</p>\n\n<p>When I run it (from a larger script that invokes this one), I get this error:</p>\n\n<pre><code>ValueError: initial_value must have a shape specified: Tensor(\"normaldist:0\", shape=TensorShape([Dimension(None), Dimension(None)]), dtype=float32)\n</code></pre>\n\n<p>I tried to replicate the process in the interactive shell. Indeed, the dimensions of <code>normal_dist</code> are unspecified, although the supplied values do exist:</p>\n\n<pre><code>In [70]: input_size.eval()\nOut[70]: 4\n\nIn [71]: num_classes.eval()\nOut[71]: 3\n\nIn [72]: w_shape.eval()\nOut[72]: array([4, 3], dtype=int32)\n\nIn [73]: normal_dist.eval()\nOut[73]: \narray([[-0.27035281, -0.223277 , 0.14694688],\n [-0.16527176, 0.02180306, 0.00807841],\n [ 0.22624688, 0.36425814, -0.03099642],\n [ 0.25575709, -0.02765726, -0.26169327]], dtype=float32)\n\nIn [78]: normal_dist.get_shape()\nOut[78]: TensorShape([Dimension(None), Dimension(None)])\n</code></pre>\n\n<p>This is weird. Tensorflow generates the vector but can't say its shape. Am I doing something wrong?</p>\n", "Lable": "D"}
{"QuestionId": 34116402, "AnswerCount": 2, "Tags": "<tensorflow><training-data><conv-neural-network>", "CreationDate": "2015-12-06T10:32:30.180", "AcceptedAnswerId": "34390081", "Title": "Tensorflow Convolution Neural Net - Training with a small dataset, applying random changes to Images", "Body": "\n\n<p>Say I have a very small dataset, just 50 Images. I want to re-use the code from the tutorial at <a href=\"https://github.com/tensorflow/tensorflow/blob/master/tensorflow/g3doc/tutorials/mnist/pros/index.md\" rel=\"nofollow noreferrer\">Red Pill</a>, but apply random transformations to the same set of Images in each Batch of training, say random changes to Brightness, Contrast etc. I added just one function:</p>\n\n<pre class=\"lang-py prettyprint-override\"><code>def preprocessImages(x):\n retValue = numpy.empty_like(x)\n for i in range(50):\n image = x[i]\n image = tf.reshape(image, [28,28,1])\n image = tf.image.random_brightness(image, max_delta=63)\n #image = tf.image.random_contrast(image, lower=0.2, upper=1.8)\n # Subtract off the mean and divide by the variance of the pixels.\n float_image = tf.image.per_image_whitening(image)\n float_image_Mat = sess.run(float_image)\n retValue[i] = float_image_Mat.reshape((28*28))\n return retValue\n</code></pre>\n\n<p>Small change to the old code:</p>\n\n<pre class=\"lang-py prettyprint-override\"><code>batch = mnist.train.next_batch(50)\nfor i in range(1000):\n #batch = mnist.train.next_batch(50)\n if i%100 == 0:\n train_accuracy = accuracy.eval(feed_dict={\n x:preprocessImages(batch[0]), y_: batch[1], keep_prob: 1.0})\n print(\"step %d, training accuracy %g\"%(i, train_accuracy))\n train_step.run(feed_dict={x: preprocessImages(batch[0]), y_: batch[1], keep_prob: 0.5})\n</code></pre>\n\n<p>First iteration is successful, thereafter it crashes:</p>\n\n<pre class=\"lang-py prettyprint-override\"><code>step 0, training accuracy 0.02\nW tensorflow/core/common_runtime/executor.cc:1027] 0x117e76c0 Compute status: Invalid argument: ReluGrad input is not finite. : Tensor had NaN values\n [[Node: gradients_4/Relu_12_grad/Relu_12/CheckNumerics = CheckNumerics[T=DT_FLOAT, message=\"ReluGrad input is not finite.\", _device=\"/job:localhost/replica:0/task:0/cpu:0\"](add_16)]]\nW tensorflow/core/common_runtime/executor.cc:1027] 0x117e76c0 Compute status: Invalid argument: ReluGrad input is not finite. : Tensor had NaN values\n [[Node: gradients_4/Relu_13_grad/Relu_13/CheckNumerics = CheckNumerics[T=DT_FLOAT, message=\"ReluGrad input is not finite.\", _device=\"/job:localhost/replica:0/task:0/cpu:0\"](add_17)]]\nW tensorflow/core/common_runtime/executor.cc:1027] 0x117e76c0 Compute status: Invalid argument: ReluGrad input is not finite. : Tensor had NaN values\n [[Node: gradients_4/Relu_14_grad/Relu_14/CheckNumerics = CheckNumerics[T=DT_FLOAT, message=\"ReluGrad input is not finite.\", _device=\"/job:localhost/replica:0/task:0/cpu:0\"](add_18)]]\nTraceback (most recent call last):\n File \"&lt;stdin&gt;\", line 1, in &lt;module&gt;\n File \"/media/sf_Data/mnistConv.py\", line 69, in &lt;module&gt;\n train_step.run(feed_dict={x: preprocessImages(batch[0]), y_: batch[1], keep_prob: 0.5})\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 1267, in run\n _run_using_default_session(self, feed_dict, self.graph, session)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 2763, in _run_using_default_session\n session.run(operation, feed_dict)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py\", line 345, in run\n results = self._do_run(target_list, unique_fetch_targets, feed_dict_string)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/client/session.py\", line 419, in _do_run\n e.code)\ntensorflow.python.framework.errors.InvalidArgumentError: ReluGrad input is not finite. : Tensor had NaN values\n [[Node: gradients_4/Relu_12_grad/Relu_12/CheckNumerics = CheckNumerics[T=DT_FLOAT, message=\"ReluGrad input is not finite.\", _device=\"/job:localhost/replica:0/task:0/cpu:0\"](add_16)]]\nCaused by op u'gradients_4/Relu_12_grad/Relu_12/CheckNumerics', defined at:\n File \"&lt;stdin&gt;\", line 1, in &lt;module&gt;\n File \"/media/sf_Data/mnistConv.py\", line 58, in &lt;module&gt;\n train_step = tf.train.AdamOptimizer(1e-4).minimize(cross_entropy)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py\", line 165, in minimize\n gate_gradients=gate_gradients)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/training/optimizer.py\", line 205, in compute_gradients\n loss, var_list, gate_gradients=(gate_gradients == Optimizer.GATE_OP))\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gradients.py\", line 414, in gradients\n in_grads = _AsList(grad_fn(op_wrapper, *out_grads))\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/nn_grad.py\", line 107, in _ReluGrad\n t = _VerifyTensor(op.inputs[0], op.name, \"ReluGrad input is not finite.\")\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/nn_grad.py\", line 100, in _VerifyTensor\n verify_input = array_ops.check_numerics(t, message=msg)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_array_ops.py\", line 48, in check_numerics\n name=name)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py\", line 633, in apply_op\n op_def=op_def)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 1710, in create_op\n original_op=self._default_original_op, op_def=op_def)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 988, in __init__\n self._traceback = _extract_stack()\n\n...which was originally created as op u'Relu_12', defined at:\n File \"&lt;stdin&gt;\", line 1, in &lt;module&gt;\n File \"/media/sf_Data/mnistConv.py\", line 34, in &lt;module&gt;\n h_conv1 = tf.nn.relu(conv2d(x_image, W_conv1) + b_conv1)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/gen_nn_ops.py\", line 506, in relu\n return _op_def_lib.apply_op(\"Relu\", features=features, name=name)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/ops/op_def_library.py\", line 633, in apply_op\n op_def=op_def)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 1710, in create_op\n original_op=self._default_original_op, op_def=op_def)\n File \"/usr/local/lib/python2.7/dist-packages/tensorflow/python/framework/ops.py\", line 988, in __init__\n self._traceback = _extract_stack()\n</code></pre>\n\n<p>This is exactly the same error that I get with my personal dataset with 50 training examples. </p>\n", "Lable": "D"}
{"QuestionId": 34120142, "AnswerCount": 1, "Tags": "<string><swift><utf-8>", "CreationDate": "2015-12-06T17:01:03.037", "AcceptedAnswerId": "34121525", "Title": "Swift: CFArray : get values as UTF Strings", "Body": "<p>I call some functions that return a <code>CFArray</code> of <code>CFStringRef</code> values. I need to get utf strings from them. As I didn't want to make my code too complicated, I did the following:</p>\n\n<p><code>let initString = \"\\(TISCreateInputSourceList(nil, false).takeUnretainedValue())\"</code></p>\n\n<p>And then I just split the resulting string by <code>\\n</code>s to get an array of Swift strings. However, when the function started returning non-ascii strings, trouble started. I started getting strings like \"\\U2345\\U2344\". </p>\n\n<p>Then i tried to take the CFArray and iterate over it getting the values and possibly converting them to Strings, but I can't get the values from it:</p>\n\n<p><code><pre> let ar = TISCreateInputSourceList(nil, true).takeUnretainedValue()\n for i in 0...CFArrayGetCount(ar) - 1 {\n print(\">> ( CFArrayGetValueAtIndex(ar, i).memory )\")\n }\n</pre></code></p>\n\n<p>The values are always empty. </p>\n\n<p>How can i get the actual values?</p>\n", "Lable": "No"}
{"QuestionId": 34159719, "AnswerCount": 2, "Tags": "<python><matplotlib><plot><linechart>", "CreationDate": "2015-12-08T15:28:55.867", "AcceptedAnswerId": "34161587", "Title": "How can i plot line chart in python?", "Body": "<p>i have a <a href=\"http://notes.io/qH4b\" rel=\"nofollow noreferrer\">txt file </a>. Here are some example rows:</p>\n\n<pre><code>computer 2015-11-26 08:47:00 86\ncomputer 2015-11-26 08:48:00 78\ncomputer 2015-11-26 08:49:00 61\ncomputer 2015-11-26 08:50:00 50\ncomputer 2015-11-26 08:51:00 53\ncomputer 2015-11-26 08:52:00 61\ncomputer 2015-11-26 08:53:00 60\ncomputer 2015-11-26 08:54:00 50\ncomputer 2015-11-26 08:55:00 91\ncomputer 2015-11-26 08:56:00 99\ncomputer 2015-11-26 08:57:00 75\ncomputer 2015-11-26 08:58:00 105\ncomputer 2015-11-26 08:59:00 67\ncomputer 2015-11-26 09:00:00 63\n</code></pre>\n\n<p>I want to plot line chart like this:</p>\n\n<p><img src=\"https://i.stack.imgur.com/Lbfg1.png\" alt=\"like this\"></p>\n\n<p>how can i do this?</p>\n\n<p>i try <a href=\"https://stackoverflow.com/questions/4805048/how-to-get-different-colored-lines-for-different-plots-in-a-single-figure\">this example</a>, but i didnt do it </p>\n\n<pre><code>plt.bar()\n plt.xticks()\n plt.ylabel()\n plt.title()\n plt.savefig() \n plt.show()\n</code></pre>\n\n<p>how can i devolop this code?</p>\n", "Lable": "No"}