Percentage Height HTML 5/CSS

Percentage Height HTML 5/CSS

I am trying to set a

to a certain percentage height in CSS, but it just remains the same size as the content inside it. When I remove the HTML 5 however, it works, the
taking up the whole page as desired. I want

Working with $scope.$emit and $scope.$on

Working with $scope.$emit and $scope.$on

How can I send my $scope object from one controller to another using .$emit and .$on methods?function firstCtrl($scope) { $scope.$emit('someEvent', [1,2,3]);}function secondCtrl($scope) { $scope.$on('someEvent', function(mass) { conso

The application may be doing too much work on its main thread

The application may be doing too much work on its main thread

I am new to Android SDK/API environment. It's the first I am trying to draw a plot/chart. I tried running different kinds of sample codes the emulator using 3 different free libraries, nothing is showing in the layout screen. The logcat is

check if row exists with mysql

check if row exists with mysql

I need help checking if a row exists. I am getting "email no longer exists [email protected]". Is there a better way to check if row exists with mysqli?if (count($_POST)) { $email = $dbl->real_escape_string(trim(strip_tags($_POST['em

PHP mail function doesn't complete sending of e-mail

PHP mail function doesn't complete sending of e-mail

<?php $name = $_POST['name']; $email = $_POST['email']; $message = $_POST['message']; $from = 'From: yoursite.com'; $to = '[email protected]'; $subject = 'Customer Inquiry'; $body = "From: $name\n E-Mail: $email

FileOutputStream: Does the “close” method calls also “flush”?

FileOutputStream: Does the “close” method calls also “flush”?

I'm really confused about flush and close method.In my code I always close my FileOutputStream object. But I want to know that if I have to use flush method here, and where can I use it?I will write a project that download 4 or 5 files repe

How to specify SSL protocol to use for WebClient class

How to specify SSL protocol to use for WebClient class

I have an application that sends data to a server using an HTTPS POST. I use a System.Net.WebClient object to do this. Here is a function that sends some data: private byte[] PostNameValuePairs(string uri, NameValueCollection pairs)

Java how to check if a string value is a type of given Class

Java how to check if a string value is a type of given Class

Alright this is kind of a complicated question and I'm completely lost.Assume you have a string, and a generic class. Like this.String string;Class clazz;How would you check to see if the String represented a value that the class could equa

Does an ExecutorService get garbage collected when out of scope?

Does an ExecutorService get garbage collected when out of scope?

I'm asking this question because I am creating a lot of executor services and while I may already have a memory leak somewhere that needs to be investigated, I think a recent change to the following code actually worsened it, hence I am try

Why does PHP have a $ sign in front of variables? [closed]

Why does PHP have a $ sign in front of variables? [closed]

In PHP and some other scripting languages have the $var syntax while Java and other languages we can do just var. Is there any theory behind it? Does it help them to parse. If not why would they choose to tack on an extra character in front

How to suppress “unused variable” warnings in Eclipse/PyDev

How to suppress “unused variable” warnings in Eclipse/PyDev

How to suppress "unused variable" warnings in Eclipse/PyDevWhen I'm working with functions that return tuples, I often only need one of the values, but still want to assign to multiple variables. I would like to be able to temporarily turn

Same named function with multiple arguments in PHP

Same named function with multiple arguments in PHP

I started off OOP with Java, and now I'm getting pretty heavy into PHP. Is it possible to create multiples of a function with different arguments like in Java? Or will the interpreted / untyped nature of the language prevent this and cause

Cannot convert '0000-00-00 00:00:00' to TIMESTAMP

Cannot convert '0000-00-00 00:00:00' to TIMESTAMP

the field definition /** Date. */ @Column(columnDefinition = "datetime") private Date date;setterpublic void setDate(final Date date) { DateFormat dfmt = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { this.date = dfmt.parse

How to consume third party https wsdl web service in c#

How to consume third party https wsdl web service in c#

In SoapUI tool I've configured .Jks file with Outgoing WS-Security Configurations Signature is BinarySecurityToken and algorithm is CanonicalizationMethod and SignatureMethod it is working perfectly.Now I try to consume from C# code as belo

polymer form using paper-input and core-ajax

polymer form using paper-input and core-ajax

i am working on a custom element that will serve as a form for sending map node data to a database using a restful service. i have 3 questions about this element.can this even work? i am trying to use a method which seems exactly the opposi

Getting Metadata from Shoutcast stream Android

Getting Metadata from Shoutcast stream Android

I am developing a Radio App for Android devices that is supposed to get streaming from a Shoutcast Server.The sound is working fine but I want to retrieve the MetaData as well so I might be able to show the currently played song's Title, ar

Catch all possible android exception globally and reload application

Catch all possible android exception globally and reload application

I know the best way to prevent system crashes is catching all possible exception in different methods. So I use try catch blocks every where in my code. However as you know sometimes you forget to test some scenarios which cause some unhand

How to implement undo/redo functionality into Eclipse FormEditor?

How to implement undo/redo functionality into Eclipse FormEditor?

I am developing a multipage Form Editor to edit/create a customized XML file in Eclipse.Implementation class is MyXMLFormEditor which extends FormEditor.Each page of FormEditor extends FormPage (i.e. MyXMLFormPage extends FormPage).Between

Android MediaExtractor and mp3 stream

Android MediaExtractor and mp3 stream

I am trying to play an mp3 stream using MediaExtractor/MediaCodec. MediaPlayer is out of the question due to latency and long buffer size. The only sample code i have found is this: http://dpsm.wordpress.com/category/android/The code sample

how to change password to user account, by c# code?

how to change password to user account, by c# code?

how to change password to user account, by c# code? 1:Using active directory:// Connect to Active Directory and get the DirectoryEntry object.// Note, ADPath is an Active Directory path pointing to a user. You would have created this// p

Circle Line Intersection points

Circle Line Intersection points

public static ArrayList getCircleLineIntersectionPoint(IntPoint pointA, IntPoint pointB, IntPoint center, int radius) { // returns a list of intersection points between a line which passes through given points, // pointA and pointB, a

What is the rationale of SwingWorker?

What is the rationale of SwingWorker?

For what I can read, it is used to dispatch a new thread in a swing app to perform some "background" work, but what's the benefit from using this rather than a "normal" thread?Is not the same using a new Thread and when it finish invoke som

Checking if server port is open from Android

Checking if server port is open from Android

I am trying to connect to a my remote server from my Android device. How do I check if a specific port on my server is open? Eg. how to check if port 80 is open on my server 11.11.11.11?Currently, I am using InetAddress to ping if the host

How To Sign Out Using When Using Google+ Sign-In

How To Sign Out Using When Using Google+ Sign-In

Google documents there gapi.auth.signOut() method here: https://developers.google.com/+/web/signin/#sign-outThe catch is that it says you can only call that method after the signinCallback has fired. So far as I can tell, the only way to fi

android android.provider.MediaStore.ACTION_VIDEO_CAPTURE return null onActivityResult with nexus 7

android android.provider.MediaStore.ACTION_VIDEO_CAPTURE return null onActivityResult with nexus 7

I am using intent for record video.so i use following code on recordVideo button's clickVideofilepath = "";Intent intent = new Intent(android.provider.MediaStore.ACTION_VIDEO_CAPTURE);startActivityForResult(intent,REQUEST_VIDEO_CAPTURED);an