back soft

مطالب مرتبط با «class dynamics» در back soft | نویسنده: استخدام کار

How to classify a SMS into transactional and non-transactional?

I need to classify the SMS that we receive in our mobiles into transactional and non-transactional. I tried using naive-bayes for the same. However, due to lack of sufficient training data, my results are not accurate. Can you suggest some other good algorithm or some other processing that can be applied on Naive-Bayes to get this done?...

ادامه مطلب

Wordpress - output specific div on category page by targeting the div class

Vote count:
 0I am creating a custom archive page to display all the podcast posts together. Currently, the page outputs the featured image and the post excerpt.I want to also include the podcast player contained in the post.My goal is to...

ادامه مطلب

bootstrap-combined.min.css -- how can two tabs (in different tab controls) each have a class=active and have different background-colors ?

Vote count:
 0I am trying to understand css logic -- and a Bootstrap Tab Control sample project at jsfiddle is using bootstrap-combined.min.css which contains several .active listings. Here is a sample of the project code that is confus...

ادامه مطلب

Making a class with classes within it

Vote count:
 0I need to store data so I have; restaurantName, categories for that restaurant(which would be an array of Strings), an array of Items for each category, and a number for each item in theopen class Item{ var name = String() v...

ادامه مطلب

How to activate This Class to another

Vote count:
 0I have a question about using another class in my main GameplayScene. What I am trying to do is make the motions of the X-axis of the phone move the character left and right. Here is what I have in my MotionClass.swiftimport...

ادامه مطلب

Passing Class Information C#

Vote count:
 0I have a bunch of code doing the same thing but with just a few changes... Sounds like a great option for building a method to do the work for all of them. I need to use a class name and couldn't find anything simular enough...

ادامه مطلب

enum value to constructor class JAVA

Vote count:
 0Hi there I'm creating the beans of the tables of my database, but I have this little issue that I can't pass the ENUM value to the constructor, I solved it but when I try to set the value It says error; here is my code public class HorariosBean { private Integer idHorario; private String dia; private Integer hora; private enum estado {DISPONIBLE, NODISPONIBLE}; private...

ادامه مطلب

Cannot load driver class: org.h2.Driver with springboot

Vote count:
 0@SpringBootApplication @Slf4j public class Starter { public static void main(String[] args) { SpringApplication.run(Starter.class, args); } } Applicaiton.ymlspring: profiles: default allowedIPPatte: 127.0.0.1|0:0:0:0:0:0:0:1|::1 jpa.hibeate.ddl-au...

ادامه مطلب

I need help on how to represent a class in a flowchart

Vote count: 0 I'm creating this flowchart for program i created for an assignment in c++. I used classed, objects and made some function calls. We were only required to do the pseudocode and a flowchart. my question is, how do i represent a class in a flowchart, in my knowledge of flowcharts, you stick to main and just show the object initializations and function calls. When i make a function call to my class, would i have to show the logic of the function too or should i just continue the flow ...

ادامه مطلب

Default value to a optional class variable parameter function call in vb.net

Vote count: 0 I am trying to pass a class variable as an optional parameter to a function. But it requires a default value. What could I set the default value for the optional class variable. Private Function SaveFruit(Optional byval tempBanana As BananaClass) asked 25 secs agoGowtama Krishna Let's block ads!...

ادامه مطلب

how to avoid inserting duplicate class and section in this json array using php

Vote count: 0 Hi I have json file i need to restrict entering same class and section in json file using php. please help me where me went wrong in code.... My json file as follows [{ "acdyr1": "2000", "acdyr2": "2001", "parameters": [{ "medium": "ENG", "academic_syllabus": "STATE", "class_section": [{ "standard": "UKG", "sec": ["A"] }] },{ "medium": "KAN", "academic_syllabus": "STATE", "class_section": [{ "standard": "LKG", "sec": ["A"] }, { "standard": "UKG", "sec": ["A"] }, { "standard": "UKG"...

ادامه مطلب

.toggleClass not working, no idea why

Vote count: 0 I am trying to get a div box to expand when clicked, and go back to normal size when clicked again. Seems simple enough, but I can not get it to work no matter what I try. I have no idea what could be going wrong as the part of the code where the error is most likely to be occurring is not very long. Thanks for your time!https://jsfiddle.net/uL1r08am/ .panels { position:relative; border:2px solid silver; transition:transform 1.5s; } .panels:hover { transform:skewY(3deg); } #panel1....

ادامه مطلب

How to subclass a UILabel in swift with letter spacing set to 1.5 using NSKernAttribute

Vote count: 0 I am trying to subclass a UILabel so that it has a default keing set to 1.5 then i am going to use that in my app with multiple labels. goal is to have default ke set out of the box so i can avoid repeated code all over the place also labels are set as mix of attributed and regular text Exapmple: @IBoutlet weak var myLabel: CustomeLabelWithKe! myLabel.attributedText = myAttributedText @IBOutlet weak var myOtherLabelInADifferentViewController: CustomeLabelWithKe! myOtherLabelInADiff...

ادامه مطلب

How restrict creation of objects of one class to instances of another in Python?

Vote count: 0 I have encountered a conundrum. I think I should know how to solve this — I even wrote a Python book — but I can't figure it out. It seems like what I am struggling with should be addressed by a design patte that is a variation on the factory theme, but I can't recall one. (At the end of this writeup I suggest a technical solution, but it seems an implausible one.) I hope you find this discussion interesting in its own right, but I look forward to hearing some suggestions for solut...

ادامه مطلب

class with dynamic this.variables

Vote count: 0 im creating a class where i would be able to have in my constructor dynamic variables, but im not sure if im doing the right way or if it is valid. Example static: my class: class MyClass{ constructor(options){ this.propertyname = options.value; this.propertyname = options.value; this.propertyname = options.value; } } Does this example would be the same of the above? My only issue would be that the example i have wasnt making the options value assign to "this." my class: class MyCl...

ادامه مطلب

Referencing the same variable across two different classes

Vote count: 0 I am hoping to initialise the $basket value in one class and manipulate the same variable via another class. Unfortunately, I keep getting the "Notice: Only variables should be passed by reference in " error message. Question: How can I change the code to make this happen? Thank you. asked 21 secs agotaylorswiftfan Let's block ads!...

ادامه مطلب

Can I use an Objectice-C class in my Swift framework library?

Vote count: 0 I have created a Swift Framework that I use in multiple projects. There is an Objectivce-C class that I would like to use in that is difficult to port in straight Swift. Lets say that class is SFTest #import @interface SFTest { } + (NString *)myMethod(NSString *data); @end @implementation SFTest + (NString *)myMethod(NSString *data) { // does some crypto stuff retu cryptoData; } @end Can I somehow use this in my Swift framework project? As far as my research goes, Swift frameworks ...

ادامه مطلب

public class MapActivity extends FragmentActivity implements OnClickListener {

Vote count: -1 if (map == null) { MapFragment mapFragment = (MapFragment) getFragmentManager().findFragmentById(R.id.map); mapFragment.getMapAsync((OnMapReadyCallback) this); } // Initializing markerPoints = new ArrayList(); // check if GPS enabled GPSTracker gpsTracker = new GPSTracker(this); if (gpsTracker.canGetLocation()) { Log.d("gps track location vijay", ""+gpsTracker.latitude); //markerPoints.add(new LatLng(gpsTracker.latitude,gpsTracker.longitude)); onMapClick(new LatLng(gpsTracker.lati...

ادامه مطلب

Template typedef is not a class or namespace name

Vote count: 0 I'm writing a template class which should behave like a container. Ier data is a vector of smart pointers to the generic class T. Header #include #include namespace Foo { template class AstrContainer { public: typedef boost::shared_ptr p_element; typedef std::vector v_p_elements; protected: v_p_elements _vData; public: AstrContainer(); virtual ~AstrContainer(); typename v_p_elements::iterator begin(); typename v_p_elements::iterator end(); }; } Source #include "AstrContainer.hpp" n...

ادامه مطلب

What's wrong with my java class inheritance?

Vote count: 0 Help, I can't seem to get an output from my inherited shape, whats is wrong with my code? Anyone? I have shortened the code to exclude all the extra constructors and getters and setters, but I hope this provides enough context. public class Shape { public String color; public Boolean filled; public Shape(String color, Boolean filled) { this.color = color; this.filled = filled; } public String toString() { retu "Shape[color = " + color + "filled = " + filled; } ---------------------...

ادامه مطلب