Posts

Showing posts from August, 2013

html - CSS - background image not showing properly -

no matter do, cannot image in .container div show when formatting css. top ~10% of image showing. if put img tag in html work perfectly. want format in css, not html, , in such away mobile-first compatible. want image centered , larger it's displaying. here html: <!doctype html> <html lang="en-us"> <link rel="stylesheet" type="text/css" href="rabstyle.css"> <title>home</title> <meta charset = "utf-8"> <meta name="author" content="beth bennett"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <body> <header> <div class="icons"><p>icons</p></div> <ul class = "buttons"> <button id="login" type="button">log in</button> <button id="signup" type="button">sign up</button> </ul> </header>

How can I check for inclusion of a datetime in a range in Rails? -

using ruby's range#include? datetime range throws exception: > (time.zone.now.beginning_of_day..time.zone.now.end_of_day).include?(time.zone.now) typeerror: can't iterate activesupport::timewithzone while using rails' range#overlaps? works: > (time.zone.now.beginning_of_day..time.zone.now.end_of_day).overlaps?(time.zone.now..time.zone.now) => true i dislike fact have create single-element range check inclusion using overlaps? there way use include? datetime range in rails? aha! how this? time.zone.now.between?(time.zone.now.beginning_of_day,time.zone.now.end_of_day) result: 2.3.0 :001 > time.zone.now.between?(time.zone.now.beginning_of_day,time.zone.tomorrow.end_of_day) => true 2.3.0 :002 > time.zone.tomorrow.between?(time.zone.now.beginning_of_day,time.zone.now.end_of_day) => false 2.3.0 :003 > time.zone.yesterday.between?(time.zone.now.beginning_of_day,time.zone.now.end_of_day) reference: http://apidock.com/ra

ruby - Rails engine gem should or should not explicitly load helpers? -

i'm wondering if rails engine gem, such react on rails , should using line of code explicitly load helper: activesupport.on_load(:action_view) include reactonrailshelper end this not needed normal rails application use of gem. however, users have reported issue. any opinions? here's specific issue reported: https://github.com/shakacode/react_on_rails/issues/385#issuecomment-209964034 this how react-rails gem (not rails engine): https://github.com/reactjs/react-rails/blob/master/lib/react/rails/railtie.rb#l42-l44

multithreading - Why doesn't Go's LockOSThread lock this OS thread? -

the documentation runtime.lockosthread states: lockosthread wires calling goroutine current operating system thread. until calling goroutine exits or calls unlockosthread, execute in thread, , no other goroutine can. but consider program: package main import ( "fmt" "runtime" "time" ) func main() { runtime.gomaxprocs(1) runtime.lockosthread() go fmt.println("this shouldn't run") time.sleep(1 * time.second) } the main goroutine wired 1 available os thread set gomaxprocs , expect goroutine created on line 3 of main not run. instead program prints this shouldn't run , pauses 1 second, , quits. why happen? from runtime package documentation : the gomaxprocs variable limits number of operating system threads can execute user-level go code simultaneously. there no limit number of threads can blocked in system calls on behalf of go code; not count against gomaxprocs limit. the s

asp.net elmah: how to display own error message instead of 'Specified method is not supported' -

i trying display "hello testing elmah" in error column of elmah errorlog. got in asp.net app: var customex = new exception("hello testing elmah", new notsupportedexception()); elmah.errorsignal.fromcurrentcontext().raise(customex); at moment comes specified method not supported. how can change this?

Looking for mysql performance test tool that can specify query, number of threads, frequency, time of test -

i want check spec of cpu , iops needed db server doing performance test mysql could tell me if know mysql performance test tool can following: can specify query   - want use "join" , "where" in query use in test, can specify number of threads can specify frequency send query   - there query has sent 110 times in second, whereas there query has sent once in 20seconds can specify time of test   - want run test 3 minutes you can jmeter simulate scenario want. http://jmeter.apache.org/usermanual/build-db-test-plan.html

html - Change styling when add new sibling in pure CSS -

i have container children: <div id="container"> <div></div> <div></div> <div></div> </div> sometimes want add child (server-side) container , change styling of other children make room new sibling. become: <div id="container"> <div id="special"></div> <div></div> <div></div> <div></div> </div> can achieve purely in css? there fancy new selectors (css4?) can use? i want avoid javascript or changing attributes (classes) of of elements. did read lack of parent selectors in css articles read couple of years old, suspect there might brand new selectors can take advantage of. #container #special { float: left; background: yellow; } #container div { /* float: none; default */ background: white; } is simplest way style elements differently in css: div styled because of second rule ( whether or not

c# - public static readonly field vs getter for a lookup list -

i'm choosing between 2 implementations lookup (readonly) list of strings. with getter: public static list<string> mylist { { return mylist; } } private static readonly list<string> mylist = new list<string> { "item 1", "item 2", "item 3" }; or simply: public static readonly list<string> mylist = new list<string> { "item 1", "item 2", "item 3" }; i go second 1 simplicity, reading code looks second implementation create new list every time, whereas in first implementation there's no such recurring overhead. is right way think it? or there better implementations trying achieve? thanks! personally i'd recommend using properties because they're more flexible. example implement lazy loading of collection behind property, can't field. however, there's much bigger problem code. read fields , read properties ensure reference mylist cannot reass

node.js - Angular2 Formbuilder Show submitted data for editing purpose -

i have simple form takes user input , posts database. the form follows import {component, oninit} 'angular2/core'; import {router_directives} "angular2/router"; import {homecomponent} "../home/homecomponent"; import {formbuilder, validators, controlgroup} "angular2/common"; @component({ selector: 'profile', template: `<h1>profile page</h1> <form [ngformmodel]="myform" (ngsubmit)="onsubmit()" #f="ngform"> <div> <label from="name">name</label> <input [ngformcontrol]="myform.controls['name'] "type="text" id="name" #name="ngform"> <span class="validator-error" *ngif="!name.valid"> required</span> </div> <button type="submit" [disabled]="!f.valid">submit</button> </form> <a

android - Open ports for accessing GCM servers (hostname, IP and ports needed) -

we have requirement project send push notifications android devices. understand, gcm way go. company network team needs open firewall ports connect gcm send push notifications. need development , production environment. not sure if gcm has development environment. here questions: (1) android.apis.google.com ports 5228,5229. is/are ip address(es)to specify server? (2) android.googleapis.com ports 5230 , 443. is/are ip address(es) specify server? (3) there development environment gcm? if yes, is/are gcm server hostnames, ip addresses , ports? thanks in advance. from docs : if organization has firewall restricts traffic or internet, need configure allow connectivity fcm in order firebase cloud messaging client apps receive messages. ports open are: 5228, 5229, , 5230. fcm typically uses 5228, uses 5229 , 5230. fcm doesn't provide specific ips, should allow firewall accept outgoing connections ip addresses contained in ip blocks listed in google&

python - QDataWidgetMapper-find index for sqlite database row in pyqt -

i want use qdatawidgetmapper link widget data in sqlite table. methods find specifying data's row ones seem work if iterating through rows sequentially 1 @ time: setcurrentindex, tofirst, tolast, tonext, toprevious. able jump directly row containing data needed, , retrieve handle row pass mapper. the primary key of table integer autoincrements, since rows can deleted there no guarantee index guessed using key. ------------------------- | item_info | |-----------------------| |item_id | item_desc | |---------|-------------| |1 | item 1 | |2 | item 2 | |7 | blue item | |15 | pink item | #ordered index 3 ------------------------- i briefly hoped able use rowid return ordered index of table rows, looks returns primary key , isn't related notion of row's position in table. i use counter go through each row until correct 1 found, , use resulting counter value argument setcurrentindex, seems terrible solution. her

oracle - SQL Developer, substitution variable, dynamic creation, based on equation -

i want have single parameter in script year. define yyyy = 2014; then want 2nd parameter based on one yyyy2 = &&yyyy - 1; i.e. it's 1 year earlier but reading i've done far seems impossible. here's attempt define yyyy = 2014; define yyyy2 = &&yyyy - 1; select &&yyyy, &&yyyy2 dual select * cb_enrolment2_&&yyyy; select * cb_enrolment2_&&yyyy2 ; response last line of code : ora-00933: sql command not ended 00933. 00000 - "sql command not ended" *cause: *action: error @ line: x column: y that happens because assign, literally, 2014 - 1 yyyy2 . so: select &&yyyy, &&yyyy2 dual turns select 2014, 2014 - 1 dual which valid query, but select * cb_enrolment2_&&yyyy2 turns into select * cb_enrolment2_2014 - 1 which gives error. you can't math directly on substitution variables, can select data database them, using column command new_value argu

gradle - Make one source set dependent on another -

i have integration test source set in gradle, , dependent on main classes being compiled. set doing integrationtestclasses.dependson 'classes' is way it, or there way setup dependencies on source sets happens automatically? in configurations block have integrationtestcompile { extendsfrom testcompile } integrationtestruntime { extendsfrom integrationtestcompile, testruntime } what's missing is: dependencies { integrationtestcompile sourcesets.main.output } with in place, task dependencies should established automatically.

angularjs - how to filter a combo box that is created by a Ng-Repeat based on the same combo box in the previous row in Angular js? -

i have select element repeated ng-repeat directive when " addbutton " clicked . object fills select element has format : { id: 1, title: 'aaa', priority: 1 }, i want when user selects option combo box , clicks on " addbutton ", in next row options have priority greater the previous selected item priority list , shown . code : <!doctype html> <html ng-app="mainapplication"> <head> <title></title> <meta charset="utf-8" /> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.5/angular.min.js"></script> <script> var mainapplication = angular.module('mainapplication', []); mainapplication.controller('maincontroller', ['$scope', function ($scope) {

sparkr - JVM is not ready after 10 seconds -

i configured sparkr tutorials, , working. able read database read.df , nothing else works, , following error appears: error in sparkr.init(master = "local") : jvm not ready after 10 seconds why appear suddenly? i've read other users same problem, solutions given did not work. below code: sys.setenv(spark_home= "c:/spark") sys.setenv(hadoop_home = "c:/hadoop") .libpaths(c(file.path(sys.getenv("spark_home"), "r", "lib"), .libpaths())) library(sparkr) #initialeze sparkr environment sys.setenv('sparkr_submit_args'='"--packages" "com.databricks:spark-csv_2.11:1.2.0" "sparkr-shell"') sys.setenv(spark_mem="4g") #create spark context , sql context sc <- sparkr.init(master = "local") sqlcontext <- sparkrsql.init(sc) try few things below: check if c:/windows/system32/ there in path. check if spark-submit.cmd has proper execute per

regex - What's regexp `^\(.*\)\n\1$` mean? -

i happen find regular expression in sed documents: ^\(.*\)\n\1$ and explains: matches string consisting of 2 equal substrings separated newline. i can see matches characters, ends newline, nothing more. give me explanation? the patterns inside parentheses () called capture groups . the \1 means " whatever matched first capture group ". here's character character breakdown: ^ - matches beginning of input \( - begin capture group (the `(` character must escaped backslash) .* - 0 or more characters \) - end capture group \n - newline character \1 - text "captured" first capture group $ - matches end of input

python - Selenium handling pop-up&Google Autocomplete -

i trying web scraping http://www.gps-coordinates.net/ using selenium, , have problem in 2 areas. google autocomplete causes me unable click 'get coordinates' button. tried solve still doesnt work. ( message: element not clickable @ point (280, 17.800003051757812). other element receive click ) pop indicates there no result available, still fail handle pop-up. ` from selenium import webdriver selenium.webdriver.support.ui import webdriverwait selenium.webdriver.common.keys import keys selenium.webdriver.support import expected_conditions ec import openpyxl import xlsxwriter import pyperclip driver = "" def setup(): global driver driver = webdriver.firefox() driver.get("http://www.gps-coordinates.net/") assert 'google map' in driver.title def sele(address): setup() global driver query = driver.find_element_by_id('address') query.clear() query.send_keys(address) query.send_keys(keys.return

regex - MYSQL REGEXP query for keywords column -

i need regular expression users have keyword 52 , users have keyword 52,53 not 54. below table structure create table `user` ( `id` int not null auto_increment, `first_name` varchar(100) not null, `last_name` varchar(100) not null, `keywords` text, primary key (`id`) ) engine=innodb default charset=utf8; sample record1: 100, sam, thompson, "50,51,52,53,54" sample record2: 100, wan, thompson, "50,52,53" sample record3: 100, kan, thompson, "53,52,50,54" 50 = sports 51 = cricket 52 = soccer 53 = baseball 54 = tennis so far query have come with. gives records 3. select * `user` keywords regexp '[[:<:]]52,53,54[[:>:]]' try using find_in_set() rather complex regular expression: select u.* user text = '52' or (find_in_set('52', text) > 0 , find_in_set('53', text) > 0 , find_in_set('54', text) = 0) explanation: where text = '52' -- users have keyword 52 ,

java - android studio: get current gps location after drawing a path while moving -

in app i'm trying : first draw path between 2 final locations then show gps coordinates the problem when execute app stops when execute part draws route alone runs normally, same thing gps coordinates. here code: public class mainactivity extends appcompatactivity implements onmapreadycallback, directionfinderlistener, locationlistener { private googlemap map; private list<marker> originmarkers = new arraylist<>(); private list<marker> destinationmarkers = new arraylist<>(); private list<polyline> polylinepaths = new arraylist<>(); private progressdialog progressdialog; public static string origin; public static string destination; private locationmanager locationmanager; private double latitude; private double longitude; private latlng latlng; public static long mintime = 1000;//1000=1s public static float mindis = 1;//1m textview tvlat, tvlon, tvtem, tvdis; float zoom = 16; float tilt = 30; float bearing = (fl

xamarin.ios - Connection faliure issue when i hit the web API in Xamarin IOS -

Image
some time facing issue of connect failure when hit web api in xamarin ios project. api working fine , issue in connection. if 1 have idea solve issue or have link through can solve issue. please send me because have tried many solution couldn't solve it. error log :::::::::::::::: {system.aggregateexception: 1 or more errors occurred. ---> system.net.webexception: error: connectfailure (too many open files) ---> system.net.sockets.socketexception: many open files @ system.net.sockets.socket..ctor (addressfamily addressfamily, sockettype sockettype, protocoltype protocoltype) [0x00060] in /users/builder/data/lanes/3051/5f11db87/source/maccore/_build/library/frameworks/xamarin.ios.framework/versions/git/src/mono/mcs/class/system/system.net.sockets/socket.cs:214 @ system.net.webconnection.connect (system.net.httpwebrequest request) [0x000f6] in /users/builder/data/lanes/3051/5f11db87/source/maccore/_build/library/frameworks/xamarin.ios.framework/versions

angularjs - notify angular to update dom (changed with d3js) -

i use angular , d3 show graph. got graph data angular , create via d3js , append #graph element. first time work fine when change criteria , got new data, graph wasn't updated. how can notify angular update dom. tank you. $http({ method: 'post', url: '/degree', data: criteria, headers: { 'content-type': 'application/json' } }).success(function (response) { creategraph(response); }); create graph d3 , append #graph element var creategraph = function(response){ .... var svg = d3.select("#graph").append("svg:svg") .attr("width", w) .attr("height", h); ..... } html <div id="graph"> </div>

c++ - Merge sort implementation -

i new c++ , trying develop code merge sort. tested sample array of size 5 answer put out code not right. can't figure what's going wrong. here code: #include <iostream> #include <cstring> #include <sstream> #include <fstream> #include <iomanip> using namespace std; void merge(int, int, int, int*); void merge_sort(int low, int high, int* p){ int pivot; static int i(1); if (high>low) { cout << "calling merge_sort: "<<i<<endl; i++; pivot = low + ((high - low)/2); cout << pivot << endl; merge_sort(low, pivot, p); merge_sort(pivot+1, high, p); merge(low, pivot, high, p); } } void merge(int l, int pi, int h,int* arr) { int start = l; int mid = pi+1; while((start<=pi)&&(mid <=h)){ if (arr[start] > arr[mid]) { int temp = arr[mid]; arr[mid] =

Update statement working in SQL Developer but not in C# -

i have small update query works in sql developer. update people set months = 8 number = 599 fairly straight forward. , works - works in c#. problem moment want use parameters (which works on number not on months) stop working. i have code in c#: using (oracleconnection con = new oracleconnection(connectionstring)) { con.open(); oraclecommand command = con.createcommand(); command.commandtype = commandtype.text; command.commandtext = "update people " + "set months = :months " + "where number = :number"; command.parameters.add(":number", oracledbtype.int32).value = number; command.parameters.add(":months", oracledbtype.int32).value = months; command.executenonquery(); } they both of type number in oracle, , i've tried changing oracledbtype decimal, , pretty with

java - What is the difference between port and localport? -

this question has answer here: java socket - local port 1 answer when print object of socket class in java, prints socket details this-- socket[addr=/127.0.0.1,port=49989,localport=10] .i know port number.but don't understand why 2 port numbers(port , localport) there ? as per javadocs localport - local port socket bound to, or 0 system selected free port. for other process port number 49989, process using port 10. imagine telephone call, number ring 49989, telephone number 10

c# - How to use two objects from a pooled list in one script? -

i trying understand object pooling. able script pull 1 object @ time, need able pull 3 or more list @ same time. my object pooling script big, don't want share whole thing unless necessary. i need able change location of spawn of flame, created script that: private void createwavesforflames(gameobject flame, float xbase, float xdisplacement, float dropheight) { flame.transform.position = new vector3(xbase + xdisplacement, dropheight, 0); flame.setactive(true); //this turn pooled object on } so need spawn 3 flames @ same time , change spawn locations the wave call this: void wave1() { debug.log("wave1"); tempgoholder = gm.getlargefire(); createwavesforflames(tempgoholder, 0, 0, 12); createwavesforflames(tempgoholder, 10, 0, 12); createwavesforflames(tempgoholder, 15, 0, 12); } what happens 1 fire flame created , uses last creatwavesforflames. need 3 different. any suggestions on how awesome. well.. expected

How to add multiple node in xml using java -

i want create xml file this: <record number="001"> <refnum></refnum> <trackref></trackref> <record> </batch> how can create element record number spaces in between , how give value "001"? you can use documentbuilder creating xml. please see sample code below: documentbuilderfactory dbfactory = documentbuilderfactory.newinstance(); documentbuilder dbuilder = dbfactory.newdocumentbuilder(); document doc = dbuilder.newdocument(); // root element element rootelement = doc.createelement(""); then output result in xml file as shown below : // write content xml file transformerfactory transformerfactory = transformerfactory.newinstance(); transformer transformer = transformerfactory.newtransformer(); domsource source = new domsource(doc); streamresult result = new streamresult(new file("c:\\test.xml")); transformer.transform(source, result);

javascript - Error with AngularJS -

i new angularjs , here facing issue. have page submit button, when click on submit modal has open , data url has present inside modal. right now, modal opens empty , not fetching data url.below code have: index.html: <!doctype html> <html ng-app="plunker"> <head> <script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.js"></script> <script src="http://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.6.0.js"></script> <script src="example.js"></script> <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet"> </head> <body> <div ng-controller="modaldemoctrl"> <script type="text/ng-template" id="mymodalcontent.html"> <div class="modal-header"> <h3>modal</h3> </div> <div class="modal-body

mysql - Save Datagridview if it is Checked by CheckboxColumn -

Image
hello afternoon, i have object in form , datagridview1 , save button datagridview1 populate data database on form_load , data show corresponding checkbox. image below and if here code that private sub loadtech() dim con1 mysqlconnection = new mysqlconnection("datasource=localhost;database=operations;userid=root;password=admin1950;convert 0 datetime=true") dim sql1 mysqlcommand = new mysqlcommand("select techname technicians order category asc", con1) dim ds1 dataset = new dataset dim adapter1 mysqldataadapter = new mysqldataadapter con1.open() adapter1.selectcommand = sql1 adapter1.fill(ds1, "mytable") datagridview1.datasource = ds1.tables(0) con1.close() datagridview1 .rowheadersvisible = false .columns(0).headercell.value = "technician / electrician" end datagridview1.columns.item(0).width = 150 datag

javascript - check box is not working in edit page -

the select check box working @ initial time. steps: 1.consider check check boxes or check check box , saving form 2.editing saved form shows nothing checked. shows check box in initial stage. nothing saved. javascript <%= check_box_tag "box_select_all" %> <%= check_box_tag "box_id[]", box.id, false, class: 'box_select' %> jquery $('body').delegate('#box_select_all', 'click', function() { $('.box_select').prop('checked', this.checked); }); $('body').delegate('.box_select', 'click', function() { if ($(".box_select").length == $(".box_select:checked").length) { $("#box_select_all").prop("checked", "checked"); } else { $("#box_select_all").prop("checked", false); } }); can me?? why want delegate function on body, when click checkbox, function called. call this: $("#box_s

String Distance Matrix in Python -

how calculate levenshtein distance matrix of strings in python str1 str2 str3 str4 ... strn str1 0.8 0.4 0.6 0.1 ... 0.2 str2 0.4 0.7 0.5 0.1 ... 0.1 str3 0.6 0.5 0.6 0.1 ... 0.1 str4 0.1 0.1 0.1 0.5 ... 0.6 . . . . . ... . . . . . . ... . . . . . . ... . strn 0.2 0.1 0.1 0.6 ... 0.7 using ditance function can calculate distance betwwen 2 words. here have 1 list containing n number of strings. wanted calculate distance matrix after want clustering of words. just use pdist version accepts custom metric. y = pdist(x, levensthein) and levensthein can use implementation of rosettacode suggested tanu if want full squared matrix use squareform on result: y = np.squareform(y)

jquery - Lazy load DIV embeded Flickr gallery & skipping it from preload -

i having bootstrap website gallery. if add flickr gallery embedded, takes forever load preloader. <div id="flickrembed"> <script src="http://flickrembed.com/embed_v2.js.php?source=flickr&layout=responsive&input=xxxx"></script> i tried use lazysizes lazyloader plugin, lazysizes unveilhooks extension. of no change. i removed preloader , site loads issues (top banner slideshow skipped loading, makes website not looking good) kindly me how lazy load div element... i had same issue, need add </div> after <div id="flickrembed"> checked code of flickrembed, use http://unitegallery.net/ , wonder how same without using scripts off site.

combine two half images using html and css -

i want combine 2 half images using css in this fiddle. i want same radius half circle combine it. here not image, div . <div class="half-circle"> <img src = "http://i.imgur.com/cnjuzos.jpg"> </div> <div class = "other-half-circle"> <img src = "http://i.imgur.com/yaipyc4.jpg"> </div> here's fiddle i updated jsfiddle: https://jsfiddle.net/nd3mekt3/1/ the css: .half-circle{ float: left; width: 250px; height: 500px; background: url('http://i.imgur.com/cnjuzos.jpg'); background-position: top right; } .other-half-circle{ float: left; width: 250px; height: 500px; background-position: top right; background: url('http://i.imgur.com/yaipyc4.jpg'); } the html: <div class="other-half-circle"></div> <div class="half-circle"></div> this way, 2 half circles floated next each other, making whole circle.

cordova - Open native map app with Phonegap -

hi in process of learning phonegap , , have request client asked me when link address clicked internal mapps app should open.in case of android may google maps app , in case of ios apple maps app. after bit of searching found plugin phonegap webintent seems able open native apps.all examples found online android.and understand use internal android component called intent. my question has tryed plugin on ios?

ruby on rails 3 - acts_as_nested_set *** ArgumentError Exception: Unknown key: :order -

upgrading rails3.2.21 4.1.9 , in class have use acts_as_nested_set , there has_many relation between 2 class see below code class area < activerecord::base acts_as_nested_set has_many :plans end class plan < activerecord::base belongs_to :area end when try calculate p = plan.first p.area through error on terminal like- actionview::template::error (unknown key: :order. valid keys are: :class_name, :class, :foreign_key, :validate, :autosave, :table_name, :before_add, :after_add, :before_remove, :after_remove, :extend, :primary_key, :dependent, :as, :through, :source, :source_type, :inverse_of, :counter_cache, :join_table): how fix it? this issue because have use gem gem 'awesome_nested_set', '~> 2.1.6' and have update gem file , add gem gem "awesome_nested_set", '~> 3.0.0.rc.3' issue fixed now

python - Building a simple image recognition engine by tensorflow cifar10 example -

i make simple engine classify image dataset , asking guide or help. i have trained dataset , save train model (1000000) , eval 86.6%. then, here steps follow: download image , convert tensorflow dataset (i not sure since it's converted bin type input image on trained model cifar10 , test whether image dog, cat or sth else (print value be... image dog 70% accuracy) or distribute image folder if input several images. the whole purpose of visualize process , use in real tensorflow. i appreciate if @ least give me ref.