How to start Image Classification using Tensorflow

Uncategorized
Question: I want to start Image classification using Tensorflow. I have a decent hands on with python. How I intend to start off:(Pedestrian detection would be good start) Download Pre-trained models from git hub. Test them on new test set(i.e Draw bounding boxes). Then later re-train the last layers for further improvement. Where do I start off? Would like a step-by-step tutorial on this, would be really help full if some one who has been workin on this to point to some nice tutorials. Answer: Read more
Read More

An error when upgrading gcc on redhat6.6

Uncategorized
Question: I want to upgrade gcc on redhat from 4.7.7 to 4.8.2. When I run 'make', some error occured: options.c:11145: error: narrowing conversion of '-0x00000000000000001' from 'int' to 'short unsigned int' inside { } I found the same question(Some issues about installing gcc version 4.8.2 in redhat), but still feel confused about the solution. PS: Someone told me that installing gcc 4.8 on redhat6 is troublesome, and recommended me to upgrade the system to redhat 7.2 to avoid the upgrad. Because I was working on a new machine, so I adopted this suggestion. Answer: Read more
Read More

python multiprocessing does not run at same time

Uncategorized
Question: I am trying to make a python program that runs multiple processes each in an infinite loop at the same time, but only one process will execute at a time, the first one in code, then the rest of the program will not run. What do i need to do to make both procceses and the main one execute at the same time? from multiprocessing import * import time def test1(q):while True:q.put("Banana") time.sleep(2) def test2(q):while True:q.put("internet") time.sleep(3) if __name__ == "__main__":q = Queue() t1 = Process(target=test1(q)) t2 = Process(target=test2(q)) t1.start() t2.start() q.put("rice") while True:print(q.get()) Answer: The reason for your problem is with the lines:t1 = Process(target=test1(q) t2 = Process(target=test2(q) There you will actually call test1 and test2, respectively (even though you will never reach the test2 call. After running…
Read More

Doctrine and Symfony – changing requirement of text input based on selection of a choice field

symfony
Question: I am working on a form in a company CRM that adds a job to a database. Previously it had been quite simple, but now it's gotten more complex I need to conditionally require certain fields but only based on specific choices in previous fields. When a job is to be added, there are different statuses, specifically To Be Booked, Active, Complete and On Hold. There is a field called start_date which is ALWAYS required UNLESS the status chosen is To Be Booked. However, I don't know how to change this dynamically, and if I make the date field not required and the status ISN'T To Be Booked and the date isn't filled in - it will mean the job won't be correctly added. Here are the two fields…
Read More

Java program to connect to remote MySQL db (having ssh server running)

Uncategorized
Question: I want to develop a java swing application. in which, the MySQL db will be stored on only one PC. and the software can access that db from anywhere. I am new to this type of JDBC connection. so, I was searching about possible ways to create such remote connection. so I got following possible solutions: 1) I can host that db on web. so that's worked for me. I tried to host my db on freesqldatabase.com which allows remote db connection. 2) I heard about ssh tunneling. This topic is also new to me. So, first I created the ssh server on the PC which is having MySQL db. So, this pc is currently running ssh server. then I tried putty software on client machine to connect to…
Read More

Subscript outside of limit

Uncategorized
Question: I tried several times in my cmd running this code but every time it says subscript out of limit at line 1 at the Declare but I haven't found any problem what should I do? declare type namesarray is varray(5) of varchar2(10); type grades is varray(5) of integer; names namesarray; marks grades; total integer; begin names := namesarray('Pronab','Kavita','Pritam','Ayan','Bpl'); marks := grades(96,96,97,93,92,90); total := names.count; dbms_output.put_line('Total ' || total || 'Students' ); for i in 1..total loop dbms_output.put_line('Student: ' || names(i) || 'Marks' || marks(i)); end loop; end; / ERROR: ORA-06532: Subscript outside of limit ORA-06512: at line 1 Answer: I believe that this line is the issue:- marks := grades(96,96,97,93,92,90); The array grades is defined as being of length 5, but you are attempting to insert 6 elements Read…
Read More

Cannot find symbol variable DaggerAppComponent in IntelliJ

java
Question: I cloned this project https://github.com/robohorse/RoboPOJOGenerator and trying to build with the help of IntelliJ IDE. It is imported succesfully and downloaded necessary dependencies but it fails when I rebuild it. Error:(10, 24) java: cannot find symbol symbol: variable DaggerAppComponent location: class com.robohorse.robopojogenerator.injections.Injector I have tried many threads of stackoverflow but didn't work for me. Is this something with gradle or dagger. buildscript { repositories { mavenCentral() maven { url "http://dl.bintray.com/jetbrains/intellij-plugin-service" } maven { url "https://plugins.gradle.org/m2/" } maven { url "https://oss.sonatype.org/content/repositories/snapshots/" } } dependencies { classpath "net.ltgt.gradle:gradle-apt-plugin:0.9" classpath "org.jetbrains.intellij.plugins:gradle-intellij-plugin:0.2.0-SNAPSHOT" classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.1' } } apply plugin: "java" apply plugin: "idea" apply plugin: "org.jetbrains.intellij" apply plugin: "net.ltgt.apt" apply plugin: "jacoco" apply plugin: 'com.github.kt3k.coveralls' compileJava { sourceCompatibility = 1.8 targetCompatibility = 1.8 } jacocoTestReport { reports { xml.enabled = true html.enabled = true…
Read More

generating xml file instead of objects with the azure java sdk

Uncategorized
Question: as the title implies i want to be able to generate a XML file with all virtual machines in my account instead of working with objects. Is there any build in functionality to retrieve XML file instead of object in the java sdk ? I have a generic XML parsing mechanism which i have built to parse attributes by my own rules and logic to create my own custom object, more over traversing get functions to get attributes is painful and time consuming. Thank you. Answer: Read more
Read More