SVM classifier after eigenfaces feature extraction. i am having an error saying assertation failed. Can anyone help? Putting my sample code below
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
4:48
Vote count: 0 Error seems to be on this line: Ptr<ml::TrainData> tData = ml::TrainData::create(_projections, ml::SampleTypes::ROW_SAMPLE, _labels); From this code: Ptr<ml::SVM> svm = ml::SVM::create(); svm->setType(ml::SVM::C_SVC); svm->setKe el(ml::SVM::LINEAR); svm->setGamma(3); svm->setTermCriter...
Custom intellisense for a Qt-based dev tool
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
4:48
Vote count: -1 This might be a tough one. I am creating some custom tools to my Qt development toolkit. I have a need for somehow, in the way intellisense in Qt Creator and Visual Studio does, to get "metadata" of different available classes that are included in some inspected c++ file. -How could I...
How to handle multiple overloads for dervied classes without requiring multiple changes to other files
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
4:47
Vote count: 0 I wasn't sure how to word the title of this question, but here's my problem: I am working on a game in C++ using the Entity Component System architecture. In this architecture, each game object is represented as a class: class Object A class is not much more than a container for compon...
Nginx rewrite SEO friendly URL
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
3:47
Vote count: 0 I have WordPress installed on my root / of example.com and another Web app on /sub-directory/. I have Nginx rewrite rule: location / { try_files $uri $uri/ /index.php?$args; fastcgi_read_timeout 300; } location ~ .php$ { include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php...
Docker confusion
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
3:47
Vote count: 0 I am very interested in docker and I've read about it but I'm a bit confused with containers. When we pull for instance, the official nginx from docker hub, is it only the application or nginx comes with operating system? It seems to me that all containers come with the operating syste...
How can I create this custom view in Android?
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
3:47
Vote count: 0 I have to add an ordered list of items as following images. How can I achieve that in Android? asked 1 min agoFigen Güngör Let's block ads! (Why?)
Logic to found TAT for activation excluding holidays
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
1:38
Vote count: 0 I want to find out Process time for the activation of requests and want to exclude holidays. Ex: If request date is 11/04/2016 17:00:00 , 12/04/2016 is holiday and the request got closed on 13/04/2016 09:00:00. Then 12/04 should be excluded and TAT should be 07 + 09 hours that is 16 ho...
org.hibernate.LazyInitializationException (Sprin/Hibernate)
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
1:38
Vote count: 0 I have 3 tables in my database - Booking, Restaurant and RestaurantTable. Right now I am trying to create a new booking and one of the steps there is adding a table. But when I try to add this table the following error comes up: org.hibe ate.LazyInitializationException: failed to lazil...
trying to parse xml from url store to string so i can use in another spot to output to irc
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
1:38
Vote count: 0 The following is the xml from remote URL <SHOUTCASTSERVER> <CURRENTLISTENERS>0</CURRENTLISTENERS> <PEAKLISTENERS>0</PEAKLISTENERS> <MAXLISTENERS>100</MAXLISTENERS> <UNIQUELISTENERS>0</UNIQUELISTENERS> <AVERAGETIME>0</AVERAGETIME> <SERVERGENRE>variety</SERVERGENRE> <SERVERGENRE2/> <SERV...
Storing data in record to reduce query redundancy
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
0:19
Vote count: 0 The below example shows redundancy as the database is queried twice for exactly the same thing. Is there anyway I can simplify this? .div1 - towns.each do |town| = town.name - town.residents.where(:age => 14).each do |f| %p= f.name .div2 - towns.each do |town| = town.name - town.reside...
isset and if function in php with or operator
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
0:19
Vote count: 0 I have a php code to check user login status which check if session variables are set or cookies are set. If either of condition is true then it grand permission otherwise redirect to login page. Code looks like this : if(isset($_SESSION["userid"]) || isset($_COOKIE["userid"]) && isset...
Can't boot Ubuntu 15.10 without 'idle=nomwait'
◷
تاریخ انتشار:
1395/1/15
|
ساعت:
0:19
Vote count: -1 I'm using Ubuntu 15.10 on MSI GS40 laptop, which has Intel Skylake processor and Nvidia's dedicated GPU. I couldn't boot to Ubuntu's installation stage without giving GRUB's boot option 'nomodeset' and 'idle=nomwait'. I searched throughout the inte et, found out that I should install ...
Jersey - Register ExceptionMapper for Resource Methods
◷
تاریخ انتشار:
1395/1/14
|
ساعت:
23:17
Vote count: 0 The question Exception Handling/Mapping for a particular class brought me to the question of how to register an ExceptionMapper to a particular resource Method. I've tried to use a DynamicFeature like this: DynamicFeature @Provider public class ExceptionMapperDynamicFeature implements ...
Save and Run with one Keystroke
◷
تاریخ انتشار:
1395/1/14
|
ساعت:
23:17
Vote count: 0 I'm using winPython and Notepad++ and would like to save myself some key strokes by having one key save and also run my code. I have C:UsersRobinDesktopcodingWinPython-32bit-2.7.10.2python-2.7.10python.exe "$(FULL_CURRENT_PATH)" saved onto F6, but when I try to create a macro for CTRL+...
How to write linux grep, sed, diff sentences in a php file or in a perl file
◷
تاریخ انتشار:
1395/1/14
|
ساعت:
23:17
Vote count: -1 I want to compare 2 text files using Diff, grep, and sed. First, How to write linux grep, sed, diff sentences in a php file or in a perl file? Second, What is better? writing it in PHP file or Perl file? I want to call this script from PHP file. Thank you. asked 3 mins agoAlaa Let's b...
How to fill this textbox?
◷
تاریخ انتشار:
1395/1/14
|
ساعت:
22:15
Vote count: 0 I'm encountering a problem when I am trying to fill in this textbox. It just doesn't works. This is the code of the textbox: <div id="input-field" class="input-field editable" type="text" contenteditable="true" data-ph="Type here to send a message" g_editable="true" role="textbox" styl...
php require minimum 3 words form validation
◷
تاریخ انتشار:
1395/1/14
|
ساعت:
22:15
Vote count: 0 i have this php code for form validation : if(($_FILES['file']['error'] != 0) || $title == '' || $tags == '') { wp_redirect(home_url('/') . '?posterror=1'); exit; } This form redirect you to a page error if you didin't upload a file,put a title or a tag. From this code i want to change...
Laravel routes return 404 after moving to XAMPP
◷
تاریخ انتشار:
1395/1/14
|
ساعت:
22:15
Vote count: 0 I've read some posts about it and found, that the problem is with mod_rewrite. But my configs seems to be ok. My vhosts.conf: <Directory "D:/xampp/htdocs/example/public"> Options Indexes FollowSymLinks MultiViews AllowOverride All Require all granted </Directory> <VirtualHost *:80> Doc...
Starting with Tizen App Development with Html,JavaScript,Css and Core java
◷
تاریخ انتشار:
1395/1/14
|
ساعت:
21:14
Vote count: -1 I have made an Web Application through html and JavaScript with CSS i wanted to enhance it and make an application for samsung tizen Z1 thats working on tizen OS. How do i proceed For it. asked 4 mins agoGaurav Dubey Let's block ads! (Why?)
linked JARs work fine in IntelliJ, but not in the command line
◷
تاریخ انتشار:
1395/1/14
|
ساعت:
21:14
Vote count: 0 I'm writing a small Java app that gets launched locally, but spawns EC2 instances. The class that I'm trying to run is Manager, which I wrapped into a JAR using a manifest file that indicates the code's entry point (Manager.main()), and then compiling the "Artifact" with IntelliJ. When...