Angular NgRoute and leaflet declaration directive

AngularJS
I'm pretty new to Angular, and I'm trying to make a little app for learning. I use the leaflet directive and want to add the NgRoute directive too bu...
2 years ago

Hi, I am trying to write a program that shows whether a year is a leap or not and if it is what the sum of its digits is

C
I understand the line of code that is used to determine if something is a leap year or not and I've seen the line of code to determine the sum of numb...
2 years ago

How to get XElement's value and not value of all child-nodes?

C#
Sample xml: <parent> <child>test1</child> <child>test2</child> </parent> If I look for parent.Value where paren...
2 years ago

Does SingleOrDefault() query remotely?

C#
Consider an environment with various computers at different locations. These computers have a Windows application running and a timer checking for new...
2 years ago

Deallocate dynamic memory

C++
I have written some code like this: double *psi1 = multiplyscalar( multiplyscalar(submatrix( multiplyscalar(I3, t...
2 years ago

jQuery select all elements that are visible or have display: none

jQuery
I'm setting display: none on some elements for mobile, but I still want to select them using jQuery. I know there's this $(.connectedSortable[style*...
2 years ago

MySQL syntax error, about union and as keywords

MySQL
select distinct id, item from ( ( ( select ID as id, "INNER" as item from TREE where ID in ...
2 years ago

Variable being updated but not being recognized PHP

PHP
Even though the variable is properly being changed by the if statements when a button is pressed, the original value is inputted. In the code, when a ...
2 years ago

cassandra : datastax LocalDate Type mismatch to java.util.Date # scala Akka

Scala
I have been struggling to rectify this type mismatch issue.i am getting resultset record from cassandra. the query used is : CREATE TABLE tweets ( ...
2 years ago

Re-read php codes without reloading the page - is this possible?

Ajax
I am trying to create a page that reads my codes again from the top to check how many data are in my database. if it reaches 10, then i want to execut...
2 years ago

Getting error in the c Program regarding expected ; before token

C
error: expected expression before ';' token graph[ ptr->count ].count- ; ^ I am getting the error shown when I compil...
2 years ago

Calculating Average and Maximum from a .txt file

C++
I have a text file that looks like this (but many more lines): 9527,88147 4963,75407 448P,34361 2545,29046 9095,258T8 How would I find the average...
2 years ago

Center Div over Div with Background Size = Cover, Overflow = Hidden and Large Image

CSS
I'm trying to vertically and horizontally center a div filled with text (id = rulesContent) over a background image (id = rulesBackground). The backgr...
2 years ago

Scale a Polygon of an image

CSS
I want to be able to scale a polygon of an image on hover. To be precise, its a world-map, and I want to scale the country bigger, when you hover ove...
2 years ago

How to fix 'checkbox' in form

HTML
Hi I am stuck and I need help. As shown in the coding provided below, it works fine if I remove all the 'Vaccinate checkbox' properties. But I need t...
2 years ago

Detect which checkbox is touched? Array Java Android Studio

Java
I have a CheckBox ArrayList set up, but how do I know which one is touched? More specifically I simply would like to get the integer value of "i" in t...
2 years ago

Java Date object shows time in the future

Java
I'm making a new date object some time before current time. If I have it to show 1 day before today, it works fine. but if I want to show 30 days ago,...
2 years ago

How do I replace single quotes with space in sed?

Linux
I have a flat file where I have multiple occurrences of strings that contains single quote, e.g. hari's and leader's. I want to replace all occurrenc...
2 years ago

How to activate this JQuery on different event?

PHP
I have two combo boxes. One combo box contain values that became variables to do AJAX post. The result then inserted into the second combo box. I use...
2 years ago

Google Api PHP Client Library

PHP
I am trying to use the Google API PHP Client library for Google Analytic v3. I am able to run the simple app I wrote at home, but when I try at the o...
2 years ago