Home » Web Development » Page 5
Client side validation with bootstrap toolbar
24/4/2016 7:43 am by Bas in Web Development

I have the following bootstrap toolbar group (likert scale) and would like to implement client side validation ie. making sure that a selection is made.

 <div class="btn-toolbar" role="toolbar" aria-label="...">
     <div class="btn-group" role="group" aria-label="...">
         <a class="btn btn-link disabled" disabled
style="width:10px">Not<br />Fearsom

Getting a 404 error when I refresh an angular page other than "/"
24/4/2016 7:43 am by Brandan in Web Development

I am aware there is at least a dozen other questions here on this issue, but I've tried all of them and I seem to have applied all the techniques they suggest, so please if you would kindly take a look at my code here and tell me if I am missing something. I am getting a 404 everytime I refresh a page other than the root.

p.s. If I understand correctly, my root domain is not reloading

Printing whole numbers with {#} in C#?
24/4/2016 7:43 am by Mark W in Web Development

I'm sorry if this is a duplicate but I haven't found anything relevant to it.

So, how can I print 0 for the numbers having a whole square root with the following code?

for (n = 1.0; n <= 10; n++) {
        Console.WriteLine ("Fractional Part : {0 :#.####}", (Math.Sqrt(n) -
(int) Math.Sqrt(n)));

Current O/P:

Wait until any key is held in AppleScript?
24/4/2016 7:43 am by Andrew Forbes in Web Development

I have an AppleScript background script which generates hotkey events by System Events. So I need stop the script before generate keystroke and wait until user releases all keys (otherwise effect will be unpredictable).

How can I get this done? I don't need exactly AppleScript solution. It does not matter, I can just call external Python/Bash/ObjC/Swift. Anything, but I onl

MergExt mergDataGridScroller how to temporary disable scrolling
24/4/2016 7:43 am by Mansur in Web Development

I am using the mergDataGridScroller in a LiveCode desktop and mobile app and it works fine. But on mobile, when I show a group on top of the card (on top of the mergDataGridScroller and not related to it) to present a choice to the user for something else, the mergDataGridScroller still react to the mouse/touch moving. Is there a way to temporary disable the mergDataGridScroller ? Thanks

Configuring cross services in cloudera manager multiple cluster
24/4/2016 7:43 am by DeadFred in Web Development

We are testing CDH 5.6 in our company expecting to deploy it in production in a near future, but we're stuck with a problem with no answer yet.

Currently we're working with two clusters managed by Cloudera Manager: Central and Ingestion. Our purpose is to separate services such as HDFS, Hive, Spark, Hue in Central cluster and Flume, Sqoop, Kafka in Ingestion cluster.

The problem

share multiple comments in one page with different tittle , description by Google-Plus
24/4/2016 7:43 am by Julian Ivanov in Web Development

i have an article page with the question similar stackoverflow. Now i want to share the comments of the people answer question.

do we have any solution to share comments with different title , description in one article ?

Semantics of abstract traits in Scala
31/3/2016 3:42 pm by ghost recon88 in Web Development

I am wondering what the semantics of using the abstract keyword in combination with a trait is.

If the trait does not define any abstract methods, the abstract keyword does not prevent me from creating an instance:

scala> abstract trait T
defined trait T

scala> new T{}
res0: java.lang.Object with T = $anon$1@12cd927d

Compass placing or position in a map view post iOS6
31/3/2016 3:42 pm by Jammy in Web Development

Does anyone know of a way to change the placing of the compass in MKMapview?

I'm talking about the compass that shows up in the upper right corner of the map when it's rotated.

I'm making it so you can see the map blurred underneath the navigation bar, which means the frame's y origin will be underneath the nav-bar. The problem is that when the map is rotated, it automatically

Is there a float input type in HTML(5)?
31/3/2016 3:42 pm by Chris Tattum in Web Development

According to http://simon.html5.org/html-elements, the "number" input type's "value attribute, if specified and not empty, must have a value that is a valid floating point number."

Yet it is simply (in Chrome.latest, anyway), an "updown" control with integers, not floats:

<label>Total Amt $</label>

How to change color in shiny dashboard?
31/3/2016 3:42 pm by ferpaz in Web Development

(cross post from shiny google groups)

Could some one point me to the tag names that I have to modify the color of a shiny dashboard?

Modified from http://rstudio.github.io/shinydashboard/appearance.html#long-titles this will change the top left corner of my dashboard to orange

Pandas sorting by value and then by index
31/3/2016 3:42 pm by peitschie in Web Development

I have the following dataset:

import numpy as np
from pandas import DataFrame
import numpy.random as random


df = DataFrame (
        "fac1" : ["a","a","a","a","b","b","b","b"] ,
        "val" : random.choice(np.arange(0,20), 8, replace=False)
df2 = df.set_index(["fac1"])

Pandas sorting value then index

object has no attribute _Message__decoded_fields
31/3/2016 3:42 pm by Igal in Web Development

I have two models:

class Location(EndpointsModel):
    geoLocation = ndb.GeoPtProperty()
    street = ndb.StringProperty()
    city = ndb.StringProperty()
    state = ndb.StringProperty()

class UserPost(EndpointsModel):
    _message_fields_schema = ("entityKey", "title", "description",
"category", "date", "time", "status", "locationOne")
    category = ndb.IntegerProperty(index

How to trigger a moment of animateCamera zoom end 'only'?
31/3/2016 3:42 pm by Hugo Hernan Buitrago Rios in Web Development

I can catch this moment by using a listener:


 map.setOnCameraChangeListener(new GoogleMap.OnCameraChangeListener() {
                public void onCameraChange(CameraPosition cameraPosition) {
                    //here some code...

saving output in a file using COBOL language
31/3/2016 3:42 pm by Francois in Web Development

I need help writing a small program in COBOL. I wrote this piece of code:

01 NUM PIC 9(10). 
MOVE 10 to NUM.
CALL "in

Match and change multiple date formats into one with Python Regex
31/3/2016 3:42 pm by plonk420 in Web Development

I need to implement a function in Python which is able to retrieve multiple date formats from input string, change them into one specific format and return the date only:

Format            Example Input String  

MMDDYYYY          foo.bar.02242015.txt
MMDDYY            foo.bar.022415.txt
MONCCYY           foo.bar.FEB2015.txt
YYYY-MM-DD        foo_bar_2015-02-01_2015-02-28.txt

How can I load an image from the device gallery using Ionic and Cordova?
31/3/2016 3:42 pm by Schmidt in Web Development

I have an Ionic application that uses Cordova and would like to load images from the album of the device. My problem is that it is not working, although I did follow the instructions on the Cordova website. Here is my code:


        <meta charset="utf-8">
        <meta name="viewport" content="initial-scal

Enabling orbtControls depending on the camera used
31/3/2016 3:42 pm by Rakehellion in Web Development

I'm working on a project in THREE.js that involves the use of two cameras for the same scene that can be alternated by pressing a keyboard button. A flag changes its value between 0 and 1 depending of which camera is in use.

The question is: How can I enable orbitControls in just one of the two cameras, disabling it when that camera is not in use?

SQL Function to return part of a string and Rename a part of String
31/3/2016 3:42 pm by baylisscg in Web Development

I am trying to run a query in SQL to return only part of string against a column.

The string itself contains many characters, but I only want to return the following:


Sample String which is just a row of garbled XML code.

<Help><field id="123" type="0" name="CTRLID"
formatstring=""><oldValue> <![CD[1234]]></oldValue&

Privacy Policy - Copyrights Notice - Feedback - Report Violation - RSS 2017 © bighow.org All Rights Reserved .