code is working fine, and get data through API(http.get), if there is a wrong entry, its return 401 error, how to add class "error" to div, <form name="form" ng-submit="vm.frmmn()"> <div class="form-group"
I have the code for a collapse menu pasted below or see it on jsfiddle. The issue is when the submenu is in the sliding up state, and it is clicked again, it stops but is not being animated backwards (instead the submenus are jumping out but their co
I have a PEAN (Postgre, Express, Angular, NodeJS) Stack Application. The web services are written using Node and Express Consumed in AngularJS service.js using factory methods. Now For eg,When I hit the URL deployed on Heroku account like xyz.herokua
I am trying to implement an asynctask for a method but i met with an error. I dont know what is the problem or where did i done wrong. Below is my code class abc extends AsyncTask<String, String, String> { protected String doInBackground(String... m
Its a very tiny bit of math and more a question of the most efficient, most elegant way possible. If I give an integer such as 1.50 or 1.22 or 10.99 How can I get rid of the number to the left of the decimal and output the right side as an integer or
I am working on an ionic app that loads data from firebase. In this case I have a .factory called NoteStore that reads a specific table in firebase (eg "lakes"). { "lake": { "one": { "bio": "xxxx", "s
I'm working on a Laravel (5.4) package, and I'm trying to do unit testing. I have this class : <?php namespace Sample; class Foo { public function getConfig() { $config = \Config::get('test'); return $config; } } I have this test : <?php use PHPUnit
I want to use Java with JMX to monitor WebLogic. I need to use wlclient.jar which is provided into WebLogic lib directory. Is there any maven repository which I can use to download the wlclient.jar? The only way that I found is to manually import the
I am trying to include a custom JS file into my joomla site. What I did is to edit the template's index.php file, and add <script src='custom.js"></script> right before </head>. But when the page is loaded, there are two other JS fi
I have a webforms application. Almost all pages in my website are protected by login. Currently I am checking session exists or not in Page_Load event of all forms. Is there a way that I can do it in just one place which applies to all pages.Create a
I have a SQL query with a few subqueries. The subqueries essentially pull data from other tables together in order to combine records to be accessed from a single source. It is setup that when accesses it pulls the most recent record added. However,
I have my Django app set up on Elastic Beanstalk and recently made a change to the DB that I would like to have applied to the live DB now. I understand that I need to set this up as a container command, and after checking the DB I can see that the m
function void sortDynamicData(typeOfClass,SortKey) { List<dynamic> results = null; //results might be of any type it may contain students data or books data or professors data, hence I took as dynamic results = services.GetMyresults(typeOfClass); //
I keep hearing all these things about how awesome jQuery is and how the AjaxControlToolkit sucks. Unfortunately, I only heard about this after I built my entire WebForms site using the toolkit. Now I am considering switching, if not entirely, mostly
I am building a library from my source code which contain both header (.hpp) and source (.cpp) files. I have a make file which compiles all the source files into respective object file individually and then a library creation (ar rcs ..) statements w
I have a link(say open file) on a JSP page. On clicking that link, I need to open a file. The location of the file is present in a table on the Database. Since "onclick" event is a Javascript event, I am clueless on how to obtain the file locati
Please tell me what wrong with my code : #include "stdio.h" struct rights_on_cmd{ char *gtm_cmd; /*set ,zrite ,kill...*/ char value; /*y or n*/ } ; struct usr_rights{ char *username;/*user name*/ struct rights_on_cmd rights[]; /*list gtm command
I'm using the react-google-maps package in React but I'm struggling to get the onDrag event from the component. My code is as follows: import React, {Component} from 'react'; import GoogleAddressAutocomplete from './googleaddressautocomplete.js'; imp
My question is really simple. Please take a look at screenshot: How could that happen? I explicitly put call to Async.RunSyncronously into try ... with.try/with in F# async workflows do not map directly to CLR protected blocks - instead if exception
I'm going through the css and combining declarations. For example the header for the dialog is in ui-widget-header and ui-dialog-titlebar. The issue is when I have jquery UI tabs, for example, within a dialog. Even through they are both scoped to dif
I am attempting to eval the following tab-indented string: '''for index in range(10): os.system("echo " + str(index) + "") ''' I get, "There was an error: invalid syntax , line 1" What is it complaining about? Do I need to in
This question already has an answer here: How do I compare strings in Java? 23 answers My problem is hidden in next code: public class saturo { public String primer, d; public void start() { primer = "545640"; //d = "0"; d = String.val
There are 2 small images on a page: <a href="link.htm"><img src="image1.jpg" /></a> <a href="link2.htm"><img src="image2.jpg" /></a> When they appear on the page, they do not appe
I've updated the names for a number of courses in a school database with the prefix "2015/2016 - ", in order to mark them as belonging to the just finished school year. update course left join courseterm on course.courseID = CourseTerm.courseID
How to get the demo data on source code in Odoo9 as the demo data of package installation is not there in source code installation. Upon selection of the load demo data checkbox it give a internal server error. The console fails on some demo file in
This is how my ListFragment looks public class TransactionListFragment extends ListFragment { private List<Transaction> mTransactions; @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getActivity().setT
I have the following list a = [[a1, b1, c1, [d1, e1, f1], [a2, b2, c2, [d2, e2, f2], [a3, b3, c3, [d3, e3, f3]] How can I make this into a list of named tuples such that a[0].val1 >>> a1 a[1].val2 >>> b2 a[0].box >>> [d1, e1, f1
this could be an easy question but i couldn't do it. i am using the following code in the header of the master page but it didn't working also when i place it in the other web page that are inherited from this master page. `<script type="text/java
The documentation says that one should not use available() method to determine the size of an InputStream. How can I read the whole content of an InputStream into a byte array? InputStream in; //assuming already present byte[] data = new byte[in.avai
So i need some help. Im pretty new to VBA so im having some trouble. Well i have multiple sheets in my work book (excel). what im trying to do is, calculate the percentage of how many cells have the word "IMCOMPLETE" in column D and putting the