Vote count: 0 We have about 50 microservices developed using Spring Boot. We used Spring Cloud for registering services with Eureka and invoke the service from the consumer using Feign. The contract is pretty standard, where the consumer uses an interface with @FeignClient("") aotation to locate a service that's registered as foo with Eureka. The registration, lookup and invocation on the target service all works as expected with one or multiple instances of the service ruing. We have a new requirement where the same service foo may be ruing multiple instances where each instance has a specific stereotype or designation. For example, 1 instance of foo is expected to deal with 3rd party integ...
ادامه مطلبVote count: 0 I tried this command line in command prompt for edit time SchTasks /Change /TN ReminderKontrak /ST 12:11 /RU EGGYSEggy and the result is success after I run cmd as administrator and enter the password.. and now I tried to implementation that to php code like this shell_exec('SchTasks /Change /TN ReminderKontrak /ST 12:11 /RU EGGYSEggy'); but why the time not update and no error in browser? asked 10 secs agoE-Place Let's block ads! بخوانید...
ادامه مطلب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! myOtherLabelInADifferentViewController.text "Foo Bar" both of these label should have ke of 1.5 asked 14 secs agoSwift_Leaer Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I've created a custom dropdown element. The number of options it can have is based on a Database Table (I haven't created the Table yet). Like the number of options can be 4 or even 5 or anything for that matter. I'll use PHP to give the number of options for the dropdown. Each of the options are in an li tag. The li siblings are inside the ul tag. I have a CSS file which animates the li items. But instead of animating them all at once (in which case I would just animate the ul and would get the same effect), what I want to do is to animate them one by one. Each li will have a delay which is progressive. For example if the first li has a 0s delay and a duration of 300ms then th...
ادامه مطلبVote count: 0 So I have made a 'Student' class which has some data members,and methods....What I want to do is get input from the user using a form and then initialize a student object using the values entered by the user. I used the following code but somehow every Student object has the same values as the last entered user input. Srry for bad English //Declared in main class Student1 stu = new Student1(); Student1[] Student1Array = new Student1[200]; int Mcounter =0; //elsewhere in the program private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { int Admno = Integer.parseInt(admTF.getText()); String Name = name.getText(); int Standard = Integer.parseInt((String)(ClassCB.ge...
ادامه مطلبVote count: 0 basically i have a form and in that form i have a useame textbox with a submit button. now what i want is that before we submit the form i want to send the text value to server so the server could check if the useame has not been taken by any other user and then submit the form, based on research i had, i found this tutorial useful https://scotch.io/tutorials/submitting-ajax-forms-with-jquery, altough this tutorial is using php for server coding and i am using java servlet but my ajax script never gets to execute. here is my code: $(document).ready(function() { // process the form $('form').submit(functio...
ادامه مطلبVote count: 0 I want to use ImagePlus and ImageProcessor in my Android application for some processing on captured images but ImageJ is dependent on Java AWT which is not supported by Android. Resources state that ImageJ2 has no dependency on AWT but is it complete and does it have the same functionalities (classes and methods) provided by ImageJ? (I need to use ByteProcessor, FloatProcessor methods like isBinary(), resetRoi() and many more). Or else is there any equivalent library in Android which serves the same purpose as ImagePlus and ImageProcessor? Any one who tried this before? Please help! asked 44 secs agoShravan DG Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I am trying to use XSSFRow to use data from one sheet to other,here is the code XSSFRow r = nftSheet.getRow(i); Cell c = r.createCell(7); c.setCellFormula("'Original'!F"+(i+1)+"+'Original'!G"+(i+1)+"*-1"); After computing the formula the data in the written sheet will be displaced like "#value" instead of the number. what should i do to so that original data is displayed instead of the "#value" asked 41 secs agoAnand Biradar Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I'm a begier to jquery. I want to make a simple fadeindown when I click a button, but from the above the screen,e.g. minus top value. But what I get is only sliding in the page, not from above. And it only works once when I load the html. After that, opacity is the only one working. Here's the sample code: #Page{ opacity: 0; width:70%; min-height: 300px; background:white; text-align: center; border-radius: 20px; position:relative; padding:20px; margin:0 auto; } in document.ready() , when I load the html $("#Page").position().top=$("#Page").outerHeight()*-1; $("#Page").animate({top:$(".row").outerHeight(),opacity:'1'},1500); and the .click function $("#Page").css('opacity','0');...
ادامه مطلبVote count: 0 i am trying to select categories that ServiceType inside them contain services that have specific property var categoryList = await _CategoryRepository.GetAll() .Include(C => C.ServiceType) .Include(C => C.ServiceType.Select(T => T.Services.Where(S => S.Employees.Any(E => E.UserId == userId)))) .ToListAsync(); i get the following error he Include path expression must refer to a navigation property defined on the type. Use dotted paths for reference navigation properties and the Select operator for collection navigation properties. so how can i use use where inside include ? asked 35 secs agouser6599525 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Originally I was using the following to swap the values of 2 variables at random when the page loaded: var value1 = 260; var value2 = 325; var chosenValue = Math.random() < 0.5 ? value1 : value2; if (value1 == chosenValue) { var val = value1; } else { var val = value2; } if (value1 == chosenValue) { var val2 = value2; } else { var val2 = value1; } However now I need to swap out 4 values and I no idea how to go about doing that. var value1 = 260; var value2 = 325; var value3 = 195; var value4 = 130; Note that each value must be used only once and must be displayed in random order each time page is loaded. help? asked 1 min agoBruce Let's block ads! بخوانید...
ادامه مطلبVote count: 0 Good day I am trying to access a Payment Method in a WordPress site, but it is in a form of a Json object, or can be converted to xml. Obviously the project was developed in Java. So my question is how do I now integrate it into my wordpress site as a payment gateway? Thanks in advance asked 27 secs agouser2990237 Let's block ads! بخوانید...
ادامه مطلبVote count: 0 I call this action method using an ajax call: [AuthorizeCheckCreator] [HttpPost] [OutputCache(Location = OutputCacheLocation.None, NoStore = true)] public ActionResult Delete(Guid id) { // code.... retu Content("ok"); } I have created a custom AuthorizeAttribute for checking permission of the user (I wanted to make sure whether the user is owner the record or not): public class AuthorizeCheckCreatorAttribute : AuthorizeAttribute { public IRequest RequestService { get; set; } protected override bool AuthorizeCore(HttpContextBase httpContext) { RequestCheckUserViewModel request; if (httpContext.Request.IsAjaxRequest()) { var ajaxId = JsonConvert.DeserializeObject(System.Text.Enco...
ادامه مطلبVote count: 0 Python 2.7.12 |Anaconda 4.1.1 (64-bit)| (default, Jul 2 2016, 17:42:40) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 Type "help", "copyright", "credits" or "license" for more information. Anaconda is brought to you by Continuum Analytics. Please check out: http://continuum.io/thanks and https://anaconda.org >>> from sympy import symbols >>> from sympy.plotting import plot >>> L = [2+2j, 3+2j, 1.75+1j, 2+1j, 2.25+1j, 2.5+1j, 2.75+1j, 3.25+1j] >>> plot(L) Traceback (most recent call last): File "", line 1, in File "/home/txdo07r/anaconda2/lib/python2.7/site-packages/sympy/plotting/plot.py", line 1280, in plot...
ادامه مطلبVote count: 0 I'm trying to add Python functionality to NetBeans 8.1. I downloaded Python from the Python website here. (I'm using Windows 10, by the way.) I also downloaded the NetBeans plugins "Python" and "Jython Distribution" (required by the former). Now I have two questions: 1. When I create a new Python project, I have these options: Based on the description for the "Setuptools" choice, I'm guessing that I shouldn't use that one since it's not for Windows. So am I correct in choosing "Python Project - Ant"? 2. The P...
ادامه مطلبVote count: 0 I am trying to display an animated GIF over a specific part of a GMSMapView, using GMSCoordinateBounds to designate the part of the map to overlay the GIF on. I'm choosing to use GMSGroundOverlay because I want the image to scale properly when the map is zoomed in or out, and to have the image remain fixed to one geographical part of the map. This seems to be the best tool to accomplish this task. I found that GMSMarkers could display GIFs, but I would also need the GIF to be able to scale up and down as the map is zoomed, which GMSMarkers seem incapable of doing by themselves. Currently, while I can swap between images by changing the icon attribute of the GMSGroundOverlay to ...
ادامه مطلبVote count: 0 I am trying to use the Custom Task to list and stop the active SAS sessions. I downloaded the dll files from https://communities.sas.com/t5/Administration-and-Deployment/A-custom-task-to-list-and-stop-active-SAS-sessions/m-p/251340 and then I created a folder named "Custom" in C:Program FilesSASEnterpriseGuide4.3 and pasted the dll file in this folder. But when I tried to run the Custom Task from SAS EG, it showed the error saying "Error: Procedure IOMOPERATE not found". I, also, tried to run the procedure using following code with my credentials...
ادامه مطلبVote count: 0 I'm building an Office App app that integrates with a few different social logins. Playing around with a POC and it becomes clear that the redirects / new windows opened by SSO's like Office 365 / Facebook are a blocker as they don't retu back to the window that opened them (the office app). Is there any way of ensuring that any new window is rendered inside the Office app container rather than a new window? asked 33 secs agoLucas Let's block ads!...
ادامه مطلبVote count: 0 I'm hoping someone with more experience working with Shippo's API in Node can help me figure this out. My end goal is to press a button on an angular form front end, have the shipment transaction created, and use the transaction's label URL to create a custom PDF. Everything is working except for pushing the generated label URL to the PDF template. First, I pasted Shippo's single click label creation example into an Express POST route. It worked just fine, generating transactions that I could check out by pinging Shippo's API for a list of recent transactions and viewing the most recent one. Then, I added...
ادامه مطلبVote count: 0 I have the following dimensions: dim_date dim_customer dim_products fact_sales_history fact_lifetime_sales The dim_date is a standard time dimension The dim_customer dimension holds attributes about customers in the database The dim_products dimension holds attributes about products fact_sales_history is all order history for customers fact_lifetime_sales holds the total spend for the customer regardless of time I've modelled this and in theory it's working correctly however from an end users' perspective it isn't. The user wants to select sales for yesterday and filter on some dim_product attributes. Then they want to display a list of the customer numbers who've purchased and...
ادامه مطلب