Vote count: 0 On Installing VueJS while ruing Gulp in Laravel Project, I get following: Me-MBP:simpleb2b AdnanAhmad$ gulp build /Applications/MAMP/htdocs//myProject//node_modules/laravel-elixir-vue/main.js:4 Elixir.webpack.mergeConfig({ ^ TypeError: Caot read property 'mergeConfig' of undefined at /Applications/MAMP/htdocs//myProject/node_modules/laravel-elixir-vue/main.js:4:19 at /Applications/MAMP/htdocs//myProject//node_modules/laravel-elixir/dist/index.js:29:16 at Array.forEach (native) at global.Elixir (/Applications/MAMP/htdocs//myProject//node_modules/laravel-elixir/dist/index.js:28:24) at Object. (/Applications/MAMP/htdocs//myProject//gulpfile.js:16:1) at Module._compile (module.js:5...
ادامه مطلبVote count: 0 I am using jQuery $.post to post some data to an ActionResult method inside my controller. When an error is thrown in the controller, it should retu the error message within the responseText of the response but it's not working. The callback function fail seems to be triggered. Just not getting the error message retued. Not sure what I am doing wrong? This is jQuery posting data: var postData = ["1","2","3"]; $.post('/MyController/GetSomething', $.param(postData, true)) .done(function (data) { alert('Done!'); }) .fail(function (xhr, textStatus, errorThrown) { alert(xhr.responseText); //xhr.responseText is empty }); }); Controllers public class MyController : BaseController { pu...
ادامه مطلبVote count: 0 We're using OrientDB in a cluster with 5 nodes with the Java API libraries on top of it. Both of them are using version 2.2.8. We're experiencing a strange issue where the database runs fine for some time, then we suddenly start encountering the error below. We have only started experiencing this issue since we upgraded to 2.2 from 1.7. I was wondering whether anyone else has experienced this issue / error before, or if anyone had any advice on what we might need to change to get a multi-node environment working. com.orientechnologies.orient.server.distributed.ODistributedConfigurationChangedException: Local node 'aNode' is not the master for cluster 'aCluster' (it is 'anotheod...
ادامه مطلبVote count: 0 I have the following java configuration for my SOAP WebService Springboot application: WebSecurityConfiguration; @Configuration @EnableWebSecurity public class AgreementWebSecurityConfiguration extends WebSecurityConfigurerAdapter { @Value("${spring.application.name}") private String applicatioame; private static final String ROLE = "agreement-service"; /** * Defines which URL paths should be secured and which should not. * Specifically, the "/agreementservice-/**" path is configured to require authentication. * * @param httpSecurity allows configuring web based security for specific http requests * @throws Exception if error is encountered when accessing the {code httpSecurity...
ادامه مطلبVote count: 0 Can you please help me understand why this while loop repeats at 1 infinitely? What I'm trying to do it make a function that calls itself and prints out every number that is passed into is via the parameter. asked 38 secs agoDevoid Design Let's block ads!...
ادامه مطلبVote count: 0 I am consuming a web service using RestTemplate and my POST request is as follows. RestTemplate requestTemplate = new RestTemplate(); MappingJackson2HttpMessageConverter jsonHttpMessageConverter = new MappingJackson2HttpMessageConverter(); jsonHttpMessageConverter.getObjectMapper().configure(SerializationFeature.FAIL_ON_EMPTY_BEANS, false); requestTemplate.getMessageConverters().add(jsonHttpMessageConverter); String uuidResult = requestTemplate.postForObject(url, requestBodyJsonObject , String.class); I tried printing my requestBodyJsonObject and put it in a rest client, it works fine so no issue with request body. But here I am not getting the expected result and just getting ...
ادامه مطلبVote count: 0 I'm at the start of a small project to capture MIDI notes in real time as played on an attached keyboard. I can process existing MIDI files but am looking to generate my data on the fly. In my estimation (and hope), my requirement is quite basic and I really only want to capture note information (NT - note, time on/off, velocity on/off etc.) in real time. I will require accurate timestamps so I presume I will have to generate these on the system side as each note arrives as opposed to reading them from a MIDI file. Latency may be an issue but I will deal with that as required. It appears there are a number of potential directions such as MIDI.Net or the C# MIDI Toolkit but thus...
ادامه مطلبVote count: 0 I am writing an small script to produce some tables, the main idea is to copy text into my first text area called: to the press the button called: Generate tables: Generate tables That calles the function called: generate var generate = document.getElementById('generate'); var input = document.getElementById('text'); var output = document.getElementById('out1'); generate.onclick = function() { var text = input.value; text = text.replace(/(S+)s+(.*)/g, '"RBD|facebook|W|google|C|$1~W~$2" "dasd.wbs"n' + '"RBD|facebook|I|google|C|$1~E~$2" "dasd.wbs"n' + '"RBD|facebook|O|google|C|$1~R~$2" "dasd.wbs"'); output.textContent = text; }; to produce the tables in the second text area calle...
ادامه مطلبVote count: 0 I am facing some issue while ruing a maven project job on Jenkins. According to code, it should create a new File on the location passed. Using below code for the same. String fileName = "C://DevTools/abc.txt" File file = new File(fileName); file.createNewFile(); //retuing false When I surrounded the above code in try-catch block, it threw Exception 'Caot find the file path on system'. I checked the path in System manually, it was correct.But when I tried creating a new file using FileUtils (Apache common IO), it created the file successfully. Is there any reason behind this? asked 16 secs agoSharath N Let's block ads!...
ادامه مطلبVote count: 0 I have a coerRadius set on a UIView and a UIImageView inside the same UIView. I am calculating the coer radius with RockProfileView.frame.size.height / 2 but the UIView stopped showing in iOS 10. After further checking i found the value of RockProfileView.frame.size.height / 2 is coming out to be 1000.0 while the width and height constraint is set to 64.0 When I hardcoded the RockProfileView.layer.coerRadius = 32 to 64/2 it works just fine. What could be the issue ? Full code: RockProfileView.layer.coerRadius = RockProfileView.frame.size.height / 2 RockProfileView.clipsToBounds = true RockProgressView.layer.masksToBounds = true asked 1 min agoAnkit Khaa Let's block ads!...
ادامه مطلبVote count: 0 I am trying to write JUnit test cases for an application written in Struts2. I am trying to follow the process given in these 2 links : https://struts.apache.org/docs/testing-actions.html https://glindholm.wordpress.com/2008/06/30/unit-testing-struts-2-actions/ I am using mockruer-servlet.jar, struts2-junit-plugin-2.3.15.jar, junit-4.8.2.jar apart from many other jars. Basically the problem that I am facing is at these 2 places in both the approaches : ActionProxy proxy = getActionProxy("//"); and dispatcher.getContainer() .getInstance(ActionProxyFactory.class) .createActionProxy( namespace, actioame, null, true, // execute result false); The exception I'm getting is : There is...
ادامه مطلبVote count: 0 I have a filter class that filters products residing inside the page.There is a function works if someone checks the filters. Filters are check-boxes where every check box contains different value. What my filter function do is that it checks all the checked checkboxes from the page and then uses the data-* global variable present on the list tages to decide what element to show. Dom structure of the items will be .. . . . . Below one shows the the function that does the job. this.filterGridProducts = function() { $.ajax({ type:'POST', url:'test12.php', data:category, success:function(data){ $('#limitpage').html(data); // $('.product').h...
ادامه مطلبVote count: 0 Please help. I'm following a tutorial to AWS and I need to install the AWS CLI on my Mac with the following result: sisko$ pip install awscli Collecting awscli Using cached awscli-1.10.63-py2.py3-none-any.whl Requirement already satisfied (use --upgrade to upgrade): docutils>=0.10 in /Library/Python/2.7/site-packages (from awscli) Requirement already satisfied (use --upgrade to upgrade): rsa=3.1.2 in /Library/Python/2.7/site-packages (from awscli) Collecting s3transfer=0.1.0 (from awscli) Using cached s3transfer-0.1.3-py2.py3-none-any.whl Collecting botocore==1.4.53 (from awscli) Using cached botocore-1.4.53-py2.py3-none-any.whl Collecting colorama=0.2.5 (from awscli) Using cac...
ادامه مطلبVote count: 0 i've a problem in cycle2 pluging when i go to another page and comeback to my page sometimes and not always the slide disaper and apear after a 1 sec delay econtent here content here asked 31 secs agoAyou Ub Let's block ads!...
ادامه مطلبVote count: 0 Manifest : Permessions : the receiver is executed when wifi...
ادامه مطلبVote count: 0 public IEnumerable GetWords() { retu db.Words.ToList(); } I need this output in XML using webapi2; i already google and try var appXmlType = config.Formatters.XmlFormatter.SupportedMediaTypes.FirstOrDefault(t => t.MediaType == "text/xml"); config.Formatters.XmlFormatter.SupportedMediaTypes.Remove(appXmlType); It gives data only in JSON. also I update following package: Microsoft.AspNetCore.Mvc.Formatters.Xml But how can I get it in XML. Thanks in advance. asked 39 secs agosurzo4368 Let's block ads!...
ادامه مطلبVote count: 0 Using Glade to try and create a user interface. so far I have a main window and a sub window. I can click on a button on the toolbar of the main window to open an instance of the sub window class. I then have a button on the sub window that doesn't seem to be working import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk class InitialWindow: def on_window1_destroy(self, object, data=None): print("quit with cancel") Gtk.main_quit() def on_gtk_quit_activate(self, menuitem, data=None): print("quit from menu") Gtk.main_quit() def on_toolbutton5_clicked(self, object, data=None): print("Getting stock check") StockCheck() def __init__(self): self.gladefile = "test.gl...
ادامه مطلبVote count: 0 I download and save an image on button click in my app. This works fine. If I view this image via the Gallery app (or any other way) it looks fine. However, if I try to open the image with: Intent intent = new Intent(); intent.setAction(Intent.ACTION_VIEW); intent.setDataAndType(Uri.fromFile(imageFile), "image/*"); startActivity(intent); It prompts me what app I want to open the file with (Gallery or Photos). If I select Gallery, the image opens but is very low resolution. As the photo contains a lot of text, it makes it so you can't zoom in and read. If I select "Photos", it looks fine. Is there anything I can do to make it work fine in Gallery? asked 43 secs agoRHok Let's blo...
ادامه مطلبVote count: 0 Downloaded the iOS Simulator for Windows Preview from the Xamarin site. As mentioned in the known issues, I ran the app first by unchecking the remote simulator checkbox in the visual studio options. After the app got installed, I again checked the checkbox to enable the remote simulator and ran the app from Visual studio. The Simulator started on my Windows machine successfully. But the app didn't launch automatically. I could manually launch the app, but couldn't do any debugging. Can somebody please help me with this? asked 33 secs agoJoseph Kallarackal Let's block ads!...
ادامه مطلبVote count: 0 I am developing an application which reads data from the device (Microcontroller) coected on SerialPort of Windows 7 and display all read data into the Qt based UI application. Environment: Qt: Qt 5.6.0 OS: Windows 7 Before implementing the continious reading from the Windows Serial port. I implemented a test application to read data from Serial port on button press (Some button in Qt GUI) using QSerialPort Class and it worked properly. So I started implementing the continious reading from the device coected at serial port example: 1. Coect PushButton Press. Coect to the Device. 2. Start Push Button Press. Start Reading. 3. Stop Push Button Press. Stop Reading. Here my code is ...
ادامه مطلب