Vote count: 0 I have developed a project in CodeIgniter 2. It works well in any browser. And I can login and explore my account successfully in (Chrome, IE, OPERA, SAFARI and FIREFOX) on Windows(Safari, Chrome, Firefox) on Android(Safari, Firefox, Chrome) on iOS 9.3. Also, the login works in any browser on OS X, but after exploring some pages, the session are lost. Has anyone run into the same problem? asked 22 secs agouser3062975 Let's block ads!...
ادامه مطلبVote count: 0 I want to build a model class for my PHP application. It will have methods meant to select/update/insert/delete specific data from a database according to the method's parameters. I only want to use prepared statements. Here is an overview of what the class should look like : class Database { private $_db; // Stores a PDO object (the coection with the database) within the $_db property public function __construct($host, $user, $password) {...} public function select() {...} public ...
ادامه مطلبVote count: 0 I have a main class in a file which creates a sqlContext object. However, I have numerous classes which utilize sqlContext, yet I can't find a good way to pass it between classes. The main issue is that I need to call import sqlContext.implicits._, and I caot put this import statement as part of the object variables. I have tried to do this within the corresponding methods (where a sqlContext is passed in) and by creating a new object, but these do not work. asked 37 secs agoEric S...
ادامه مطلبVote count: 0 I want to add Flow type aotations to a class containing a function defined in ES6 style, below is analyzed correctly: /* @flow */ class Product { items: Array; addItem = (item:string) => { this.items.push(item) }; } If I add export default to export the Product class, I get: class property `addItem` missing type aotation. asked 35 secs agojuwiley Let's block ads!...
ادامه مطلبVote count: 0 Junit 4.12 and i have following test classes, class A{ set all the profiles based on available properties } @IfProfileValue(name = "spring.profiles.active", values = {"dev"}) class B{ //Test method and autowired properties } Currently Class B getting run before class A so IfProfileValue gets failes so it never runs the test cases inside class B. Is there anyway in spring-test to run the junit class based on condition. asked 37 secs agoVelNaga Let's block ads!...
ادامه مطلبVote count: 0 I ran Random Forest classifier for my multi-class multi-label output variable. I got below output. My y_test values Degree Nature 762721 1 7 548912 0 6 727126 1 12 14880 1 12 189505 1 12 657486 1 12 461004 1 0 31548 0 6 296674 1 7 121330 0 17 predicted output : [[ 1. 7.] [ 0. 6.] [ 1. 12.] [ 1. 12.] [ 1. 12.] [ 1. 12.] [ 1. 0.] [ 0. 6.] [ 1. 7.] [ 0. 17.]] Now I want to check the performance of my classifier. I found that for multiclass multilabel "Hamming loss or jaccard_similarit...
ادامه مطلبVote count: 0 in salesforce how to create apex trigger class using tooling api in java? like i have created apex class using tooling api in java. the code is: ApexClass apexClass1 = new ApexClass(); apexClass1.setBody(classBody); // class body is string ApexClass[] classes = { apexClass1 }; SaveResult[] saveResults = stub.create(classes); apexClass1.getBody(); if (saveResults[0].success) { apexClassId=saveResults[0].id; } So can anyone tell me how to create apex trigger in the same maer. asked 4...
ادامه مطلبVote count: 0 I have Parent Model class and viewModel class. Parent Model class has GetViewModel() class and I am trying to inherit Parent class and override the GetViewModel().However, it throws an infinite exception. Parent ViewModel Class: public class ParentViewModel { public IEnumerable Choices { get; set; } public object Value { get; set; } public IMetaField MetaField { get; set; } public bool IsRequired { get; set; } public bool HasOtherChoice { get; set; } public string ValidationAttribu...
ادامه مطلبVote count: 0 i was write code for login activity with php path server and now i just copy the code and use it in new application this is my code:- import android.content.Intent; import android.os.AsyncTask; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import org.apache.http.params.HttpCoectionParams; import org.apache.http.params.HttpParams; import o...
ادامه مطلبVote count: 0 When ruing testng tests with Surefire 2.19.1, I am ruing with setting 0. When I add this setting, some of my tests fail where the File class is being used. Tests that normally succeed now fail with errors around not being able to find the file. The files exist in the same location as before, it seems that the classpath is being changed when not using forks. If I use the following code, the File issue goes away, however I can't do this for all problems. f.exists() -- This fails f = ...
ادامه مطلبVote count: 0 I'm reading Grady Booch's book third edition. In page 94, Booch said that: We can furthur devide the interface of a class into four parts: Public: a declaration that is accessible to all clients Protected: a declaration that is accessible only to the class itself and its subclasses Private: a declaration that is accessible only to the class itself Package: a declaration that is accessible only by classes in the same package I can understand why protected declaration can be consider...
ادامه مطلبVote count: 0 Let's say I have a class like this. class SomeProductionProcess(CustomCachedSingleTon): @def loaddata(): """ Uses an iterator over a large file in Production for the Data pipeline. """ Now at test time I want to change the logic inside the loaddata() method. It would be a simple custom logic that doesn't process large data. How do we supply custom implementation of loaddata() at testtime using Python Mock UnitTest framework? asked 24 secs agouser4654 Let's block ads!...
ادامه مطلبVote count: 0 I am currently facing an issue related to logging messages in my WPF application. I am keeping a static class for logging messages throughout my application which contains a function private SomeService service = new SomeService(); private void LogMessage(string message) { service.Log(message); } My issue is in my screens where I require logging, I append strings from different places in the screen and pass it to the LogMessage function. I have very large data to be logged from dif...
ادامه مطلبVote count: 0 I created a class that extends View, and I have a class, where MainActivity called the View. How I can change my listview, depending on what throws me my view class ?. code: this is part of my view class: public class ViewClass extends View { //... if (recognitionPlane(touchX, touchY) == 1) { listview = "Text to set in listview of activity class"; } } When the method retus 1, I want to change my listview depending on what throws me the viewclass and this is my activityclass: public...
ادامه مطلبVote count: 0 Why is not $( "demo" ).css("border", "1px solid #FFF");working? Every other part of the function is working, but not that one. The class "demo" is a regular from "page1.html". var button = 0; var activecolor = 0; function pressbutton(a){ button = a; var color1 = "#46B29D"; var color2 = "#F0CA4D"; var color3 = "#E37B40"; if (button === 1) { activecolor = color1; document.getElementById("button1").className = "activemenubutton"; document.getElementById("button2").className = "menubut...
ادامه مطلبVote count: 0 I am populating a QGraphicsScene with instances of a custom item class (inherting QGraphicsPathItem). At some point during runtime, I try to remove an item (plus its children) from the scene by calling: delete pItem; This automatically calls QGraphicsScene::removeItem(), however it also leads to a crash in the class QGraphicsSceneFindItemBspTreeVisitor during the next repaint. asked 24 secs agoPhilip Allgaier 1 Answer Vote count: 0 TL;DR: The solution is to ensure that QGraphicsIte...
ادامه مطلبVote count: 0 I'm currently facing some challenges using the Wordpress tesseract theme for a project.Im using a child's theme and created a class for some contents on the home page using visual editor for easy target and control.However,switching to the live editor,the created classes r not showing so d contents caot be controlled the way it is with the parent theme.My challenges is how can I reference the classes from my child's theme so they appear on my customiser and I can control the conten...
ادامه مطلبVote count: 0 Does anybody use "n_jobs" of sklea-classes? I am work with sklea in Anaconda 3.4 64 bit. Spyder version is 2.3.8. My script can't finish its execution after setting "n_jobs" parameter of some sklea-class to non-zero value.Why is this happening? asked 33 secs agoK.Alex This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article fr...
ادامه مطلبVote count: 0 I used Caffe GoogleNet model to train my own data (10k images, 2 classes). I stop it at 400000th iteration with an accuracy of ~80%. If I run the below comment: ./build/examples/cpp_classification/classification.bin models/bvlc_googlenet/deploy.prototxt models/bvlc_reference_caffenet/bvlc_reference_caffenet.caffemodel data/ilsvrc12/imagenet_mean.binaryproto data/ilsvrc12/synset_words.txt 1.png it would give me a random result each time I run it (e.i. if I run it n times, then I get...
ادامه مطلبVote count: 0 like php code below : how to make a class an method an stored to a variable, and call again by method? like $mysqli and $query above? asked 43 secs agoBar O Kuiawan This entry passed through the Full-Text RSS service - if this is your content and you're reading it on someone else's site, please read the FAQ at fivefilters.org/content-only/faq.php#publishers.Recommended article from FiveFilters.org: Most Labour MPs in the UK Are Revolting....
ادامه مطلب