Vote count: 0 I have a similar problem than MobileFirst Direct update customization using adapter But I'm not using the Adapter to modify the DirectUpdate, I'm trying to make a record about the state of the DirectUpdate when it finish, but seems that the call to the adapter not works. There is any restriction to call WL.Client.invokeProcedure on main.js after the DirectUpdate finish? asked 7 mins agoDaniel Contreras Aladro Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Every time I get my toolbar at every text place in my listview. I don't know how to resolve this. I paste my layout file and My java file below. Is possible to generate an OTP of any contact number like 1234567890. The first question is important. my xml file is: My code is: public class ContactList extends Activity { String[] mobileArray = {"Android","IPhone","WindowsMobile","Blackberry","WebOS","Ubuntu","Windows7","Max OS X"}; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.list_contact); ArrayAdapter adapter = new ArrayAdapter(this, R.layout.list_contact, R.id.textViewList, mobileArray); ListView list...
ادامه مطلبVote count: 0 I am a bit confused and just need some clarity: Should I be implementing a custom adapter or a custom serializer? I need my ember app to talk to a REST/json backend. I want my ember app to expose the resource as: GET /locations/:id But the host it coects to has the resource located at: GET http://server/api/location/:id Payload from the server: { "id": "7ff3269e-d16c-4cc4-954d-aef8e662e0f6", "geo": { "latitude": 0, "longitude": 0 }, "typedAddress": { "addressType": "US", "countryCode": "US", "name": "string", "address1": "string", "address2": "string", "address3": "string", "postalCode": "string" }, "customDescription": "string", "timezone": "string" } My model in ember for thi...
ادامه مطلبVote count: 0 I am trying to get a custom label to fix on top of a column and resize with screen size changes. Also, I am trying to center the text inside the label (using bootstrap 3) but I have not been successful. I have created a JSFIDDLE here showing my simple column chart and label. My JS chart code is: chartObj = new Highcharts.Chart({ credits: false, chart: { renderTo: divID, type: 'column', style: { fontFamily: chartFont } }, title: { text: dataC.title, margin: 10, style: { fontSize: '15px' } }, colors: ['#00A65A', '#F39C12', '#DD4B39'], exporting: { enabled: false }, xAxis: { labels: { enabled: true }, categories: dataC.xAxis, minorTickLength: 0, tickLength: 0 }, yAxis: { title: { ...
ادامه مطلبVote count: 0 I'm trying to deploy a Spark standalone cluster using a custom built JVM. Ruing the Spark master and Spark worker processes is fine, but once the driver starts and sends work to the master, the worker crashes because it tries to fork an Executor by looking in JAVA_HOME/bin/java. Is there a way to customize how the executor gets started so that it uses a custom JVM? asked 1 min agoFreeMemory Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm Trying to make a program that lists name of all the sub folders of a chosen folder, it all work but i cant seem to make a custom width for my datagridview , I've been looking for an answer for hours , but they mostly wont work, I tried : Gata.columns[0].width = 100; or stuff like this , but they don't work. this did not work either : MSDN - DataGridViewColumn.Width Property it seems that they are mainly used for unbound grids , that i have no idea about I tried to link my MySql table to one but failed again. It is pretty much the 2nd program i'm writing so please forgive my noobishness ! I want my table to look like the enter image description here the auto-size and fill st...
ادامه مطلبVote count: 0 I want to use getRelativeTimeSpanString to show a date.but I couldn`t set Locale for my date! how can I custom this class? is it possible to add locale as a parameter to this class? asked 31 secs agoZahra.HY Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm trying to implement a model in which different first-level parents have a child tables of different sizes. In this code there is only one first level parent index and child table of 8 by 8, and the application when displaying clearly buggy and slow, although the data is correct. What am I doing wrong? testqtmodel.pro QT += core gui greaterThan(QT_MAJOR_VERSION, 4): QT += widgets TARGET = testqtmodel TEMPLATE = app SOURCES += main.cpp main.cpp #include #include #include #include #include class TreeModel : public QAbstractItemModel { public: explicit TreeModel(QObject *parent = 0) : QAbstractItemModel(parent) { for (int i = 0; i < 8; ++i) for (int j = 0; j < 8; ++j) foo[i][j]...
ادامه مطلبVote count: 0 I want to create custom id in sql table which contains below information ID = 'SRIG'+ 'DDMMYY'+ 5 digit number. asked 52 secs agoHardik Shah Let's block ads! بخوانید...
ادامه مطلبVote count: 1 In an activity I have a CustomListAdapter that contains two EditText fields for each row in the CustomListAdapter. Currently, I have OnFocusChangeListeners that updates the values taken from the EditText, and saves them into a database. However, the last changed value never gets updated. All changed values are saved, but the last one doesn't get saved because the focus was never changed after it was modified. The user changes the last value, clicks "back", and the OnFocusChangeListener never gets called again; therefore, the last value doesn't get saved. So I tried to use an AddOnTextChangedListener ... however, I can only update the first element in the CustomListAdapter. Not ...
ادامه مطلبVote count: 0 I'm new to Java custom exceptions. I see many examples of how to create them, but there are two questions I caot find answers to: 1) Can a custom exception be defined within the object class it's intended for, or must it be in its own class file? 2) Regardless of location, can multiple custom exceptions be defined within a single class file, or does every custom exception require its own class file? Some code snippets would be greatly appreciated. Thanks. asked 1 min agospinjector Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I have been working with django-crispy-forms a while ago and I want to know if there is a way to set the positioning of the inputs like the col-md-XX classes or something to make it looks better and not just like a list of fields. Here is an example: This is a "normal" render of a crispy-form using {{ form | crispy }} or {% crispy form %} I want to be rendered like this with python code in the forms.py or something like that. Actually I make this by typing HTML code and rendering with as_crispy_field tag. Finally when I render the form with {% crispy form %} I can have the radio buttons with inline style, but with as_crispy_field tag, the radios still looking vertical, even wit...
ادامه مطلبVote count: 0 I have been recently working on WordPress and trying to create sessions however I'm facing the following issue: I have created my own PHP file, where I will get the POST data and assign it to session variable. I have created the following function in Theme Footer file: if(document.getElementById("size")) { var sizeSelect = document.getElementById("size"); sizeSelect.addEventListener("change", function(){ var size=document.getElementById("size").value; if(size=="Custom Size") { document.getElementById("measurementChart").style.display = "block"; } else { clearCookies(); } }); } function closeMeasurementWindow() { document.getElementById("measurementChart").style.display = "none"...
ادامه مطلبVote count: 0 I would like some feedback on improving/designing custom form validations(multiple fields) the Angular way. I have some form input fields that are generated by ngRepeat. Basically, the next input must be greater than the the previous. I called these fields beginLevel. My current implementation is as follow: I am using ngBlur to call a controller function. This function loops through my model comparing the index[i].beginsAtLevel with index[i-1].beginsAtLevel. In the event that the current beginsAtLevel is less than that the previous beginsAtLevel I grab the id of the form-group e.g. previousIndex = angular.element(document.querySelector('#beginsAtLevel' + (i - 1))); and currentI...
ادامه مطلبVote count: 0 I've found answers about using ngModel within a custom directive, and I understand the concept, but I'm not sure if I am understanding how to implement it when using $resource. I'm successfully injecting the "file" scope into my directive, and I'm making the api call, but the value that's getting retued to my server is null. I'm sure my Angular directive implementation is where my fault lies. directive.js angular.module('pro').directive('buyLinkBox', function() { retu { restrict: "AE", replace: true, template: 'Buy Link for {{file.filename}}', scope: { file: '=', }, controller: function($scope, $route ,BuyLinkService){ $scope.sending = BuyLinkService.get({ FileId: $scope.file._...
ادامه مطلبVote count: 0 I'm creating a gradle plugin that uses gson, but when I use the plugin at my client it throws this java.lang.NoClassDefFoundError: com/google/gson/Gson I expect I am linking my dependencies in the plugin in a wrong way, but i'm not quite sure so any help would be great. The build.gradle in the plugin group 'nl.daanluttik.gradle' version '0.1' apply plugin: 'java' apply plugin: 'maven' // the plugin to distribute to maven sourceCompatibility = 1.8 repositories { mavenCentral() } dependencies { compile group: 'com.google.code.gson', name: 'gson', version: '1.7.2' compile gradleApi()/*The gradle plugin api*/ testCompile group: 'junit', name: 'junit', version: '4.11' } //To distrib...
ادامه مطلبVote count: 0 here is my code. I have tried all the solutions available but I am not able to put image I wish to instead of the default aotation red pin in my code. any help is appreciated. thank you import MapKit class ViewController: UIViewController, MKMapViewDelegate { @IBOutlet var map: MKMapView! override func viewDidLoad() { super.viewDidLoad() var location = CLLocationCoordinate2DMake(18.956449, 72.810597) var span = MKCoordinateSpanMake(0.009, 0.009) var region = MKCoordinateRegion(center: location, span: span) map.setRegion(region, animated: true) var aotation = MKPointAotation() aotation.coordinate = location aotation.title = "Wilson College" aotation.subtitle = "Commerce College"...
ادامه مطلبVote count: 2 So I made a CustomRenderer for my Android part of my app. This CustomRenderer is located in MyProject.Droid and it's called CustomSwitchRenderer which, obviously, is meant for the switches I'm using. So when I tried to test it the switches wouldn't show up in my page. It was just a blank tabbed page with two navigation buttons in it. I find this very wierd since no errors and waings are being thrown. This is what I have: The Page: private void Doelen() { pages.Add (new ContentPage { Title="Doelen", BackgroundImage="background.jpg", Content = new StackLayout { Padding = 15, BackgroundColor = Color.White, Opacity = 0.75, Children = { new Label { Text = subjects [2], FontSize = 30...
ادامه مطلبVote count: 0 I've got a problem with autoreloading custom classes. I need to execute: spring stop After each change made to my observers which are placed inside app/observers. Observer classes are simple Ruby classes which doesn't inherit from ActiveRecord. How to make spring autoreload them. I'm working with Rails Engine (if it matters). asked 45 secs agojmarceli Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I've added a custom field: "usergroup". Now I'm trying to show it in my template like this: $this->_rootref['USERGROUP']; But it's not showing up? What am I doing wrong? I'm using 3.0 asked 1 min agojamie Let's block ads! بخوانید...
ادامه مطلب